Ask Your Question
0

heat stack-list returns ERROR: Authentication required

asked 2015-04-07 07:53:20 -0500

kvk_vijay gravatar image

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#

edit retag flag offensive close merge delete

Comments

installation on UBUNTU 14.10 LTS

kvk_vijay gravatar imagekvk_vijay ( 2015-04-07 07:54:51 -0500 )edit
1

Have you sourced the user environment variables? Also ensure that keystone_authtoken and ec2authtoken is properly configured in heat.conf

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-04-08 03:05:02 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-04-08 02:54:50 -0500

check if keystone services are up and heat is able to interact with it. also check if heat is able to communiate with DB .

edit flag offensive delete link more
0

answered 2015-04-08 09:33:00 -0500

kvk_vijay gravatar image

finally it's spell mistake of rabbit_host name in keystone_authtoken .. my real hostname is stackcntl01 where i typed as stackcntlo1 (o instear 0) :-) . thanks everyone

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-07 07:53:20 -0500

Seen: 457 times

Last updated: Apr 08 '15