keyError: images reported by python-novaclient

Bug #1034665 reported by Naveen Joy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Invalid
Undecided
Unassigned

Bug Description

nova --debug image-list
connect: (192.168.119.42, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.119.42:5000\r\nContent-Length: 99\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "coke", "passwordCredentials": {"username": "admin", "password": "admin"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 2150
header: Date: Wed, 08 Aug 2012 22:47:05 GMT
connect: (192.168.119.42, 8774)
send: u'GET /v2.0/244be8af89624b1e94c0136d5d557a9d/images/detail HTTP/1.1\r\nHost: 192.168.119.42:8774\r\nx-auth-project-id: coke\r\nx-auth-token: 9c83d119682d4bb8832728ff5360870e\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 300 Multiple Choices\r\n'
header: Content-Type: application/json
header: Content-Length: 366
header: Date: Wed, 08 Aug 2012 22:47:05 GMT
DEBUG (shell:463) 'images'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.10-py2.7.egg/novaclient/shell.py", line 460, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.10-py2.7.egg/novaclient/shell.py", line 396, in main
    args.func(self.cs, args)
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.10-py2.7.egg/novaclient/v1_1/shell.py", line 363, in do_image_list
    image_list = cs.images.list()
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.10-py2.7.egg/novaclient/v1_1/images.py", line 47, in list
    return self._list("/images/detail", "images")
  File "/usr/local/lib/python2.7/dist-packages/python_novaclient-2.6.10-py2.7.egg/novaclient/base.py", line 67, in _list
    data = body[response_key]
KeyError: 'images'
ERROR: 'images'

Note:
Accessing the nova-api server via a rest-api client works. The key errorr is reported by nova-client

Revision history for this message
Andrew Laski (alaski) wrote :

It has been a while since this was reported. Can you confirm if this behaviour is still occurring for you?

Changed in python-novaclient:
status: New → Incomplete
Revision history for this message
Abhishek Chanda (abhishek-i) wrote :

Cannot repro this on Havana. Confirming that this has been fixed.

Michael Still (mikal)
Changed in python-novaclient:
status: Incomplete → 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.