Glance can't upload image time sporadically

Bug #1412334 reported by Leontii Istomin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
MOS Glance
5.0.x
Won't Fix
Medium
Fuel QA Team
5.1.x
Won't Fix
Medium
Fuel QA Team
6.0.x
Won't Fix
Medium
Fuel Library (Deprecated)
6.1.x
Invalid
Medium
MOS Glance

Bug Description

[root@fuel stack]# fuel --fuel-version
api: '1.0'
astute_sha: f7cda2171b0b677dfaeb59693d980a2d3ee4c3e0
auth_required: true
build_id: 2015-01-15_08-35-26
build_number: '28'
feature_groups:
- mirantis
- experimental
fuellib_sha: 7d78c8260805f8ef347c927c9e86d9021cdd6fc2
fuelmain_sha: 4935a7680cc18fbb24df0493d761e17fba072e21
nailgun_sha: 5f91157daa6798ff522ca9f6d34e7e135f150a90
ostf_sha: 785fcc52ff59d249695dfcaf7589fe378a5af4ed
production: docker
release: 6.0.1
release_versions:
  2014.2-6.0:
    VERSION:
      api: '1.0'
      astute_sha: f7cda2171b0b677dfaeb59693d980a2d3ee4c3e0
      build_id: 2015-01-15_08-35-26
      build_number: '28'
      feature_groups:
      - mirantis
      fuellib_sha: 7d78c8260805f8ef347c927c9e86d9021cdd6fc2
      fuelmain_sha: 4935a7680cc18fbb24df0493d761e17fba072e21
      nailgun_sha: 5f91157daa6798ff522ca9f6d34e7e135f150a90
      ostf_sha: 785fcc52ff59d249695dfcaf7589fe378a5af4ed
      production: docker
      release: 6.0.1

Centos, HA, Provision method - from Image

[root@node-1 ~]# for i in {1..3}; do glance --debug image-create --name test_img --disk-format qcow2 --container-format bare --copy-from http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img --is-public True; done curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}ddbdf67b29d1724b2ac0d5cdca2dbeccf7383bbb' -H 'User-Agent: python-glanceclient' -H 'x-image-meta-is_public: True' -H 'x-glance-api-copy-from: http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: test_img' http://172.16.44.16:9292/v1/images

HTTP/1.1 201 Created
content-length: 450
connection: close
location: http://172.16.44.16:9292/v1/images/0a726748-b5cf-4ce6-932d-160256bae28d
date: Mon, 19 Jan 2015 07:24:28 GMT
content-type: application/json
x-openstack-request-id: req-85623892-61d5-4f55-8773-730c1060273a

{"image": {"status": "queued", "deleted": false, "container_format": "bare", "min_ram": 0, "updated_at": "2015-01-19T07:24:29", "owner": "89a578088913483bb4f76ac0ec556f3f", "min_disk": 0, "is_public": true, "deleted_at": null, "id": "0a726748-b5cf-4ce6-932d-160256bae28d", "size": 13147648, "virtual_size": null, "name": "test_img", "checksum": null, "created_at": "2015-01-19T07:24:29", "disk_format": "qcow2", "properties": {}, "protected": false}}

+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | bare |
| created_at | 2015-01-19T07:24:29 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 0a726748-b5cf-4ce6-932d-160256bae28d |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | test_img |
| owner | 89a578088913483bb4f76ac0ec556f3f |
| protected | False |
| size | 13147648 |
| status | queued |
| updated_at | 2015-01-19T07:24:29 |
| virtual_size | None |
+------------------+--------------------------------------+
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}ab670fc9945245baffad80a041f915836918b717' -H 'User-Agent: python-glanceclient' -H 'x-image-meta-is_public: True' -H 'x-glance-api-copy-from: http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: test_img' http://172.16.44.16:9292/v1/images

Request returned failure status 400.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/glanceclient/shell.py", line 590, in main
    args.func(client, args)
  File "/usr/lib/python2.6/site-packages/glanceclient/v1/shell.py", line 237, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 288, in create
    data=image_data)
  File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 254, in post
    return self._request('POST', url, **kwargs)
  File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 219, in _request
    raise exc.from_response(resp, resp.content)
HTTPBadRequest: <html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The HTTP URL is invalid.<br /><br />

 </body>
</html> (HTTP 400)
<html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The HTTP URL is invalid.<br /><br />

 </body>
</html> (HTTP 400)
curl -i -X POST -H 'Accept-Encoding: gzip, deflate, compress' -H 'x-image-meta-container_format: bare' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}f14a7e6993c11f6188df7a0e4cddaf1a64ca7116' -H 'User-Agent: python-glanceclient' -H 'x-image-meta-is_public: True' -H 'x-glance-api-copy-from: http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: qcow2' -H 'x-image-meta-name: test_img' http://172.16.44.16:9292/v1/images
Request returned failure status 400.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/glanceclient/shell.py", line 590, in main
    args.func(client, args)
  File "/usr/lib/python2.6/site-packages/glanceclient/v1/shell.py", line 237, in do_image_create
    image = gc.images.create(**fields)
  File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 288, in create
    data=image_data)
  File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 254, in post
    return self._request('POST', url, **kwargs)
  File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 219, in _request
    raise exc.from_response(resp, resp.content)
HTTPBadRequest: <html>
 <head>
   <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The HTTP URL is invalid.<br /><br />

 </body>
</html> (HTTP 400)
<html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The HTTP URL is invalid.<br /><br />

 </body>
</html> (HTTP 400)

result of tempest and rally-light rests are attached. Diagnostic snapshot is here https://drive.google.com/a/mirantis.com/file/d/0Bx4ptZV1Jt7hVERoRnpZVkh2WEE/view?usp=sharing.

Tags: scale
Revision history for this message
Leontii Istomin (listomin) wrote :
Revision history for this message
Leontii Istomin (listomin) wrote :
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Medium
Changed in fuel:
milestone: none → 6.0.1
status: New → Confirmed
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Do we have root cause identified? This bug seems open for several months.

Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

This bug is not reprodusible now.
Verified by reporter.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.