[one-users] Image status LOCKED after DETACH

Tino Vazquez tinova at opennebula.org
Wed Sep 19 10:13:57 PDT 2012


Hi Emmanuel,

I'm trying to reproduce the problem but the fact is that the image doesn't
go to LOCK state, but rather to USED, if it is attached to a VM. After a
correct detachment, the core should put it in READY.

Maybe we have a bug, consisting in the user being able to do an attach of
an image in LOCK state. Could you confirm that the image was in READY state
prior to the attachment, or was it LOCK?

Best regards,

-Tino

--
Constantino Vázquez Blanco, MSc
Project Engineer
OpenNebula - The Open-Source Solution for Data Center Virtualization
www.OpenNebula.org | @tinova79 | @OpenNebula


On Wed, Sep 19, 2012 at 10:12 AM, Emmanuel Mathot <
emmanuel.mathot at terradue.com> wrote:

> I detached the disk from a running VM and everything went fine:
>
> Tue Sep 18 15:03:31 2012 [VMM][I]: ExitCode: 0
> Tue Sep 18 15:03:31 2012 [VMM][I]: Successfully execute virtualization
> driver operation: detach_disk.
> Tue Sep 18 15:03:48 2012 [VMM][I]: mvds: Moving
> /var/lib/one/datastores/102/498/disk.2/disk.vmdk to datastore as
> /var/lib/one/datastores/100/21bcfb7fefe421751db93c917bdf7d70/disk.vmdk
> Tue Sep 18 15:03:48 2012 [VMM][I]: ExitCode: 0
> Tue Sep 18 15:03:48 2012 [VMM][I]: Successfully execute transfer manager
> driver operation: tm_detach.
> Tue Sep 18 15:03:48 2012 [VMM][E]: VM Disk Successfully detached.
> Tue Sep 18 15:07:06 2012 [VMM][I]: ExitCode: 0
>
> Even the disk is in the correct datastore (100), consistent and all. But
> the image remains in LOCKED state.
> So I think this is as per SAVE_AS and I shut down the machine:
>
> Tue Sep 18 17:56:52 2012 [LCM][I]: New VM state is SHUTDOWN
> Tue Sep 18 17:57:35 2012 [VMM][I]: ExitCode: 0
> Tue Sep 18 17:57:35 2012 [VMM][I]: Successfully execute virtualization
> driver operation: shutdown.
> Tue Sep 18 17:57:35 2012 [VMM][I]: ExitCode: 0
> Tue Sep 18 17:57:35 2012 [VMM][I]: Successfully execute network driver
> operation: clean.
> Tue Sep 18 17:57:35 2012 [LCM][I]: New VM state is EPILOG
> Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0
> Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0
> Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0
> Tue Sep 18 17:57:36 2012 [TM][I]: ExitCode: 0
> Tue Sep 18 17:57:37 2012 [TM][I]: delete: Deleting
> /var/lib/one/datastores/102/498
> Tue Sep 18 17:57:37 2012 [TM][I]: ExitCode: 0
>
> Again, everything goes smoothly but again the image is still LOCKED. No
> way to unlock it!
>
> Shouldn't the image be READY already after the successful detach?
> Is there something wrong in the procedure or in my config.
>
>
>  Emmanuel Mathot
> www.terradue.com
> [image: Terradue]
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120919/89ec826e/attachment-0002.htm>


More information about the Users mailing list