← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1703856] [NEW] 502 Bad gateway error on image-create

 

Public bug reported:


The glance code that I am using is from the upstream master branch (Pike) and I just pulled down the latest code this morning and still can reproduce this problem.

Up until about 2 weeks ago, I was able to upload my database image into
glance using this command:

glance image-create --name 'Db 12.1.0.2' --file
Oracle12201DBRAC_x86_64-xvdb.qcow2 --container-format bare --disk-format
qcow2

However, now it fails as follows:

 glance --debug  image-create --name 'Db 12.1.0.2' --file
Oracle12201DBRAC_x86_64-xvdb.qcow2 --container-format bare --disk-format
qcow2

DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://172.16.35.10/identity -H "Accept: application/json" -H "User-Agent: glance keystoneauth1/2.21.0 python-requests/2.18.1 CPython/2.7.12"
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 172.16.35.10
DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "GET /identity HTTP/1.1" 300 606
DEBUG:keystoneauth.session:RESP: [300] Date: Wed, 12 Jul 2017 14:26:39 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token Content-Type: application/json Content-Length: 606 Connection: close 
RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://172.16.35.10/identity/v3/";, "rel": "self"}]}, {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.16.35.10/identity/v2.0/";, "rel": "self"}, {"href": "https://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}]}}

DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://172.16.35.10/identity/v3/auth/tokens
DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 4893
DEBUG:keystoneauth.identity.v3.base:{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "325205c52aba4b31801e2d71ec95483b", "name": "admin"}], "expires_at": "2017-07-12T15:26:40.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "4aa1233111e140b2a1e4ba170881f092", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://172.16.35.10/image";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0d10d85bc3ae4e13a49ed344fcf6f737"}], "type": "image", "id": "01c2acd1845d4dd28c5b69351fa0dbf3", "name": "glance"}, {"endpoints": [{"url": "http://172.16.35.10:8004/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0fbba7f276e44921ba112edd1e157561"}, {"url": "http://172.16.35.10:8004/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "72abdff47e2940f09db32720b709d01f"}, {"url": "http://172.16.35.10:8004/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d2789811c71342d69d69e45c09268ebc"}], "type": "orchestration", "id": "343101b65cba48afafb5b70fcbae5c3d", "name": "heat"}, {"endpoints": [{"url": "http://172.16.35.10/compute/v2/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d7fe183ce05d46d986c7ec7600b583a5"}], "type": "compute_legacy", "id": "3d75e8b88ed14f95b162b5398acfde82", "name": "nova_legacy"}, {"endpoints": [{"url": "http://172.16.35.10:8082";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "65e5e92c5646468583f033cfb05ae0cb"}, {"url": "http://172.16.35.10:8082";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "8cbae4cbce354314aa5f2b5e5c4e4592"}, {"url": "http://172.16.35.10:8082";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d761a53278654ac690fb56b42752c1a4"}], "type": "application-catalog", "id": "42038a7b5c744771842615613d21f2ba", "name": "murano"}, {"endpoints": [{"url": "http://172.16.35.10/identity";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4b5c6e820b9446f586be1f64da5ae2f6"}, {"url": "http://172.16.35.10/identity";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f6c18a74f19a4b728eeb5f3916dde7c1"}], "type": "identity", "id": "518a08b01ddf4c38ba2dfb0481aa196f", "name": "keystone"}, {"endpoints": [{"url": "http://172.16.35.10:8776/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "26a34fe1d409488dbc1d4178642de6f1"}], "type": "volume", "id": "57e3dbcfe62741b1bbc735d137caf3c7", "name": "cinder"}, {"endpoints": [{"url": "http://172.16.35.10:9696/";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "1ef656cb68144f10a60b3167fc4b6602"}], "type": "network", "id": "7d8a5129ef114b6baf952bec7b3ac370", "name": "neutron"}, {"endpoints": [{"url": "http://172.16.35.10:8776/v3/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0dcc6673cd9e43e38d4ff98d5766dd4a"}], "type": "volumev3", "id": "7d8ec460d29b4306b2dba773c4eb2d42", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.16.35.10/placement";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "a8aa98db377e4251b0b0a2860875e65e"}], "type": "placement", "id": "b0069601a94547878fe2247671a67e42", "name": "placement"}, {"endpoints": [{"url": "http://172.16.35.10:8776/v2/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d4fafa2ac6ef42429280d6b95a5b60e4"}], "type": "volumev2", "id": "bd4751a9312545fa9dddfc9c9ff9443f", "name": "cinderv2"}, {"endpoints": [{"url": "http://172.16.35.10:8000/v1";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "78a41e339c03440890b8317353a5fddf"}, {"url": "http://172.16.35.10:8000/v1";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c126e21adbe347459c9d90017a5661e3"}, {"url": "http://172.16.35.10:8000/v1";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "cbf70d8f60e94bf8974b289e6e91d655"}], "type": "cloudformation", "id": "bdf32e61289d4fb687d4075d0e9f7fab", "name": "heat-cfn"}, {"endpoints": [{"url": "http://172.16.35.10/compute/v2.1";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "59a8b8c8c8234e3a91b9c49c61b91567"}], "type": "compute", "id": "bf544eeb97c54b35819d60fa7b3a99e2", "name": "nova"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "4508a16b6ed34cd989feb695cf0bf1c1"}, "audit_ids": ["Ob5pbubJSuGlK_nkZUlJYQ"], "issued_at": "2017-07-12T14:26:40.000000Z"}}
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://172.16.35.10/image/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578"
DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "GET /image/v2/schemas/image HTTP/1.1" 200 4137
DEBUG:keystoneauth.session:RESP: [200] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Type: application/json Content-Length: 4137 x-openstack-request-id: req-d8714cbf-77aa-439e-93cc-e9fe351883a5 Connection: close 
RESP BODY: {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"readOnly": true, "enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated"], "type": "string", "description": "Status of the image"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.", "is_base": false}, "container_format": {"enum": [null, "ami", "ari", "aki", "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.", "is_base": false}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["community", "public", "private", "shared"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"readOnly": true, "type": "string", "description": "Date and time of the last image modification"}, "owner": {"type": ["null", "string"], "description": "Owner of the image", "maxLength": 255}, "file": {"readOnly": true, "type": "string", "description": "An image file url"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"], "description": "Virtual size of image in bytes"}, "id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string", "description": "An identifier for the image"}, "size": {"readOnly": true, "type": ["null", "integer"], "description": "Size of image file in bytes"}, "instance_uuid": {"type": "string", "description": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)", "is_base": false}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "name": {"type": ["null", "string"], "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"readOnly": true, "type": ["null", "string"], "description": "md5 hash of image contents.", "maxLength": 32}, "created_at": {"readOnly": true, "type": "string", "description": "Date and time of image registration"}, "disk_format": {"enum": [null, "ami", "ari", "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso", "ploop"], "type": ["null", "string"], "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor", "is_base": false}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "direct_url": {"readOnly": true, "type": "string", "description": "URL to access the image file kept in external store"}, "self": {"readOnly": true, "type": "string", "description": "An image self url"}, "schema": {"readOnly": true, "type": "string", "description": "An image schema url"}}}

DEBUG:keystoneauth.session:GET call to image for http://172.16.35.10/image/v2/schemas/image used request id req-d8714cbf-77aa-439e-93cc-e9fe351883a5
DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://172.16.35.10/image/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578"
DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "GET /image/v2/schemas/image HTTP/1.1" 200 4137
DEBUG:keystoneauth.session:RESP: [200] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Type: application/json Content-Length: 4137 x-openstack-request-id: req-df6bec7c-b700-4438-a188-cf7d7afb3f69 Connection: close 
RESP BODY: {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"readOnly": true, "enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated"], "type": "string", "description": "Status of the image"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.", "is_base": false}, "container_format": {"enum": [null, "ami", "ari", "aki", "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.", "is_base": false}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["community", "public", "private", "shared"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"readOnly": true, "type": "string", "description": "Date and time of the last image modification"}, "owner": {"type": ["null", "string"], "description": "Owner of the image", "maxLength": 255}, "file": {"readOnly": true, "type": "string", "description": "An image file url"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"], "description": "Virtual size of image in bytes"}, "id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string", "description": "An identifier for the image"}, "size": {"readOnly": true, "type": ["null", "integer"], "description": "Size of image file in bytes"}, "instance_uuid": {"type": "string", "description": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)", "is_base": false}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "name": {"type": ["null", "string"], "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"readOnly": true, "type": ["null", "string"], "description": "md5 hash of image contents.", "maxLength": 32}, "created_at": {"readOnly": true, "type": "string", "description": "Date and time of image registration"}, "disk_format": {"enum": [null, "ami", "ari", "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso", "ploop"], "type": ["null", "string"], "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor", "is_base": false}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "direct_url": {"readOnly": true, "type": "string", "description": "URL to access the image file kept in external store"}, "self": {"readOnly": true, "type": "string", "description": "An image self url"}, "schema": {"readOnly": true, "type": "string", "description": "An image schema url"}}}

DEBUG:keystoneauth.session:GET call to image for http://172.16.35.10/image/v2/schemas/image used request id req-df6bec7c-b700-4438-a188-cf7d7afb3f69
DEBUG:keystoneauth.session:REQ: curl -g -i -X POST http://172.16.35.10/image/v2/images -H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578" -d '{"container_format": "bare", "disk_format": "qcow2", "name": "Db 12.1.0.2"}'
DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "POST /image/v2/images HTTP/1.1" 201 555
DEBUG:keystoneauth.session:RESP: [201] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Length: 555 Content-Type: application/json Location: http://127.0.0.1:60999/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0 x-openstack-request-id: req-b1a50e1b-006e-4322-b0a4-dc91367b4fcd Connection: close 
RESP BODY: {"status": "queued", "name": "Db 12.1.0.2", "tags": [], "container_format": "bare", "created_at": "2017-07-12T14:26:40Z", "size": null, "disk_format": "qcow2", "updated_at": "2017-07-12T14:26:40Z", "visibility": "shared", "self": "/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0", "min_disk": 0, "protected": false, "id": "11f8a7ab-375a-47f9-8b69-10ad48e229b0", "file": "/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0/file", "checksum": null, "owner": "4aa1233111e140b2a1e4ba170881f092", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}

DEBUG:keystoneauth.session:POST call to image for http://172.16.35.10/image/v2/images used request id req-b1a50e1b-006e-4322-b0a4-dc91367b4fcd
DEBUG:keystoneauth.session:REQ: curl -g -i -X PUT http://172.16.35.10/image/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0/file -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578" -d '<generator object _chunk_body at 0x7fd0d879cd20>'
DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
DEBUG:keystoneauth.session:RESP: [502] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Length: 310 Connection: close Content-Type: text/html; charset=iso-8859-1 
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.
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | bare                                 |
| created_at       | 2017-07-12T14:26:40Z                 |
| disk_format      | qcow2                                |
| id               | 11f8a7ab-375a-47f9-8b69-10ad48e229b0 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | Db 12.1.0.2                          |
| owner            | 4aa1233111e140b2a1e4ba170881f092     |
| protected        | False                                |
| size             | None                                 |
| status           | queued                               |
| tags             | []                                   |
| updated_at       | 2017-07-12T14:26:40Z                 |
| virtual_size     | None                                 |
| visibility       | shared                               |
+------------------+--------------------------------------+
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 706, in main
    OpenStackImagesShell().main(argv)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 610, in main
    args.func(client, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 98, in func_wrapper
    return func(gc, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 86, in do_image_create
    do_image_upload(gc, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 324, in do_image_upload
    gc.images.upload(args.id, image_data, args.size)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 545, in inner
    return RequestIdProxy(wrapped(*args, **kwargs))
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 231, in upload
    resp, body = self.http_client.put(url, headers=hdrs, data=body)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 243, in put
    return self.request(url, 'PUT', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 352, in request
    return self._handle_response(resp)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 98, in _handle_response
    raise exc.from_response(resp, resp.content)
HTTPBadGateway: 502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 172.16.35.10 Port 80 (HTTP 502)
502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 172.16.35.10 Port 80 (HTTP 502)
labuser@eb-stack1:/opt/stack$  


Any ideas?

I have been able to work around it (by enabled the v1 api) using the v1
parameter, --location instead of using --file.  But this is only a
temporary fix.

I can load smaller images into glance just fine with image-create.  This
database image is about 16Gb in size.

I also posted a comment in ask.openstack.org where the problem was the
same as this.  See:

https://ask.openstack.org/en/question/108140/openstack-windows-image-
stuck-in-queuing/


Thank you.

** 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/1703856

Title:
  502 Bad gateway error on image-create

Status in Glance:
  New

Bug description:
  
  The glance code that I am using is from the upstream master branch (Pike) and I just pulled down the latest code this morning and still can reproduce this problem.

  Up until about 2 weeks ago, I was able to upload my database image
  into glance using this command:

  glance image-create --name 'Db 12.1.0.2' --file
  Oracle12201DBRAC_x86_64-xvdb.qcow2 --container-format bare --disk-
  format qcow2

  However, now it fails as follows:

   glance --debug  image-create --name 'Db 12.1.0.2' --file
  Oracle12201DBRAC_x86_64-xvdb.qcow2 --container-format bare --disk-
  format qcow2

  DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://172.16.35.10/identity -H "Accept: application/json" -H "User-Agent: glance keystoneauth1/2.21.0 python-requests/2.18.1 CPython/2.7.12"
  DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 172.16.35.10
  DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "GET /identity HTTP/1.1" 300 606
  DEBUG:keystoneauth.session:RESP: [300] Date: Wed, 12 Jul 2017 14:26:39 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token Content-Type: application/json Content-Length: 606 Connection: close 
  RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://172.16.35.10/identity/v3/";, "rel": "self"}]}, {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.16.35.10/identity/v2.0/";, "rel": "self"}, {"href": "https://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}]}}

  DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://172.16.35.10/identity/v3/auth/tokens
  DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
  DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 4893
  DEBUG:keystoneauth.identity.v3.base:{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "325205c52aba4b31801e2d71ec95483b", "name": "admin"}], "expires_at": "2017-07-12T15:26:40.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "4aa1233111e140b2a1e4ba170881f092", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://172.16.35.10/image";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0d10d85bc3ae4e13a49ed344fcf6f737"}], "type": "image", "id": "01c2acd1845d4dd28c5b69351fa0dbf3", "name": "glance"}, {"endpoints": [{"url": "http://172.16.35.10:8004/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0fbba7f276e44921ba112edd1e157561"}, {"url": "http://172.16.35.10:8004/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "72abdff47e2940f09db32720b709d01f"}, {"url": "http://172.16.35.10:8004/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d2789811c71342d69d69e45c09268ebc"}], "type": "orchestration", "id": "343101b65cba48afafb5b70fcbae5c3d", "name": "heat"}, {"endpoints": [{"url": "http://172.16.35.10/compute/v2/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d7fe183ce05d46d986c7ec7600b583a5"}], "type": "compute_legacy", "id": "3d75e8b88ed14f95b162b5398acfde82", "name": "nova_legacy"}, {"endpoints": [{"url": "http://172.16.35.10:8082";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "65e5e92c5646468583f033cfb05ae0cb"}, {"url": "http://172.16.35.10:8082";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "8cbae4cbce354314aa5f2b5e5c4e4592"}, {"url": "http://172.16.35.10:8082";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d761a53278654ac690fb56b42752c1a4"}], "type": "application-catalog", "id": "42038a7b5c744771842615613d21f2ba", "name": "murano"}, {"endpoints": [{"url": "http://172.16.35.10/identity";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4b5c6e820b9446f586be1f64da5ae2f6"}, {"url": "http://172.16.35.10/identity";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f6c18a74f19a4b728eeb5f3916dde7c1"}], "type": "identity", "id": "518a08b01ddf4c38ba2dfb0481aa196f", "name": "keystone"}, {"endpoints": [{"url": "http://172.16.35.10:8776/v1/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "26a34fe1d409488dbc1d4178642de6f1"}], "type": "volume", "id": "57e3dbcfe62741b1bbc735d137caf3c7", "name": "cinder"}, {"endpoints": [{"url": "http://172.16.35.10:9696/";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "1ef656cb68144f10a60b3167fc4b6602"}], "type": "network", "id": "7d8a5129ef114b6baf952bec7b3ac370", "name": "neutron"}, {"endpoints": [{"url": "http://172.16.35.10:8776/v3/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0dcc6673cd9e43e38d4ff98d5766dd4a"}], "type": "volumev3", "id": "7d8ec460d29b4306b2dba773c4eb2d42", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.16.35.10/placement";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "a8aa98db377e4251b0b0a2860875e65e"}], "type": "placement", "id": "b0069601a94547878fe2247671a67e42", "name": "placement"}, {"endpoints": [{"url": "http://172.16.35.10:8776/v2/4aa1233111e140b2a1e4ba170881f092";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d4fafa2ac6ef42429280d6b95a5b60e4"}], "type": "volumev2", "id": "bd4751a9312545fa9dddfc9c9ff9443f", "name": "cinderv2"}, {"endpoints": [{"url": "http://172.16.35.10:8000/v1";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "78a41e339c03440890b8317353a5fddf"}, {"url": "http://172.16.35.10:8000/v1";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c126e21adbe347459c9d90017a5661e3"}, {"url": "http://172.16.35.10:8000/v1";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "cbf70d8f60e94bf8974b289e6e91d655"}], "type": "cloudformation", "id": "bdf32e61289d4fb687d4075d0e9f7fab", "name": "heat-cfn"}, {"endpoints": [{"url": "http://172.16.35.10/compute/v2.1";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "59a8b8c8c8234e3a91b9c49c61b91567"}], "type": "compute", "id": "bf544eeb97c54b35819d60fa7b3a99e2", "name": "nova"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "4508a16b6ed34cd989feb695cf0bf1c1"}, "audit_ids": ["Ob5pbubJSuGlK_nkZUlJYQ"], "issued_at": "2017-07-12T14:26:40.000000Z"}}
  DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://172.16.35.10/image/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578"
  DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
  DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "GET /image/v2/schemas/image HTTP/1.1" 200 4137
  DEBUG:keystoneauth.session:RESP: [200] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Type: application/json Content-Length: 4137 x-openstack-request-id: req-d8714cbf-77aa-439e-93cc-e9fe351883a5 Connection: close 
  RESP BODY: {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"readOnly": true, "enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated"], "type": "string", "description": "Status of the image"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.", "is_base": false}, "container_format": {"enum": [null, "ami", "ari", "aki", "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.", "is_base": false}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["community", "public", "private", "shared"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"readOnly": true, "type": "string", "description": "Date and time of the last image modification"}, "owner": {"type": ["null", "string"], "description": "Owner of the image", "maxLength": 255}, "file": {"readOnly": true, "type": "string", "description": "An image file url"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"], "description": "Virtual size of image in bytes"}, "id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string", "description": "An identifier for the image"}, "size": {"readOnly": true, "type": ["null", "integer"], "description": "Size of image file in bytes"}, "instance_uuid": {"type": "string", "description": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)", "is_base": false}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "name": {"type": ["null", "string"], "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"readOnly": true, "type": ["null", "string"], "description": "md5 hash of image contents.", "maxLength": 32}, "created_at": {"readOnly": true, "type": "string", "description": "Date and time of image registration"}, "disk_format": {"enum": [null, "ami", "ari", "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso", "ploop"], "type": ["null", "string"], "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor", "is_base": false}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "direct_url": {"readOnly": true, "type": "string", "description": "URL to access the image file kept in external store"}, "self": {"readOnly": true, "type": "string", "description": "An image self url"}, "schema": {"readOnly": true, "type": "string", "description": "An image schema url"}}}

  DEBUG:keystoneauth.session:GET call to image for http://172.16.35.10/image/v2/schemas/image used request id req-d8714cbf-77aa-439e-93cc-e9fe351883a5
  DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://172.16.35.10/image/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578"
  DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
  DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "GET /image/v2/schemas/image HTTP/1.1" 200 4137
  DEBUG:keystoneauth.session:RESP: [200] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Type: application/json Content-Length: 4137 x-openstack-request-id: req-df6bec7c-b700-4438-a188-cf7d7afb3f69 Connection: close 
  RESP BODY: {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"readOnly": true, "enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated"], "type": "string", "description": "Status of the image"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.", "is_base": false}, "container_format": {"enum": [null, "ami", "ari", "aki", "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.", "is_base": false}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["community", "public", "private", "shared"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"readOnly": true, "type": "string", "description": "Date and time of the last image modification"}, "owner": {"type": ["null", "string"], "description": "Owner of the image", "maxLength": 255}, "file": {"readOnly": true, "type": "string", "description": "An image file url"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"], "description": "Virtual size of image in bytes"}, "id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string", "description": "An identifier for the image"}, "size": {"readOnly": true, "type": ["null", "integer"], "description": "Size of image file in bytes"}, "instance_uuid": {"type": "string", "description": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)", "is_base": false}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "name": {"type": ["null", "string"], "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"readOnly": true, "type": ["null", "string"], "description": "md5 hash of image contents.", "maxLength": 32}, "created_at": {"readOnly": true, "type": "string", "description": "Date and time of image registration"}, "disk_format": {"enum": [null, "ami", "ari", "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso", "ploop"], "type": ["null", "string"], "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor", "is_base": false}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in https://docs.openstack.org/cli-reference/glance-property-keys.html";, "is_base": false}, "direct_url": {"readOnly": true, "type": "string", "description": "URL to access the image file kept in external store"}, "self": {"readOnly": true, "type": "string", "description": "An image self url"}, "schema": {"readOnly": true, "type": "string", "description": "An image schema url"}}}

  DEBUG:keystoneauth.session:GET call to image for http://172.16.35.10/image/v2/schemas/image used request id req-df6bec7c-b700-4438-a188-cf7d7afb3f69
  DEBUG:keystoneauth.session:REQ: curl -g -i -X POST http://172.16.35.10/image/v2/images -H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578" -d '{"container_format": "bare", "disk_format": "qcow2", "name": "Db 12.1.0.2"}'
  DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
  DEBUG:urllib3.connectionpool:http://172.16.35.10:80 "POST /image/v2/images HTTP/1.1" 201 555
  DEBUG:keystoneauth.session:RESP: [201] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Length: 555 Content-Type: application/json Location: http://127.0.0.1:60999/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0 x-openstack-request-id: req-b1a50e1b-006e-4322-b0a4-dc91367b4fcd Connection: close 
  RESP BODY: {"status": "queued", "name": "Db 12.1.0.2", "tags": [], "container_format": "bare", "created_at": "2017-07-12T14:26:40Z", "size": null, "disk_format": "qcow2", "updated_at": "2017-07-12T14:26:40Z", "visibility": "shared", "self": "/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0", "min_disk": 0, "protected": false, "id": "11f8a7ab-375a-47f9-8b69-10ad48e229b0", "file": "/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0/file", "checksum": null, "owner": "4aa1233111e140b2a1e4ba170881f092", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}

  DEBUG:keystoneauth.session:POST call to image for http://172.16.35.10/image/v2/images used request id req-b1a50e1b-006e-4322-b0a4-dc91367b4fcd
  DEBUG:keystoneauth.session:REQ: curl -g -i -X PUT http://172.16.35.10/image/v2/images/11f8a7ab-375a-47f9-8b69-10ad48e229b0/file -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}918f5d5463ced3694e5a1d252c562fef879d4578" -d '<generator object _chunk_body at 0x7fd0d879cd20>'
  DEBUG:urllib3.connectionpool:Resetting dropped connection: 172.16.35.10
  DEBUG:keystoneauth.session:RESP: [502] Date: Wed, 12 Jul 2017 14:26:40 GMT Server: Apache/2.4.18 (Ubuntu) Content-Length: 310 Connection: close Content-Type: text/html; charset=iso-8859-1 
  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.
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | bare                                 |
  | created_at       | 2017-07-12T14:26:40Z                 |
  | disk_format      | qcow2                                |
  | id               | 11f8a7ab-375a-47f9-8b69-10ad48e229b0 |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | Db 12.1.0.2                          |
  | owner            | 4aa1233111e140b2a1e4ba170881f092     |
  | protected        | False                                |
  | size             | None                                 |
  | status           | queued                               |
  | tags             | []                                   |
  | updated_at       | 2017-07-12T14:26:40Z                 |
  | virtual_size     | None                                 |
  | visibility       | shared                               |
  +------------------+--------------------------------------+
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 706, in main
      OpenStackImagesShell().main(argv)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 610, in main
      args.func(client, args)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 98, in func_wrapper
      return func(gc, args)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 86, in do_image_create
      do_image_upload(gc, args)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 324, in do_image_upload
      gc.images.upload(args.id, image_data, args.size)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 545, in inner
      return RequestIdProxy(wrapped(*args, **kwargs))
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 231, in upload
      resp, body = self.http_client.put(url, headers=hdrs, data=body)
    File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 243, in put
      return self.request(url, 'PUT', **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 352, in request
      return self._handle_response(resp)
    File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 98, in _handle_response
      raise exc.from_response(resp, resp.content)
  HTTPBadGateway: 502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 172.16.35.10 Port 80 (HTTP 502)
  502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.18 (Ubuntu) Server at 172.16.35.10 Port 80 (HTTP 502)
  labuser@eb-stack1:/opt/stack$  

  
  Any ideas?

  I have been able to work around it (by enabled the v1 api) using the
  v1 parameter, --location instead of using --file.  But this is only a
  temporary fix.

  I can load smaller images into glance just fine with image-create.
  This database image is about 16Gb in size.

  I also posted a comment in ask.openstack.org where the problem was the
  same as this.  See:

  https://ask.openstack.org/en/question/108140/openstack-windows-image-
  stuck-in-queuing/

  
  Thank you.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1703856/+subscriptions


Follow ups