Ask Your Question
0

keystone config and verification

asked 2016-07-07 10:27:47 -0500

keinlezard gravatar image

Hello I 'm folowing this doc

http://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-verify.html (http://docs.openstack.org/mitaka/inst...)

when I arrive to the verify section ... I correctly set my env

but :(

openstack --os-auth-url http://controler:5000/v3 --os-project-domain-name default --os-user-domain-name default --os-project-name demo --os-username demo token issue after demanding password always returns Not Found ( HTTP 404 )

I have same issue with openstack --os-auth-url http://controler:35357/v3 --os-project-domain-name default --os-user-domain-name default --os-project-name admin --os-username admin token issue

Some hints ?

Thanks :)

edit retag flag offensive close merge delete

Comments

Make sure that controller is resolved to your controller node via DNS or /etc/hosts. Also using the openstack CLI client with --debug flag could point things out.

cheers, hauke

haukebruno gravatar imagehaukebruno ( 2016-07-08 00:52:37 -0500 )edit

1 answer

Sort by ┬╗ oldest newest most voted
0

answered 2016-07-08 02:21:32 -0500

keinlezard gravatar image

updated 2016-07-08 02:22:22 -0500

Hello controller ( which is named controler in my /etc/hosts is known :) )

127.0.0.1       localhost
#127.0.1.1      controller

10.0.0.31 compute1.ostack.local compute1
10.0.0.21 network.ostack.local network  
10.0.0.11 controler.ostack.local controler

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I start openstack CLI with --debut option I had following answer ... and always 404 error

`REQ: curl -g -i -X GET http://controler:35357/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.8.0 python-requests/2.10.0 CPython/2.7.9"
Starting new HTTP connection (1): controler
"GET /v3 HTTP/1.1" 200 252
RESP: [200] Date: Fri, 08 Jul 2016 07:13:08 GMT Server: Apache/2.4.10 (Debian) Vary: X-Auth-Token x-openstack-request-id: req-432d32e2-6e8e-4163-915a-a92c0f4675fa Content-Length: 252 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json 
RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://10.0.0.11/identity/v3/", "rel": "self"}]}}

Making authentication request to http://10.0.0.11/identity/v3/auth/tokens
Starting new HTTP connection (1): 10.0.0.11
"POST /identity/v3/auth/tokens HTTP/1.1" 404 296
Request returned failure status: 404
Not Found (HTTP 404)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 339, in run_subcommand
    self.prepare_to_run_command(cmd)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 445, in prepare_to_run_command
    self.client_manager.auth_ref
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 238, in auth_ref
    self._auth_ref = self.auth.get_auth_ref(self.session)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/generic/base.py", line 186, in get_auth_ref
    return self._plugin.get_auth_ref(session, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/auth/identity/v3/base.py", line 191, in get_auth_ref
    authenticated=False, log=False, **rkwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 592, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/session.py", line 40, in request
    resp = super(TimingSession, self).request(url, method, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 487, in request
    raise exceptions.from_response(resp, method, url)
NotFound: Not Found (HTTP 404)
clean_up ListHost: Not Found (HTTP 404)
Not Found (HTTP 404)`

As far as I understand ( I'm newbie ) it's a resolver problem but all my d├ęclaration seems good

cheers

edit flag offensive delete link more

Comments

Hello, Finally I found my mistake ... keystone.conf made reference to another IP ... then I comment the lines ... And it works ! :) Thank you :)

keinlezard gravatar imagekeinlezard ( 2016-07-11 08:50:16 -0500 )edit

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: 2016-07-07 10:27:47 -0500

Seen: 262 times

Last updated: Jul 08 '16