[one-users] saveas not always working

Carsten.Friedrich at csiro.au Carsten.Friedrich at csiro.au
Tue Mar 15 16:18:22 PDT 2011


Hi Ruben,

Thanks for the clarification. I see where you are coming from and understand your reasoning. One issue with this approach is that it means that saveas will never work for some VMs. In particular it will only work for VMs that can receive ACPI events and are running an OS that is (correctly) configured to shut itself down on the relevant ACPI event. I think it would be good to have a mechanism which allows users to save VMs as images that does not require the active cooperation of the VM and its OS.

Carsten

Also, as a minor side-note: OpenNebula is currently writing error messages to the log when doing cancel/delete on a VM after a saveas; which it probably shouldn't.


From: rsmontero at gmail.com [mailto:rsmontero at gmail.com] On Behalf Of Ruben S. Montero
Sent: Wednesday, 16 March 2011 3:25
To: Friedrich, Carsten (ICT Centre, Acton)
Cc: users at lists.opennebula.org
Subject: Re: [one-users] saveas not always working

Hi Carsten,

You are right, to save an image you have to shutdown the VM (i.e. shutdown + move the image back to the front-end). The image is "savedas" from there s if you cancel/delete a VM it is assumed that you do not want to keep the VM so it won't be saved.

The idea is to provide a fast image disposal mechanism for rapid VM provisioning. Basically VMs that do not need to preserve their state.

So basically, I think OpenNebula is behaving as expected....

Cheers

Ruben



On Tue, Mar 15, 2011 at 12:02 AM, <Carsten.Friedrich at csiro.au> wrote:
Sorry to  bother everyone again. Currently I think this is a bug in OpenNebula; but before I file a bug report I want to make sure it's not a local problem with my installation here or a fundamental misunderstanding on my side of what should happen.

Thanks,
Carsten

From: users-bounces at lists.opennebula.org<mailto:users-bounces at lists.opennebula.org> [mailto:users-bounces at lists.opennebula.org<mailto:users-bounces at lists.opennebula.org>] On Behalf Of Carsten.Friedrich at csiro.au
Sent: Friday, 4 March 2011 15:22

To: users at lists.opennebula.org<mailto:users at lists.opennebula.org>
Subject: [ExternalEmail] Re: [one-users] saveas not always working

Some more insights after a bit more digging:

It seems to me that a successful save depends on the disk image(s) being moved from the .../var/XX/images directory to .../var/XX. This seems to happen during the shutdown epilog, but not during cancel or finalize.

Carsten

From: users-bounces at lists.opennebula.org<mailto:users-bounces at lists.opennebula.org> [mailto:users-bounces at lists.opennebula.org<mailto:users-bounces at lists.opennebula.org>] On Behalf Of Carsten.Friedrich at csiro.au
Sent: Friday, 4 March 2011 14:53
To: users at lists.opennebula.org<mailto:users at lists.opennebula.org>
Subject: [ExternalEmail] [one-users] saveas not always working

I use OpenNebula 2.0.1 with KVM as hypervisor. I issue an saveas command and as far as I understand things the image should be saved when the vm reaches the state DONE. From a state ACTIVE - RUNNING there seem to be 3 actions to get to DONE:

Shutdown: In this case the image gets saved and all is good.

Cancel, and finalize: In these cases the image hook is called, but it produces this error message:

Fri Mar  4 14:36:19 2011 [HKM][D]: Message received: LOG - 85 Command execution fail: /srv/cloud/one/share/hooks/image.rb 85
Fri Mar  4 14:36:19 2011 [HKM][D]: Message received: LOG - 85 STDERR follows.
Fri Mar  4 14:36:19 2011 [HKM][D]: Message received: LOG - 85 ExitCode: 255
Fri Mar  4 14:36:19 2011 [HKM][D]: Message received: EXECUTE FAILURE 85 image

The image is not saved, but its state is nevertheless set to READY.

I would like the image to successfully save in all 3 cases. Your help is much appreciated.

Thanks,
Carsten

_______________________________________________
Users mailing list
Users at lists.opennebula.org<mailto:Users at lists.opennebula.org>
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



--
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid

URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110316/1f048933/attachment-0002.htm>


More information about the Users mailing list