VMware: deleting instance snapshot too soon leaves instance in Image Uploading state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
High
|
Eric Brown | ||
| Icehouse |
High
|
Gary Kotton |
Bug Description
branch: stable/havana
driver: VMwareVCDriver
When using the nova VMwareVCDriver, the following scenario will cause an instance to be stuck in "Image Uploading" state:
1. Create an instance
2. Snapshot the instance
3. While the image is in "Queuing" state, immediately delete the image
The screen-n-cpu.log shows:
2013-11-08 14:45:29.334 DEBUG glanceclient.
2013-11-08 14:45:30.138 DEBUG nova.openstack.
2013-11-08 14:45:30.138 DEBUG nova.openstack.
2013-11-08 14:45:30.139 DEBUG nova.openstack.
2013-11-08 14:45:30.141 DEBUG amqp [-] Closed channel #1 from (pid=15600) _do_close /usr/local/
2013-11-08 14:45:30.141 DEBUG amqp [-] using channel_id: 1 from (pid=15600) __init__ /usr/local/
2013-11-08 14:45:30.142 DEBUG amqp [-] Channel open from (pid=15600) _open_ok /usr/local/
2013-11-08 14:45:39.350 DEBUG glanceclient.
HTTP/1.1 403 Forbidden
date: Fri, 08 Nov 2013 22:45:29 GMT
content-length: 54
content-type: text/plain; charset=UTF-8
x-openstack-
403 Forbidden
Forbidden to update deleted image.
from (pid=15600) log_http_response /opt/stack/
2013-11-08 14:45:39.351 ERROR glanceclient.
Traceback (most recent call last):
File "/usr/local/
self.
File "/usr/local/
result = function(*args, **kwargs)
File "/opt/stack/
data=
File "/opt/stack/
_reraise_
File "/opt/stack/
image_id, **image_meta)
File "/opt/stack/
return getattr(
File "/opt/stack/
'PUT', url, headers=hdrs, body=image_data)
File "/opt/stack/
return self._http_
File "/opt/stack/
raise exc.from_
ImageNotAuthorized: Not authorized for image 6cf638ec-
Changed in nova: | |
assignee: | nobody → Tracy Jones (tjones-i) |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → High |
Ryan Hsu (rhsu) wrote : | #3 |
Tracy, I'm still able to reproduce the issue on my machine. This is on a brand new devstack machine that I just stacked today so the master is still affected.
Ryan Hsu (rhsu) wrote : | #4 |
Screenshot of Horizon displaying stuck "Image Uploading" status
Changed in nova: | |
status: | Incomplete → Confirmed |
assignee: | Tracy Jones (tjones-i) → nobody |
Kieran Spear (kspear) wrote : | #5 |
We've had a similar report from a user. We use libvirt/KVM, so I don't think this issue is specific to VMware, at least in Havana.
Changed in nova: | |
assignee: | nobody → Eric Brown (ericwb) |
Changed in nova: | |
status: | Confirmed → In Progress |
milestone: | none → juno-1 |
Fix proposed to branch: master
Review: https:/
tags: | added: havana-backport-potential icehouse-rc-potential |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 56607f9af4495e7
Author: Eric Brown <email address hidden>
Date: Thu Apr 24 09:21:04 2014 -0700
VMware: uncaught exception during snapshot deletion
During the image upload of the snapshot to glance, an exception is
thrown that ends up getting ignored. As a result, the instance gets
stuck in the "Image Uploading" state.
Change-Id: Id2cb3c244edd83
Closes-bug: #1249519
Changed in nova: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: stable/icehouse
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit a2da9ce769fa6a9
Author: Eric Brown <email address hidden>
Date: Thu Apr 24 09:21:04 2014 -0700
VMware: uncaught exception during snapshot deletion
During the image upload of the snapshot to glance, an exception is
thrown that ends up getting ignored. As a result, the instance gets
stuck in the "Image Uploading" state.
Change-Id: Id2cb3c244edd83
Closes-bug: #1249519
(cherry picked from commit 56607f9af4495e7
tags: | added: in-stable-icehouse |
tags: | removed: icehouse-rc-potential in-stable-icehouse |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Ryan - do you still get this issue? I just tried to repo and i did not get a task stuck issue