[Users] All VMs disappeared

Laszlo Hornyak lhornyak at redhat.com
Thu Aug 29 07:09:37 UTC 2013


Liron, looks like you were right and it was not the business_entities_snapshot but the async_tasks that caused the data loss. I hope there are no more of these :) Can you help to figure out how the import operation could have failed in this way? Is there a BZ for this already?

Thank you,
Laszlo

----- Original Message -----
> From: "Jakub Bittner" <j.bittner at nbu.cz>
> To: users at ovirt.org
> Sent: Wednesday, August 28, 2013 5:12:23 PM
> Subject: Re: [Users] All VMs disappeared
> 
> Dne 27.8.2013 16:01, Laszlo Hornyak napsal(a):
> > Thank you Frank, I will investigate this issue.
> >
> > ----- Original Message -----
> >> From: "Frank Wall" <fw at moov.de>
> >> To: users at ovirt.org
> >> Sent: Tuesday, August 27, 2013 2:44:44 PM
> >> Subject: Re: [Users] All VMs disappeared
> >>
> >> Hi Laszlo,
> >>
> >> On 27.08.2013 14:24, Laszlo Hornyak wrote:
> >>> If I understand correctly, this is what happens to your installation,
> >>> the AddVmFromTemplate command goes to fail and engine tries to
> >>> compensate, and upon successful compensation you get VM records
> >>> removed from DB and storage cleaned up.
> >> just to be sure, please note, that the task actually completed
> >> successfully from my point of view. The new VM (direved from the
> >> template clone task) is fully usable and on the webadmin the task is
> >> shown as "completed".
> >>
> >> So maybe at some point in time the engine does get the job status wrong
> >> and the problem begins...
> >>
> >>> I need to look into this but I think it should be safe to remove this
> >>> record while the engine is down. Make sure to make a backup if you
> >>> try!
> >> OK, I did the following test:
> >>
> >> - created a new VM from my custom template (with cloned Disk)
> >> - waited for the job to complete
> >> - manually deleted the related DB entry from the table "async_tasks"
> >> - set host/node to maintenance
> >> - rebootet engine
> >>
> >> Result: The VM did NOT disappear! :-)
> >>
> >> I think somehow ovirt-engine does get the results of the job wrong, thus
> >> it does not recognize that the job completed *successfully* and does a
> >> retry after reboot (which fails horribly and leads to disappearing VMs).
> >>
> >>
> >> Thanks
> >> - Frank
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >>
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> Hi,
> 
> I manually deleted async_tasks and I dont have problem with disappearing
> of VMs. Thanks
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list