Comment 4 for bug 1487645

Revision history for this message
Ed Balduf (ebalduf) wrote :

A bit more detail here to help. Here is the output from glanceclient with debug and verbose. Taking a look at the trace and the code in master they were radically different, so it seems like this is a version problem. See below

[e@devstack glanceclient]$ glance -d -v image-show e20fae04-35b1-42f4-9025-2712be7396e0
curl -g -i -X HEAD -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}1e5ffd286b348fd2232645b4f21adbd41e27d447' -H 'Content-Type: application/octet-stream' http://172.27.162.241:9292/v1/images/e20fae04-35b1-42f4-9025-2712be7396e0

HTTP/1.1 200 OK
Content-Length: 0
X-Image-Meta-Id: e20fae04-35b1-42f4-9025-2712be7396e0
X-Image-Meta-Deleted: False
X-Image-Meta-Checksum: 64d7c1cd2b6f60c92c14662941cb7913
X-Image-Meta-Status: active
X-Image-Meta-Container_format: bare
X-Image-Meta-Protected: False
X-Image-Meta-Min_disk: 0
X-Image-Meta-Min_ram: 0
X-Image-Meta-Created_at: 2015-08-21T21:26:27.000000
X-Image-Meta-Size: 13167616
Connection: keep-alive
Etag: 64d7c1cd2b6f60c92c14662941cb7913
X-Image-Meta-Is_public: True
Date: Mon, 24 Aug 2015 14:28:26 GMT
X-Image-Meta-Owner: 6880ca64ebd04c10ad81b92eb0a890c0
X-Image-Meta-Updated_at: 2015-08-21T21:26:30.000000
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-6b63d869-0069-44cb-83f4-cbe77aa1ee0e
X-Image-Meta-Disk_format: qcow2
X-Image-Meta-Name: cirros-0.3.2-x86_64-disk

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 667, in main
    args.func(client, args)
  File "/usr/lib/python2.7/site-packages/glanceclient/v1/shell.py", line 142, in do_image_show
    image_id = utils.find_resource(gc.images, args.image).id
  File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__
    self.get()
  File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get
    new = self.manager.get(self.id)
  File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__
    raise AttributeError(k)
AttributeError: id
id

What I have also found is that if I pull python-glanceclient from the git.openstack.org and move it into site-packages, I still get the same version reported, BUT it now works.

[e@devstack site-packages]$ glance --version
0.19.0
[e@devstack site-packages]$ glance image-show e20fae04-35b1-42f4-9025-2712be7396e0
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 64d7c1cd2b6f60c92c14662941cb7913 |
| container_format | bare |
| created_at | 2015-08-21T21:26:27Z |
| disk_format | qcow2 |
| id | e20fae04-35b1-42f4-9025-2712be7396e0 |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.2-x86_64-disk |
| owner | 6880ca64ebd04c10ad81b92eb0a890c0 |
| protected | False |
| size | 13167616 |
| status | active |
| tags | [] |
| updated_at | 2015-08-21T21:26:30Z |
| virtual_size | None |
| visibility | public |
+------------------+--------------------------------------+