I am not sure if it's a bug in glanceclient or in openstackclient glance image-list work just fine but from openstackclient it fails :
chmouel@ubuntu:GIT/stack/python-openstackclient$ openstack --debug image list
INFO: requests.packages.urllib3.connectionpool Starting new HTTP connection (1): 172.16.129.149
ERROR: cliff.app 'Client_v1' object has no attribute 'json_request'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 280, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 85, in run
self.produce_output(parsed_args, column_names, data)
File "/usr/local/lib/python2.7/dist-packages/cliff/lister.py", line 64, in produce_output
parsed_args,
File "/usr/local/lib/python2.7/dist-packages/cliff/formatters/table.py", line 35, in emit_list
first_row = next(data_iter)
File "/home/chmouel/GIT/stack/python-openstackclient/openstackclient/image/v1/image.py", line 245, in <genexpr>
return (columns, (utils.get_item_properties(s, columns) for s in data))
File "/home/chmouel/GIT/stack/python-glanceclient/glanceclient/v1/images.py", line 175, in paginate
images = self._list(url, "images")
File "/home/chmouel/GIT/stack/python-glanceclient/glanceclient/common/base.py", line 54, in _list
resp, body = self.api.json_request('GET', url)
AttributeError: 'Client_v1' object has no attribute 'json_request'
ERROR: openstackclient.shell Traceback (most recent call last):
File "/home/chmouel/GIT/stack/python-openstackclient/openstackclient/shell.py", line 125, in run
return super(OpenStackShell, self).run(argv)
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 215, in run
result = self.run_subcommand(remainder)
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 280, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 85, in run
self.produce_output(parsed_args, column_names, data)
File "/usr/local/lib/python2.7/dist-packages/cliff/lister.py", line 64, in produce_output
parsed_args,
File "/usr/local/lib/python2.7/dist-packages/cliff/formatters/table.py", line 35, in emit_list
first_row = next(data_iter)
File "/home/chmouel/GIT/stack/python-openstackclient/openstackclient/image/v1/image.py", line 245, in <genexpr>
return (columns, (utils.get_item_properties(s, columns) for s in data))
File "/home/chmouel/GIT/stack/python-glanceclient/glanceclient/v1/images.py", line 175, in paginate
images = self._list(url, "images")
File "/home/chmouel/GIT/stack/python-glanceclient/glanceclient/common/base.py", line 54, in _list
resp, body = self.api.json_request('GET', url)
AttributeError: 'Client_v1' object has no attribute 'json_request'
This is the cause of the problem: https:/ /github. com/openstack/ python- glanceclient/ commit/ 24340329cf0abb0 3533920b6e71014 c3a59da482
Not sure ATM what the solution is, but Client used to have that json_request method because is was-a HTTPClient