Ask Your Question
0

heat stack-list returns ERROR: Authentication required

asked 2015-03-19 11:35:07 -0500

jslater gravatar image

updated 2015-03-19 14:44:24 -0500

rbowen gravatar image

So I followed the instructions at http://docs.openstack.org/juno/instal... to get heat installed, and all took fine. When I've started heat try to query I get:

    # heat --debug stack-list
    DEBUG (session) REQ: curl -i -X GET http://192.168.2.159:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
    DEBUG (session) RESP: [200] {'content-length': '423', 'vary': 'X-Auth-Token', 'server': 'Apache/2.4.6 (CentOS)', 'connection': 'close', 'date': 'Thu, 19 Mar 2015 16:19:37 GMT', 'content-type': 'application/json'} 
    RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://192.168.2.159:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

    DEBUG (v2) Making authentication request to http://192.168.2.159:5000/v2.0/tokens
    DEBUG (session) REQ: curl -i -X GET http://192.168.2.159:8004/v1/df4608f936424a0cbe9633e64b276ab0/stacks? -H "Accept: application/json" -H "User-Agent: python-heatclient" -H "X-Region-Name: RegionOne" -H "X-Auth-Token: TOKEN_REDACTED" -H "Content-Type: application/json" -H "X-Auth-Url: http://192.168.2.159:5000/v2.0/"
    DEBUG (session) RESP:
    DEBUG (v2) Making authentication request to http://192.168.2.159:5000/v2.0/tokens
    DEBUG (session) RESP:
    Traceback (most recent call last):
      File "/usr/bin/heat", line 10, in <module>
        sys.exit(main())
      File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 656, in main
        HeatShell().main(args)
      File "/usr/lib/python2.7/site-packages/heatclient/shell.py", line 606, in main
        args.func(client, args)
      File "/usr/lib/python2.7/site-packages/heatclient/v1/shell.py", line 538, in do_stack_list
        utils.print_list(stacks, fields, sortby_index=3)
      File "/usr/lib/python2.7/site-packages/heatclient/openstack/common/cliutils.py", line 154, in print_list
        for o in objs:
      File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 85, in paginate
        stacks = self._list(url, 'stacks')
      File "/usr/lib/python2.7/site-packages/heatclient/openstack/common/apiclient/base.py", line 115, in _list
        body = self.client.get(url).json()
      File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 280, in get
        return self.client_request("GET", url, **kwargs)
      File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 273, in client_request
        resp, body = self.json_request(method, url, **kwargs)
      File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 254, in json_request
        resp = self._http_request(url, method, **kwargs)
      File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 344, in _http_request
        raise exc.from_response(resp)
    heatclient.exc.HTTPUnauthorized: ERROR: Authentication required


    2015-03-19 16:21:20.199 7175 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Authentication failure: The request you have made requires authentication. (HTTP 401)
    2015-03-19 16:21:20.811 7175 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Authentication failure: The request you have made requires authentication. (HTTP 401)
    2015-03-19 16:21:21.871 7175 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Authentication failure: The request you ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-20 11:30:11 -0500

jslater gravatar image

Solved - there's an error in the Juno/Heat install guide. After many hours and much frustration I found the offending line:

Section 2.d at http://docs.openstack.org/juno/instal... specifies:

keystone user-role-add --user heat --tenant service --role admin

It's the wrong tenant. It should be:

keystone user-role-add --user heat --tenant services --role admin

Doc bug has been logged...

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-03-19 11:35:07 -0500

Seen: 1,844 times

Last updated: Mar 20 '15