Comment 0 for bug 1076019

Revision history for this message
Lorin Hochstein (lorinh) wrote :

If a user tries to create an image from a snapshot (e.g., through Horizon), and the process of creating a snapshot fails (e.g., nova fails to extract the KVM snapshot to a disk because there isn't enough room in the temp directory), then the image file will always be in the "SAVING" state.

It would be easier for ops to identify that a problem has occurred with the snapshot process if, when a failure like this occurred, the state of the new image was changed to some kind of error state.

I encountered this failure with essex, but looking at the code in trunk as of today, it doesn't look like there's any exception handling code in nova/libvirt/driver.py:snapshot when snapshot.extract fials.