Docker images are broken in glance

Bug #1277852 reported by Daniel Kuffner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

After spinning up my stack I noticed that the docker images in glance are not shown as expected:

   glance image-list

   +--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
   | ID | Name | Disk Format | Container Format | Size | Status |
  +--------------------------------------+---------------------------------+-------------+------------------+----------+--------+
  | 832dfbf6-bcb6-4bbd-b613-4045d283cf29 | | raw | docker | 86 | active |
  | 32dded72-3bff-45e6-922b-5f4e85bf9769 | | raw | docker | | queued |

Notice the queued state. Please also notice that none of the images has a name.

Since that didn't lok correct to me I have deleted all glance images. And tried to reimport the busybox image:

    docker push <ip>:5042/busybox

The upload will fail. The docker registry log show:

2014-02-08 10:19:30,463 ERROR: Exception on /v1/images/bf747efa0e2fa9f7c691588ce3938944c75607a7bb5e757f7369f86904d97c78/json [PUT]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/docker-registry/registry/toolkit.py", line 203, in wrapper
    return f(*args, **kwargs)
  File "/docker-registry/registry/images.py", line 320, in put_image_json
    store.put_content(json_path, flask.request.data)
  File "/docker-registry/lib/storage/glance.py", line 59, in dispatcher
    return attr(*args, **kwargs)
  File "/docker-registry/lib/storage/glance.py", line 189, in put_content
    image.update(properties=props, purge_props=False)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 46, in update
    self.manager.update(self, **fields)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 291, in update
    'PUT', url, headers=hdrs, body=image_data)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 273, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 183, in _http_request
    self.log_curl_request(method, url, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 141, in log_curl_request
    LOG.debug(strutils.safe_encode(' '.join(curl)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 673: ordinal not in range(128)
2014-02-08 10:19:30,463 ERROR: Exception on /v1/images/bf747efa0e2fa9f7c691588ce3938944c75607a7bb5e757f7369f86904d97c78/json [PUT]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/docker-registry/registry/toolkit.py", line 203, in wrapper
    return f(*args, **kwargs)
  File "/docker-registry/registry/images.py", line 320, in put_image_json
    store.put_content(json_path, flask.request.data)
  File "/docker-registry/lib/storage/glance.py", line 59, in dispatcher
    return attr(*args, **kwargs)
  File "/docker-registry/lib/storage/glance.py", line 189, in put_content
    image.update(properties=props, purge_props=False)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 46, in update
    self.manager.update(self, **fields)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 291, in update
    'PUT', url, headers=hdrs, body=image_data)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 273, in raw_request
    return self._http_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 183, in _http_request
    self.log_curl_request(method, url, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 141, in log_curl_request
    LOG.debug(strutils.safe_encode(' '.join(curl)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 673: ordinal not in range(128)

Tags: docker
Revision history for this message
Daniel Kuffner (daniel-kuffner) wrote :
Changed in devstack:
status: New → Invalid
Revision history for this message
Maru Newby (maru) wrote :

Despite this being an upstream issue, this is a bug affecting devstack+docker. I'm marking as confirmed so that we can track the upstream issue to resolution.

Changed in devstack:
status: Invalid → Confirmed
assignee: nobody → Maru Newby (maru)
Maru Newby (maru)
Changed in devstack:
assignee: Maru Newby (maru) → nobody
Prithiv (prithiv)
Changed in devstack:
assignee: nobody → Prithiv (prithiv)
Prithiv (prithiv)
Changed in devstack:
assignee: Prithiv (prithiv) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: Confirmed → Invalid
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.