Ask Your Question
0

Endpoint location for keystone issue.

asked 2012-07-16 16:56:09 -0600

I had to change the IP of the host that has keystone installed. I didn't want to complete redo keystone so I changed the IP in the keystone db under endpoints. BUT the following is giving me problems. Keystone is still querying the old IP which causes anything that uses Keystone to fail.

Example:

root@cloud001:/var/lib# keystone --debug user-list connect: (10.59.212.25, 35357) connect fail: ('10.59.212.25', 35357) connect: (10.59.212.25, 35357) connect fail: ('10.59.212.25', 35357) No handlers could be found for logger "keystoneclient.client" Traceback (most recent call last): File "/usr/bin/keystone", line 9, in <module> load_entry_point('python-keystoneclient==2012.1', 'console_scripts', 'keystone')() File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 306, in main OpenStackIdentityShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 266, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/shell.py", line 28, in do_user_list users = kc.users.list(tenant_id=args.tenant) File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/users.py", line 120, in list return self._list("/users%s" % query, "users") File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 65, in _list resp, body = self.api.get(url) File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 166, in get return self._cs_request(url, 'GET', *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 150, in _cs_request *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 130, in request raise exceptions.from_response(resp, body) keystoneclient.exceptions.BadRequest: Unable to communicate with identity service: [Errno 113] No route to host. (HTTP 400)

But if I query it directly .. all the endpoints are correct in the output.

Example: keystone --token xxxxxxxSECRETTOKENxxxxxxx --endpoint http://10.59.212.120:35357/v2.0/ endpoint-list

I've hunted through the DB and did GTMF but I can't seem to find where the holdover is. The bare metal box is suppose to be .120 and is in the keystone endpoints table of the mysql db ... I just can't find where keystone is pulling the OLD ip from.

Any help would be awesome

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-07-16 20:29:49 -0600

.bash_aliases has the following inserted into it.

alias keystone='keystone --token SECRETTOKEN --endpoint http://10.59.212.120:35357/v2.0'

The proverbial needle in a haystack ... an alias that's inserted and NOT BOLDED with " we did this .. don't forget! "

Solved.

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: 2012-07-16 16:56:09 -0600

Seen: 39 times

Last updated: Jul 16 '12