Comment 5 for bug 1370302

Revision history for this message
Eric Lee (eric-lee-ltk) wrote :

debug messages are as follow when I execute `heat --debug stack-list` with auth_uri=http://keystone_server:5000/v2.0 in heat.conf:

DEBUG (v2) Making authentication request to http://controller:5000/v2.0/tokens
DEBUG (http) curl -i -X GET -H 'X-Auth-Token: b97500ac1d9849bd91d63c5a04b59ea1' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' http://controller:8004/v1/c8f88a72e4e141f29339a9d30fe93d04/stacks?
DEBUG (http)
HTTP/1.1 401 Unauthorized
date: Wed, 08 Oct 2014 00:35:13 GMT
content-length: 23
content-type: text/plain
www-authenticate: Keystone uri='http://controller:5000/v2.0'
x-openstack-request-id: req-7e0bea9b-77ae-4286-ad6a-675b51e69b72

Authentication required

Traceback (most recent call last):
  File "/usr/local/bin/heat", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/heatclient/shell.py", line 443, in main
    HeatShell().main(args)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/shell.py", line 399, in main
    args.func(client, args)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/shell.py", line 432, in do_stack_list
    utils.print_list(stacks, fields, sortby_index=3)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/openstack/common/cliutils.py", line 154, in print_list
    for o in objs:
  File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 85, in paginate
    stacks = self._list(url, 'stacks')
  File "/usr/local/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 115, in _list
    body = self.client.get(url).json()
  File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 259, in get
    return self.client_request("GET", url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 252, in client_request
    resp, body = self.json_request(method, url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 233, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/common/http.py", line 192, in _http_request
    % resp.content)
heatclient.exc.HTTPUnauthorized: ERROR: Authentication failed. Please try again with option --include-password or export HEAT_INCLUDE_PASSWORD=1
Authentication required