Fails to launch instance with "create volume from image"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
In IceHouse something has changed in Glance and when I try to launch an instance with option "create volume from image" it fails, because some attributes are absent in image dict returned from Glance. Different types of images were tried. RDO packages are used.
From /var/log/
2014-05-29 00:47:52.185 32176 TRACE cinder.
2014-05-29 00:47:52.185 32176 TRACE cinder.
2014-05-29 00:47:52.185 32176 TRACE cinder.
2014-05-29 00:47:52.185 32176 TRACE cinder.
2014-05-29 00:47:52.185 32176 TRACE cinder.
The image's onwer in the database was indeed NULL (and that should be ok). If I add an owner to the image, then another attribute will also be not found:
2014-05-29 01:03:02.782 32176 TRACE cinder.
2014-05-29 01:03:02.782 32176 TRACE cinder.
2014-05-29 01:03:02.782 32176 TRACE cinder.
2014-05-29 01:03:02.782 32176 TRACE cinder.
2014-05-29 01:03:02.782 32176 TRACE cinder.
The image dict returned from Glance was:
{u'status': u'active', u'tags': [], u'container_
I have no idea why some image attributes are absent, but one of the possible fixes is (for IceHouce branch):
--- /a/cinder/
+++ /b/cinder/
@@ -431,7 +431,7 @@
elif attr == 'checksum' and output['status'] != 'active':
else:
- output[attr] = getattr(image, attr)
+ output[attr] = getattr(image, attr, None)
output[
affects: | nova → cinder |