[Openstack] Create Snapshot from a Paused/Suspended Instance

Tzach Shefi tshefi at redhat.com
Wed Aug 31 09:31:41 UTC 2016


Spun up a Kilo release, also worked without errors when instance was booted
from a Glance image.

However looking around some more I found this: https://bugs.launchpad.net/
nova/+bug/1492716
I wounder when you boot your instances, are they booted from Glance
image(s) or from Cinder bootable volume(s)?

Sure enough it fails, on Kilo as well as on my Mitaka system, if instance
was booted from a Cinder volume then paused then try to create a snapshot.
Horizon error:* Error: *Unable to create snapshot.

[root at dhcp163-75 ~]# grep -ir createImage  /var/log/
/var/log/nova/nova-api.log:2016-08-31 10:29:56.750 4237 INFO
nova.api.openstack.wsgi [req-cd8da9d8-ef41-4b04-b587-014780fe1ad3
b86f1527ea394b2aabfa7c270d789601 1d5231e874584bae9e55cca1a8537200 - - -]
HTTP exception thrown: Cannot 'createImage' instance
325816b2-2da3-4986-bee0-bf1fa6c620f7 while it is in vm_state paused
/var/log/nova/nova-api.log:2016-08-31 10:30:19.258 4237 INFO
nova.api.openstack.wsgi [req-c34dbd7c-38a7-4ee7-981b-fdb0a80436e4
b86f1527ea394b2aabfa7c270d789601 1d5231e874584bae9e55cca1a8537200 - - -]
HTTP exception thrown: Cannot 'createImage' instance
325816b2-2da3-4986-bee0-bf1fa6c620f7 while it is in vm_state paused
/var/log/horizon/horizon.log:2016-08-31 07:29:56,754 4479 WARNING
horizon.exceptions Recoverable error: Cannot 'createImage' instance
325816b2-2da3-4986-bee0-bf1fa6c620f7 while it is in vm_state paused (HTTP
409) (Request-ID: req-cd8da9d8-ef41-4b04-b587-014780fe1ad3)
/var/log/horizon/horizon.log:2016-08-31 07:30:19,261 4478 WARNING
horizon.exceptions Recoverable error: Cannot 'createImage' instance
325816b2-2da3-4986-bee0-bf1fa6c620f7 while it is in vm_state paused (HTTP
409) (Request-ID: req-c34dbd7c-38a7-4ee7-981b-fdb0a80436e4)


I guess if this is also your use case in which the instance is booted from
a Cinder volume, your stuck :(
Wait some more time for this to trickle down /  update your system.

Or if possible boot instances from Glance images rather than Cinder volumes
to avoid this issue.

Tzach



On Wed, Aug 31, 2016 at 10:05 AM, ankit agrawal <agrawal.coolankit at gmail.com
> wrote:

> I am currently working on Kilo-2015.1.4 release.
> Nothing that I could find in nova/glance logs.
>
> The following error is thrown in apache log-
> Recoverable error: Cannot 'createImage' instance 68d86d84-6995-460f-xxxxxx
> while it is in vm_state suspended (HTTP 409)
>
> I have sufficient disk space. It is happening to all instances. Both for
> admin and any other user.
>
> Regards,
> Ankit
>
> On 30 August 2016 at 20:26, Tzach Shefi <tshefi at redhat.com> wrote:
>
>> Hey,
>>
>> So these two old fixed bugs suggest that it should work.
>> https://bugs.launchpad.net/nova/+bug/1100556
>> https://bugs.launchpad.net/horizon/+bug/1256821
>>
>> On a freshly installed Mitaka release KVM based deployment, I just booted
>> up an instance, paused it and created snapshot without any problem.
>>
>> Any thing show up on Nova or Glance logs? Is debug enabled?
>>
>> Do you have sufficient disk space for snapshot?  If i recall the instance
>> is paused snapshot is created and then uploaded to glance.
>> You need to have enough free space of snapshot to be created.
>>
>> Does this happen on other instances or all of them?
>>
>> Does this happen with admin or another user?
>>
>> Tzach
>>
>>
>> On Tue, Aug 30, 2016 at 12:15 PM, ankit agrawal <
>> agrawal.coolankit at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am currently trying to create a snapshot of an instance, which is in
>>> paused/suspended state. It throws the error-
>>>
>>> *Error: *Unable to create snapshot. Please check the availability of
>>> snapshots or storage quota
>>>
>>> Is this feature not supported? If not, there should be relevant code
>>> changes to avoid these errors. Appreciate clarification on this.
>>>
>>> Thanks,
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: http://lists.openstack.org/cgi
>>> -bin/mailman/listinfo/openstack
>>> Post to     : openstack at lists.openstack.org
>>> Unsubscribe : http://lists.openstack.org/cgi
>>> -bin/mailman/listinfo/openstack
>>>
>>>
>>
>>
>> --
>> *Tzach Shefi*
>> Quality Engineer, Redhat OSP
>> +972-54-4701080 <callto:+972-52-4534729>
>>
>
>


-- 
*Tzach Shefi*
Quality Engineer, Redhat OSP
+972-54-4701080 <callto:+972-52-4534729>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160831/beb06b74/attachment.html>


More information about the Openstack mailing list