[Users] All VMs disappeared

Laszlo Hornyak lhornyak at redhat.com
Tue Aug 27 12:24:52 UTC 2013


Hi Frank,

The vdsm_task_id with empty guid should be legal in ovirt. What's more there is a javadoc for the case

    /**
     * If a command is partially submitted to vdsm, the empty place holders
     * can be removed from the database and we poll for the completion of tasks
     * that were already submitted. Once the tasks that were submitted finish
     * execution, they are marked to be failed by adding them to the
     * partiallyCompletedCommandTasks list.
     * If none of the tasks were submitted to vdsm, the empty place holders
     * are deleted from the database and we endAction on the command with
     * failure

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.

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!

Laszlo

----- Original Message -----
> From: "Frank Wall" <fw at moov.de>
> To: users at ovirt.org
> Sent: Tuesday, August 27, 2013 1:47:28 PM
> Subject: Re: [Users] All VMs disappeared
> 
> On 26.08.2013 23:40, Frank Wall wrote:
> > Every time I reboot ovirt-engine the VMs will disappear. No matter
> > what I do before rebooting ovirt-engine - set storage to maintenance,
> > set host to maintenance - it's always the same.
> 
> On IRC #ovirt I was asked to have a look at the "async_tasks" table
> while cloning a VM from a template. An entry is created in this table,
> but the vdsm_id is incorrect:
> 
> engine=# select task_id,action_type,status,vdsm_task_id from
> async_tasks;
>   6fa81c23-6f64-444c-bab0-f178fa9233d5 |           2 |      2 |
> 00000000-0000-0000-0000-000000000000
> 
> Maybe this empty vdsm_id is related to the disappearing vm issue?
> 
> 
> Thanks
> - Frank
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 



More information about the Users mailing list