heat -d stack-list
DEBUG (http) curl -g -i -X GET -H 'X-Auth-User: <email address hidden>' -H 'User-Agent: python-heatclient' -H 'X-Auth-Key: 9cGrqpZf' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-Auth-Url: http://158.85.165.2:5000/v2.0' http://10.0.0.75:8004/v1/7da46bff2e694677af4d055fc4d68164/stacks?
INFO (connectionpool) Starting new HTTP connection (1): 10.0.0.75
DEBUG (connectionpool) "GET /v1/7da46bff2e694677af4d055fc4d68164/stacks HTTP/1.1" 400 3015
DEBUG (http)
HTTP/1.1 400 Bad Request
date: Fri, 30 Jan 2015 00:02:30 GMT
connection: keep-alive
content-type: application/json; charset=UTF-8
content-length: 3015
x-openstack-request-id: req-dd4bcb43-0b81-461f-ab2e-ca79b554e01b
{"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "'KeystoneClientV2' object has no attribute 'session'", "traceback": "Traceback (most recent call last):\n File \"/home/angus/work/heat/heat/api/middleware/fault.py\", line 150, in process_request\n return req.get_response(self.application)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1320, in send\n application, catch_exc_info=False)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1284, in call_application\n app_iter = application(self.environ, start_response)\n File \"/usr/local/lib/python2.7/dist-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/usr/local/lib/python2.7/dist-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/home/angus/work/heat/heat/common/wsgi.py\", line 398, in __call__\n response = req.get_response(self.application)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1320, in send\n application, catch_exc_info=False)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1284, in call_application\n app_iter = application(self.environ, start_response)\n File \"/usr/local/lib/python2.7/dist-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/usr/local/lib/python2.7/dist-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/home/angus/work/heat/heat/common/wsgi.py\", line 398, in __call__\n response = req.get_response(self.application)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1320, in send\n application, catch_exc_info=False)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1284, in call_application\n app_iter = application(self.environ, start_response)\n File \"/usr/local/lib/python2.7/dist-packages/webob/dec.py\", line 130, in __call__\n resp = self.call_func(req, *args, **self.kwargs)\n File \"/usr/local/lib/python2.7/dist-packages/webob/dec.py\", line 195, in call_func\n return self.func(req, *args, **kwargs)\n File \"/home/angus/work/heat/heat/common/wsgi.py\", line 398, in __call__\n response = req.get_response(self.application)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1320, in send\n application, catch_exc_info=False)\n File \"/usr/local/lib/python2.7/dist-packages/webob/request.py\", line 1284, in call_application\n app_iter = application(self.environ, start_response)\n File \"/home/angus/work/heat/heat/common/auth_password.py\", line 55, in __call__\n session = heat_keystoneclient.KeystoneClient(ctx).session\nAttributeError: 'KeystoneClientV2' object has no attribute 'session'\n", "type": "AttributeError"}, "title": "Bad Request"}
Traceback (most recent call last):
File "/usr/local/bin/heat", line 9, in <module>
load_entry_point('python-heatclient==0.2.12.post64', 'console_scripts', 'heat')()
File "/home/angus/work/python-heatclient/heatclient/shell.py", line 706, in main
HeatShell().main(args)
File "/home/angus/work/python-heatclient/heatclient/shell.py", line 656, in main
args.func(client, args)
File "/home/angus/work/python-heatclient/heatclient/v1/shell.py", line 581, in do_stack_list
utils.print_list(stacks, fields, sortby_index=3)
File "/home/angus/work/python-heatclient/heatclient/openstack/common/cliutils.py", line 169, in print_list
for o in objs:
File "/home/angus/work/python-heatclient/heatclient/v1/stacks.py", line 100, in paginate
stacks = self._list(url, 'stacks')
File "/home/angus/work/python-heatclient/heatclient/openstack/common/apiclient/base.py", line 117, in _list
body = self.client.get(url).json()
File "/home/angus/work/python-heatclient/heatclient/common/http.py", line 292, in get
return self.client_request("GET", url, **kwargs)
File "/home/angus/work/python-heatclient/heatclient/common/http.py", line 285, in client_request
resp, body = self.json_request(method, url, **kwargs)
File "/home/angus/work/python-heatclient/heatclient/common/http.py", line 266, in json_request
resp = self._http_request(url, method, **kwargs)
File "/home/angus/work/python-heatclient/heatclient/common/http.py", line 221, in _http_request
raise exc.from_response(resp)
heatclient.exc.HTTPBadRequest: ERROR: 'KeystoneClientV2' object has no attribute 'session'
Fix proposed to branch: master /review. openstack. org/151542
Review: https:/