heat stack-list returns ERROR: Authentication required
I had installed the heat engine as per the documentation . Still i get the error .
Part of --debug output
kU5acleAwzp+uXngtyoRvzT+VqlYmfD' http://stackcntl01:8004/v1/adc938a890... INFO (connectionpool:258) Starting new HTTP connection (1): stackcntl01 DEBUG (connectionpool:375) Setting read timeout to None DEBUG (connectionpool:415) "GET /v1/adc938a89057491da107fc4ac310588a/stacks HTTP/1.1" 401 23
HTTP/1.1 401 Unauthorized date: Tue, 07 Apr 2015 12:52:22 GMT content-length: 23 content-type: text/plain www-authenticate: Keystone uri='http://stackcntl01:5000/v2.0'
Authentication required
DEBUG (http:121) HTTP/1.1 401 Unauthorized date: Tue, 07 Apr 2015 12:52:22 GMT content-length: 23 content-type: text/plain www-authenticate: Keystone uri='http://stackcntl01:5000/v2.0'
Authentication required
Traceback (most recent call last): File "/usr/bin/heat", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.7/dist-packages/heatclient/shell.py", line 429, in main HeatShell().main(args) File "/usr/lib/python2.7/dist-packages/heatclient/shell.py", line 385, in main args.func(client, args) File "/usr/lib/python2.7/dist-packages/heatclient/v1/shell.py", line 323, in do_stack_list utils.print_list(stacks, fields, sortby=3) File "/usr/lib/python2.7/dist-packages/heatclient/common/utils.py", line 66, in print_list for o in objs: File "/usr/lib/python2.7/dist-packages/heatclient/v1/stacks.py", line 82, in paginate stacks = self._list(url, 'stacks') File "/usr/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 115, in _list body = self.client.get(url).json() File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 249, in get return self.client_request("GET", url, *kwargs) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 242, in client_request resp, body = self.json_request(method, url, *kwargs) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 223, in json_request resp = self._http_request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/heatclient/common/http.py", line 188, in _http_request raise exc.from_response(resp) heatclient.exc.HTTPUnauthorized: ERROR: Authentication required root@stackcntl01:/var/log/heat#
installation on UBUNTU 14.10 LTS
Have you sourced the user environment variables? Also ensure that keystone_authtoken and ec2authtoken is properly configured in heat.conf