Image stays in Saving State if any error occurs while snapshotting an instance
Bug #1064386 reported by
Arathi
This bug report is a duplicate of:
Bug #1555065: Image goes to saving state when we delete instance just after taking snapshot and remain the state forever.
Edit
Remove
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Prateek Arora |
Bug Description
Image stays in 'Saving' state, if any error occurs while snapshotting an instance. User will be unaware of the exception occurred.
1. Probable fix would be to delete the created image, if any exception occurred as the image will not be used.
2. Keep the image state to 'error', so that user will be aware that some error occurred.
Changed in nova: | |
status: | Incomplete → New |
tags: |
added: grizzly-backport-potential removed: grizzly-rc-potential |
tags: | removed: grizzly-backport-potential |
Changed in nova: | |
assignee: | Yang Yu (yuyangbj) → nobody |
status: | In Progress → New |
tags: | added: compute |
Changed in nova: | |
assignee: | nobody → Prateek Arora (parora) |
Changed in nova: | |
assignee: | Prateek Arora (parora) → nobody |
assignee: | nobody → Prateek Arora (parora) |
Changed in nova: | |
status: | Triaged → In Progress |
To post a comment you must log in.
This can be reproduced as follows:
1. Boot a VM
2. Wait till active
3. Snapshot the VM
4. Before snapshot comes to active, delete the vm
2012-10-09 16:41:50 ERROR nova.openstack. common. rpc.amqp [-] Exception during message handling common. rpc.amqp Traceback (most recent call last): common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/openstack/ common/ rpc/amqp. py", line 275, in _process_data common. rpc.amqp rval = self.proxy. dispatch( ctxt, version, method, **args) common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/openstack/ common/ rpc/dispatcher. py", line 145, in dispatch common. rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs) common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/exception. py", line 117, in wrapped common. rpc.amqp temp_level, payload) common. rpc.amqp File "/usr/lib/ python2. 7/contextlib. py", line 24, in __exit__ common. rpc.amqp self.gen.next() common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/exception. py", line 92, in wrapped common. rpc.amqp return f(*args, **kw) common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py", line 210, in decorated_function common. rpc.amqp instance_uuid, e, sys.exc_info()) common. rpc.amqp File "/usr/lib/ python2. 7/contextlib. py", line 24, in __exit__ common. rpc.amqp self.gen.next() common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py", line 199, in decorated_function common. rpc.amqp return function(self, context, *args, **kwargs) common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py", line 1140, in snapshot_instance common. rpc.amqp self.driver. snapshot( context, instance, image_id) common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/exception. py", line 117, in wrapped common. rpc.amqp temp_level, payload) common. rpc.amqp File "/usr/lib/ python2. 7/contextlib. py", line 24, in __exit__ common. rpc.amqp self.gen.next() common. rpc.amqp File "/usr/lib/ python2. 7/dist- packages/ nova/exception. py", line 92, in wrapped common. rpc.amqp return f(*args, **kw) common. rpc.amqp Fi...
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.
2012-10-09 16:41:50 TRACE nova.openstack.