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
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.
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-2712be7396 e0 glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}1e5ffd286 b348fd2232645b4 f21adbd41e27d44 7' -H 'Content-Type: application/ octet-stream' http:// 172.27. 162.241: 9292/v1/ images/ e20fae04- 35b1-42f4- 9025-2712be7396 e0
curl -g -i -X HEAD -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
HTTP/1.1 200 OK 35b1-42f4- 9025-2712be7396 e0 Meta-Deleted: False Meta-Checksum: 64d7c1cd2b6f60c 92c14662941cb79 13 Meta-Status: active Meta-Container_ format: bare Meta-Protected: False Meta-Min_ disk: 0 Meta-Min_ ram: 0 Meta-Created_ at: 2015-08- 21T21:26: 27.000000 92c14662941cb79 13 Meta-Is_ public: True 0ad81b92eb0a890 c0 Meta-Updated_ at: 2015-08- 21T21:26: 30.000000 Request- Id: req-6b63d869- 0069-44cb- 83f4-cbe77aa1ee 0e Meta-Disk_ format: qcow2 0.3.2-x86_ 64-disk
Content-Length: 0
X-Image-Meta-Id: e20fae04-
X-Image-
X-Image-
X-Image-
X-Image-
X-Image-
X-Image-
X-Image-
X-Image-
X-Image-Meta-Size: 13167616
Connection: keep-alive
Etag: 64d7c1cd2b6f60c
X-Image-
Date: Mon, 24 Aug 2015 14:28:26 GMT
X-Image-Meta-Owner: 6880ca64ebd04c1
X-Image-
Content-Type: text/html; charset=UTF-8
X-Openstack-
X-Image-
X-Image-Meta-Name: cirros-
Traceback (most recent call last): python2. 7/site- packages/ glanceclient/ shell.py" , line 667, in main func(client, args) python2. 7/site- packages/ glanceclient/ v1/shell. py", line 142, in do_image_show resource( gc.images, args.image).id python2. 7/site- packages/ glanceclient/ openstack/ common/ apiclient/ base.py" , line 491, in __getattr__ python2. 7/site- packages/ glanceclient/ openstack/ common/ apiclient/ base.py" , line 509, in get get(self. id) python2. 7/site- packages/ glanceclient/ openstack/ common/ apiclient/ base.py" , line 494, in __getattr__
File "/usr/lib/
args.
File "/usr/lib/
image_id = utils.find_
File "/usr/lib/
self.get()
File "/usr/lib/
new = self.manager.
File "/usr/lib/
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 35b1-42f4- 9025-2712be7396 e0 ------- -----+- ------- ------- ------- ------- ------- --+ ------- -----+- ------- ------- ------- ------- ------- --+ 92c14662941cb79 13 | 21T21:26: 27Z | 35b1-42f4- 9025-2712be7396 e0 | 0.3.2-x86_ 64-disk | 0ad81b92eb0a890 c0 | 21T21:26: 30Z | ------- -----+- ------- ------- ------- ------- ------- --+
0.19.0
[e@devstack site-packages]$ glance image-show e20fae04-
+------
| Property | Value |
+------
| checksum | 64d7c1cd2b6f60c
| container_format | bare |
| created_at | 2015-08-
| disk_format | qcow2 |
| id | e20fae04-
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-
| owner | 6880ca64ebd04c1
| protected | False |
| size | 13167616 |
| status | active |
| tags | [] |
| updated_at | 2015-08-
| virtual_size | None |
| visibility | public |
+------