Unable to PATCH Metadata via horizon on Images Created with glance cli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Description about Error]
I created an image and tried to update "visibility" of the image.
As a result, updating was failed.
I could update "visibility" by openstack CLI and glance CLI.
So I think that this is a bug of horizon.
[Version]
I could reproduce this error at the following version.
* master(
* 13.0.1(queens)
[Logs]
2018-06-20 08:59:35.510612 Unhandled exception in thread started by <function upload at 0x7f6be0992c80>
2018-06-20 08:59:35.510705 Traceback (most recent call last):
2018-06-20 08:59:35.510711 File "/opt/stack/
2018-06-20 08:59:35.564607 filename = str(data.file.name)
2018-06-20 08:59:35.564708 AttributeError: '_io.BytesIO' object has no attribute 'name'
2018-06-20 08:59:46.887167 ERROR openstack_
2018-06-20 08:59:46.887212 Traceback (most recent call last):
2018-06-20 08:59:46.887215 File "/opt/stack/
2018-06-20 08:59:46.887229 data = function(self, request, *args, **kw)
2018-06-20 08:59:46.887231 File "/opt/stack/
2018-06-20 08:59:46.887234 **request.
2018-06-20 08:59:46.887235 KeyError: 'updated'
summary: |
- Can't update image visibility + Unable to PATCH Metadata via horizon on Images Created with glance cli |
Reproduced issue in queens:
[Description about Error]
Attempted to update visibility, min_disk and min_ram, ran into the same issue. However this was only reproducible when the image was created via cli. When the image was created via horizon, min_disk and min_ram were successfully changed.
Suggest change of title to "Unable to Change Metadata via horizon on Images Created with glance cli"
[Version]
openstack 3.14.0
[Logs] dashboard. api.rest. utils error invoking apiclient openstack- dashboard/ openstack_ dashboard/ api/rest/ utils.py" , line 127, in _wrapped openstack- dashboard/ openstack_ dashboard/ api/rest/ glance. py", line 110, in patch DATA['updated' ]
[Fri Jun 22 07:44:57.440084 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] ERROR openstack_
[Fri Jun 22 07:44:57.440123 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] Traceback (most recent call last):
[Fri Jun 22 07:44:57.440140 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] File "/usr/share/
[Fri Jun 22 07:44:57.440147 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] data = function(self, request, *args, **kw)
[Fri Jun 22 07:44:57.440154 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] File "/usr/share/
[Fri Jun 22 07:44:57.440160 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] **request.
[Fri Jun 22 07:44:57.440166 2018] [wsgi:error] [pid 32292:tid 140226579207936] [remote 10.0.0.44:51717] KeyError: 'updated'