Ask Your Question

How to update public and admin endpoints to use proper hostnames?

asked 2014-08-20 15:21:55 -0500

sequoiaww gravatar image

updated 2014-08-21 18:34:22 -0500

smaffulli gravatar image

We need to update our public and admin endpoints to use a hostname/IP instead of local host. We did not do the initial install, so I am not sure where to find information on how to do this

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-08-21 10:17:24 -0500

mpetason gravatar image

This may impact other services. It depends on what IP you are going to listen on and what you have configured in the .conf files.

Here is how to do it:

Basically you are going to be removing the old endpoints then adding the new ones. You'll grab the service UUID and create a new endpoint with it.

keystone service-list

Then grab the ID of the services you are changing, which should be all of them. For each of the IDs you'll need to create an endpoint with the correct IP address and port and version of the API:

An example from the documentation would be fore Keystone:

keystone endpoint-create \ --region RegionOne \ --service-id=15c11a23667e427e91bc31335b45f4bd \ --publicurl= \ --internalurl= \ --adminurl=

The service-id = the ID you pulled from the service list. You'll have to look through the documentation for all of the endpoints, or you could match up the service ID with the keystone endpoints and create the new ones based on the same settings but replace localhost with the hostname or IP:

This will give you the current endpoints in use:

keystone endpoint-list
edit flag offensive delete link more

answered 2014-08-21 21:24:58 -0500

You can easily do that via V3 API. Update endpoint: PATCH /endpoints/{endpoint_id}

The tokens has catalog. All the issued tokens which are issued before update should be revoked or you need to get a new token to use the new updated endpoints

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


Asked: 2014-08-20 15:21:55 -0500

Seen: 816 times

Last updated: Aug 21 '14