yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #83225
[Bug 1886706] [NEW] 502 error on image-upload w/o disk_format
Public bug reported:
I forgot some parameters when uploading an image, and Glance returns a
502 in this situation instead of a 4xx.
$ glance image-create --name test
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | None |
| created_at | 2020-07-07T18:39:06Z |
| disk_format | None |
| id | ed1eb93f-ee1d-4724-a2e0-3ec73284ccad |
| locations | [] |
| min_disk | 0 |
| min_ram | 0 |
| name | test |
| os_hash_algo | None |
| os_hash_value | None |
| os_hidden | False |
| owner | cc995fa2d2674cc68d9807c679974b62 |
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2020-07-07T18:39:06Z |
| virtual_size | Not available |
| visibility | shared |
+------------------+--------------------------------------+
$ glance --debug image-upload --file xenial-server-cloudimg-amd64-disk1.img ed1eb93f-ee1d-4724-a2e0-3ec73284ccad
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://10.16.226.218/identity -H "Accept: application/json" -H "User-Agent: glance keystoneauth1/4.2.0 python-requests/2.24.0 CPython/3.7.7"
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.16.226.218:80
DEBUG:urllib3.connectionpool:http://10.16.226.218:80 "GET /identity HTTP/1.1" 300 272
DEBUG:keystoneauth.session:RESP: [300] Connection: close Content-Length: 272 Content-Type: application/json Date: Tue, 07 Jul 2020 18:39:37 GMT Location: http://10.16.226.218/identity/v3/ Server: Apache/2.4.43 (Fedora) OpenSSL/1.1.1g mod_wsgi/4.6.6 Python/2.7 Vary: X-Auth-Token x-openstack-request-id: req-90ddd4d8-ce69-48e6-88bd-3f121533f2b2
DEBUG:keystoneauth.session:RESP BODY: {"versions": {"values": [{"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://10.16.226.218/identity/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}]}}
DEBUG:keystoneauth.session:GET call to http://10.16.226.218/identity used request id req-90ddd4d8-ce69-48e6-88bd-3f121533f2b2
DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://10.16.226.218/identity/v3/auth/tokens
DEBUG:urllib3.connectionpool:Resetting dropped connection: 10.16.226.218
DEBUG:urllib3.connectionpool:http://10.16.226.218:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 3248
DEBUG:keystoneauth.identity.v3.base:{"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "708937e58d864c119cc0ea5494c4d471", "name": "admin", "password_expires_at": null}, "audit_ids": ["u5zhb3JmTM2Ep4zqAkf_HQ"], "expires_at": "2020-07-07T19:39:37.000000Z", "issued_at": "2020-07-07T18:39:37.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "cc995fa2d2674cc68d9807c679974b62", "name": "demo"}, "is_domain": false, "roles": [{"id": "1441c942463441f39b1c4283c3167241", "name": "reader"}, {"id": "0dddde83a4044418a96b80edeecb3713", "name": "member"}, {"id": "483de3402cb2497b8cfb4cd31ad7792c", "name": "admin"}], "catalog": [{"endpoints": [{"id": "03c5daf6910849d8b82b70bd19a26802", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/image", "region": "RegionOne"}], "id": "114e9e2744fb4726b549884f90199160", "type": "image", "name": "glance"}, {"endpoints": [{"id": "83d67968a3ff4a2da46ec6031fc1dbf5", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/compute/v2/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "2c0f7b569a7d4058b49cf9f367f69a97", "type": "compute_legacy", "name": "nova_legacy"}, {"endpoints": [{"id": "0a2e7dc07049429f8b67badcb097900c", "interface": "admin", "region_id": "RegionOne", "url": "http://10.16.226.218/identity", "region": "RegionOne"}, {"id": "42a8608eef3a4d3684016c3c46cfc0c7", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/identity", "region": "RegionOne"}], "id": "3122c8f6bf244997876ab07e9c9a8170", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "720f4a0a4f3c43e9a8fc6f786f7700fc", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/volume/v3/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "34c24c6959ff413d9c8bc1e9736fce75", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "d650d50c16cf46beb8341e06cc3928c3", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/volume/v3/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "4c0a1834dd334095b3ce1689005b4934", "type": "block-storage", "name": "cinder"}, {"endpoints": [{"id": "13df01f3f32c40c98fe43b3979a3da54", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/compute/v2.1", "region": "RegionOne"}], "id": "4ec368dba7524d2391a672be9b48229c", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "c0fbffcf61244b7a840fca3280d713a2", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/placement", "region": "RegionOne"}], "id": "861ca530a4854ed2bb3beabc06157358", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "f21dc7fc945a45fdaeab871777355886", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/volume/v2/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "88b05418227a46dfa530c83881a94406", "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"id": "18b7e8c375724262a2d5dc78fade1e77", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218:9696/", "region": "RegionOne"}], "id": "b2dc1ed283514d1caa7ce19c9608a7bb", "type": "network", "name": "neutron"}]}}
DEBUG:keystoneauth.session:REQ: curl -g -i -X PUT http://10.16.226.218/image/v2/images/ed1eb93f-ee1d-4724-a2e0-3ec73284ccad/file -H "Content-Type: application/octet-stream" -H "User-Agent: python-glanceclient" -H "X-Auth-Token: {SHA256}aff9f18ed1f85d40207271e70e08b03e75582eb5138bae2390643d51ffe95406" -d '<generator object _BaseHTTPClient._chunk_body at 0x7f752908aad0>'
DEBUG:urllib3.connectionpool:Resetting dropped connection: 10.16.226.218
DEBUG:keystoneauth.session:RESP: [502] Connection: close Content-Length: 232 Content-Type: text/html; charset=iso-8859-1 Date: Tue, 07 Jul 2020 18:39:37 GMT Server: Apache/2.4.43 (Fedora) OpenSSL/1.1.1g mod_wsgi/4.6.6 Python/2.7
DEBUG:keystoneauth.session:RESP BODY: Omitted, Content-Type is set to text/html; charset=iso-8859-1. Only application/json responses have their bodies logged.
Request returned failure status 502.
DEBUG:glanceclient.common.http:Request returned failure status 502.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/glanceclient/shell.py", line 687, in main
OpenStackImagesShell().main(argv)
File "/usr/local/lib/python3.7/site-packages/glanceclient/shell.py", line 591, in main
args.func(client, args)
File "/usr/local/lib/python3.7/site-packages/glanceclient/v2/shell.py", line 651, in do_image_upload
gc.images.upload(args.id, image_data, args.size, backend=backend)
File "/usr/local/lib/python3.7/site-packages/glanceclient/common/utils.py", line 605, in inner
return RequestIdProxy(wrapped(*args, **kwargs))
File "/usr/local/lib/python3.7/site-packages/glanceclient/v2/images.py", line 290, in upload
resp, body = self.http_client.put(url, headers=hdrs, data=body)
File "/usr/local/lib/python3.7/site-packages/keystoneauth1/adapter.py", line 404, in put
return self.request(url, 'PUT', **kwargs)
File "/usr/local/lib/python3.7/site-packages/glanceclient/common/http.py", line 387, in request
return self._handle_response(resp)
File "/usr/local/lib/python3.7/site-packages/glanceclient/common/http.py", line 126, in _handle_response
raise exc.from_response(resp, resp.content)
glanceclient.exc.HTTPBadGateway: HTTP 502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.
HTTP 502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.
g-api log:
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: DEBUG glance.api.v2.image_data [None req-71e35223-9261-457f-b09a-db46fc7be54f demo admin] C
annot save data for image ed1eb93f-ee1d-4724-a2e0-3ec73284ccad: Properties disk_format, container_format must be set prior to saving data. {{(pid=149397) uplo
ad /opt/stack/glance/glance/api/v2/image_data.py:219}}
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: DEBUG glance.domain [None req-71e35223-9261-457f-b09a-db46fc7be54f demo admin] Image status
transition from queued to queued is not allowed {{(pid=149397) status /opt/stack/glance/glance/domain/__init__.py:162}}
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data [None req-71e35223-9261-457f-b09a-db46fc7be54f demo admin] U
nable to restore image ed1eb93f-ee1d-4724-a2e0-3ec73284ccad: Image status transition from queued to queued is not allowed: glance.common.exception.InvalidImag
eStatusTransition: Image status transition from queued to queued is not allowed
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data Traceback (most recent call last):
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/api/v2/image_data.py", line
142, in upload
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data image.status = 'saving'
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23,
in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data [Previous line repeated 3 more times]
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/__init__.py", line 176, in status
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data raise ValueError(msg % ', '.join(missing))
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data ValueError: Properties disk_format, container_format must be set prior to saving data.
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data During handling of the above exception, another exception occurred:
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data Traceback (most recent call last):
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/api/v2/image_data.py", line 63, in _restore
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data image.status = 'queued'
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data [Previous line repeated 3 more times]
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/__init__.py", line 163, in status
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data raise e
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data glance.common.exception.InvalidImageStatusTransition: Image status transition from queued to queued is not allowed
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1886706
Title:
502 error on image-upload w/o disk_format
Status in Glance:
New
Bug description:
I forgot some parameters when uploading an image, and Glance returns a
502 in this situation instead of a 4xx.
$ glance image-create --name test
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | None |
| created_at | 2020-07-07T18:39:06Z |
| disk_format | None |
| id | ed1eb93f-ee1d-4724-a2e0-3ec73284ccad |
| locations | [] |
| min_disk | 0 |
| min_ram | 0 |
| name | test |
| os_hash_algo | None |
| os_hash_value | None |
| os_hidden | False |
| owner | cc995fa2d2674cc68d9807c679974b62 |
| protected | False |
| size | None |
| status | queued |
| tags | [] |
| updated_at | 2020-07-07T18:39:06Z |
| virtual_size | Not available |
| visibility | shared |
+------------------+--------------------------------------+
$ glance --debug image-upload --file xenial-server-cloudimg-amd64-disk1.img ed1eb93f-ee1d-4724-a2e0-3ec73284ccad
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://10.16.226.218/identity -H "Accept: application/json" -H "User-Agent: glance keystoneauth1/4.2.0 python-requests/2.24.0 CPython/3.7.7"
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.16.226.218:80
DEBUG:urllib3.connectionpool:http://10.16.226.218:80 "GET /identity HTTP/1.1" 300 272
DEBUG:keystoneauth.session:RESP: [300] Connection: close Content-Length: 272 Content-Type: application/json Date: Tue, 07 Jul 2020 18:39:37 GMT Location: http://10.16.226.218/identity/v3/ Server: Apache/2.4.43 (Fedora) OpenSSL/1.1.1g mod_wsgi/4.6.6 Python/2.7 Vary: X-Auth-Token x-openstack-request-id: req-90ddd4d8-ce69-48e6-88bd-3f121533f2b2
DEBUG:keystoneauth.session:RESP BODY: {"versions": {"values": [{"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://10.16.226.218/identity/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}]}}
DEBUG:keystoneauth.session:GET call to http://10.16.226.218/identity used request id req-90ddd4d8-ce69-48e6-88bd-3f121533f2b2
DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://10.16.226.218/identity/v3/auth/tokens
DEBUG:urllib3.connectionpool:Resetting dropped connection: 10.16.226.218
DEBUG:urllib3.connectionpool:http://10.16.226.218:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 3248
DEBUG:keystoneauth.identity.v3.base:{"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "708937e58d864c119cc0ea5494c4d471", "name": "admin", "password_expires_at": null}, "audit_ids": ["u5zhb3JmTM2Ep4zqAkf_HQ"], "expires_at": "2020-07-07T19:39:37.000000Z", "issued_at": "2020-07-07T18:39:37.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "cc995fa2d2674cc68d9807c679974b62", "name": "demo"}, "is_domain": false, "roles": [{"id": "1441c942463441f39b1c4283c3167241", "name": "reader"}, {"id": "0dddde83a4044418a96b80edeecb3713", "name": "member"}, {"id": "483de3402cb2497b8cfb4cd31ad7792c", "name": "admin"}], "catalog": [{"endpoints": [{"id": "03c5daf6910849d8b82b70bd19a26802", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/image", "region": "RegionOne"}], "id": "114e9e2744fb4726b549884f90199160", "type": "image", "name": "glance"}, {"endpoints": [{"id": "83d67968a3ff4a2da46ec6031fc1dbf5", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/compute/v2/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "2c0f7b569a7d4058b49cf9f367f69a97", "type": "compute_legacy", "name": "nova_legacy"}, {"endpoints": [{"id": "0a2e7dc07049429f8b67badcb097900c", "interface": "admin", "region_id": "RegionOne", "url": "http://10.16.226.218/identity", "region": "RegionOne"}, {"id": "42a8608eef3a4d3684016c3c46cfc0c7", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/identity", "region": "RegionOne"}], "id": "3122c8f6bf244997876ab07e9c9a8170", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "720f4a0a4f3c43e9a8fc6f786f7700fc", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/volume/v3/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "34c24c6959ff413d9c8bc1e9736fce75", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "d650d50c16cf46beb8341e06cc3928c3", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/volume/v3/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "4c0a1834dd334095b3ce1689005b4934", "type": "block-storage", "name": "cinder"}, {"endpoints": [{"id": "13df01f3f32c40c98fe43b3979a3da54", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/compute/v2.1", "region": "RegionOne"}], "id": "4ec368dba7524d2391a672be9b48229c", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "c0fbffcf61244b7a840fca3280d713a2", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/placement", "region": "RegionOne"}], "id": "861ca530a4854ed2bb3beabc06157358", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "f21dc7fc945a45fdaeab871777355886", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218/volume/v2/cc995fa2d2674cc68d9807c679974b62", "region": "RegionOne"}], "id": "88b05418227a46dfa530c83881a94406", "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"id": "18b7e8c375724262a2d5dc78fade1e77", "interface": "public", "region_id": "RegionOne", "url": "http://10.16.226.218:9696/", "region": "RegionOne"}], "id": "b2dc1ed283514d1caa7ce19c9608a7bb", "type": "network", "name": "neutron"}]}}
DEBUG:keystoneauth.session:REQ: curl -g -i -X PUT http://10.16.226.218/image/v2/images/ed1eb93f-ee1d-4724-a2e0-3ec73284ccad/file -H "Content-Type: application/octet-stream" -H "User-Agent: python-glanceclient" -H "X-Auth-Token: {SHA256}aff9f18ed1f85d40207271e70e08b03e75582eb5138bae2390643d51ffe95406" -d '<generator object _BaseHTTPClient._chunk_body at 0x7f752908aad0>'
DEBUG:urllib3.connectionpool:Resetting dropped connection: 10.16.226.218
DEBUG:keystoneauth.session:RESP: [502] Connection: close Content-Length: 232 Content-Type: text/html; charset=iso-8859-1 Date: Tue, 07 Jul 2020 18:39:37 GMT Server: Apache/2.4.43 (Fedora) OpenSSL/1.1.1g mod_wsgi/4.6.6 Python/2.7
DEBUG:keystoneauth.session:RESP BODY: Omitted, Content-Type is set to text/html; charset=iso-8859-1. Only application/json responses have their bodies logged.
Request returned failure status 502.
DEBUG:glanceclient.common.http:Request returned failure status 502.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/glanceclient/shell.py", line 687, in main
OpenStackImagesShell().main(argv)
File "/usr/local/lib/python3.7/site-packages/glanceclient/shell.py", line 591, in main
args.func(client, args)
File "/usr/local/lib/python3.7/site-packages/glanceclient/v2/shell.py", line 651, in do_image_upload
gc.images.upload(args.id, image_data, args.size, backend=backend)
File "/usr/local/lib/python3.7/site-packages/glanceclient/common/utils.py", line 605, in inner
return RequestIdProxy(wrapped(*args, **kwargs))
File "/usr/local/lib/python3.7/site-packages/glanceclient/v2/images.py", line 290, in upload
resp, body = self.http_client.put(url, headers=hdrs, data=body)
File "/usr/local/lib/python3.7/site-packages/keystoneauth1/adapter.py", line 404, in put
return self.request(url, 'PUT', **kwargs)
File "/usr/local/lib/python3.7/site-packages/glanceclient/common/http.py", line 387, in request
return self._handle_response(resp)
File "/usr/local/lib/python3.7/site-packages/glanceclient/common/http.py", line 126, in _handle_response
raise exc.from_response(resp, resp.content)
glanceclient.exc.HTTPBadGateway: HTTP 502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.
HTTP 502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.
g-api log:
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: DEBUG glance.api.v2.image_data [None req-71e35223-9261-457f-b09a-db46fc7be54f demo admin] C
annot save data for image ed1eb93f-ee1d-4724-a2e0-3ec73284ccad: Properties disk_format, container_format must be set prior to saving data. {{(pid=149397) uplo
ad /opt/stack/glance/glance/api/v2/image_data.py:219}}
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: DEBUG glance.domain [None req-71e35223-9261-457f-b09a-db46fc7be54f demo admin] Image status
transition from queued to queued is not allowed {{(pid=149397) status /opt/stack/glance/glance/domain/__init__.py:162}}
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data [None req-71e35223-9261-457f-b09a-db46fc7be54f demo admin] U
nable to restore image ed1eb93f-ee1d-4724-a2e0-3ec73284ccad: Image status transition from queued to queued is not allowed: glance.common.exception.InvalidImag
eStatusTransition: Image status transition from queued to queued is not allowed
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data Traceback (most recent call last):
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/api/v2/image_data.py", line
142, in upload
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data image.status = 'saving'
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23,
in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data [Previous line repeated 3 more times]
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/__init__.py", line 176, in status
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data raise ValueError(msg % ', '.join(missing))
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data ValueError: Properties disk_format, container_format must be set prior to saving data.
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data During handling of the above exception, another exception occurred:
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data Traceback (most recent call last):
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/api/v2/image_data.py", line 63, in _restore
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data image.status = 'queued'
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/proxy.py", line 23, in set_attr
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data return setattr(getattr(self, target), attr, value)
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data [Previous line repeated 3 more times]
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data File "/opt/stack/glance/glance/domain/__init__.py", line 163, in status
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data raise e
Jul 07 14:39:38 f31dev.localdomain devstack@g-api.service[149396]: ERROR glance.api.v2.image_data glance.common.exception.InvalidImageStatusTransition: Image status transition from queued to queued is not allowed
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1886706/+subscriptions
Follow ups