error when trying to add image with missing or no params
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Gabriel Hurley |
Bug Description
I created an image through cli with missing params (glance image-create --name bla)
the image is stuck in queued state (different glance bug).
if I try to edit it through horizon we get an error:
[root@opens-vdsb lvm(keystone_
10.35.203.14 - - [03/Sep/
but I am able to update the image from glance cli:
Image bla:
[root@opens-vdsb lvm(keystone_
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| dc79349e-
| 3e27c842-
| 3ca51afa-
| 6981621e-
| 1264d201-
| 64593e6b-
| 8c5fdb82-
| 05c9b5e2-
| a32222e7-
| 9a611a39-
+------
update through glance:
[root@opens-vdsb lvm(keystone_
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2013-09-03T16:00:13 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 3e27c842-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | bla |
| owner | ad326a6c11a742c
| protected | False |
| size | 1974140928 |
| status | active |
| updated_at | 2013-09-03T16:01:23 |
+------
[root@opens-vdsb lvm(keystone_
+------
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| dc79349e-
| 3e27c842-
| 3ca51afa-
| 6981621e-
| 1264d201-
| 64593e6b-
| 8c5fdb82-
| 05c9b5e2-
| a32222e7-
| 9a611a39-
+------
Changed in horizon: | |
assignee: | nobody → Gabriel Hurley (gabriel-hurley) |
Changed in horizon: | |
status: | In Progress → Fix Committed |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | havana-rc1 → 2013.2 |
Thanks for the report. Could you also link to the related Glance bug report for the stuck 'queued' state? Depending on how Glance decides to handle it, it may affect how we fix this on the Horizon side. Thank you.
Traceback: horizon/ openstack_ dashboard/ wsgi/.. /../horizon/ forms/views. py" in get_form self.request, **self. get_form_ kwargs( )) python2. 7/site- packages/ django/ views/generic/ edit.py" in get_form_kwargs horizon/ openstack_ dashboard/ wsgi/.. /../openstack_ dashboard/ dashboards/ project/ images_ and_snapshots/ images/ views.py" in get_initial python- glanceclient/ glanceclient/ common/ base.py" in __getattr__ python- glanceclient/ glanceclient/ common/ base.py" in __getattr__
File "/opt/stack/
87. return form_class(
File "/usr/lib/
40. kwargs = {'initial': self.get_initial()}
File "/opt/stack/
82. 'disk_format': image.disk_format,
File "/opt/stack/
95. return self.__getattr__(k)
File "/opt/stack/
97. raise AttributeError(k)
Exception Type: AttributeError at /admin/ images/ 2bf3b41e- 8693-47c9- a461-4d1c9392b7 f7/update/
Exception Value: disk_format