Endpoints created by sample_data.sh are pointing to localhost.

Asked by Jaroslav Henner

There is file
 /usr/share/openstack-keystone/sample_data.sh it contains
keystone endpoint-create --region RegionOne --service_id $NOVA_SERVICE \
         --publicurl 'http://localhost:$(compute_port)s/v1.1/$(tenant_id)s' \

This is not convenient because it prevents actions to be executed from remote machine.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Yaguang Tang (heut2008) said :
#1

you can change it to the actual nova api service manually.the localhost is just the default for single host test.

Revision history for this message
Jaroslav Henner (jhenner) said :
#2

What about using `hostname -f ` in place of "localhost". Or what about some option that could default to localhost, but would be changeable from commandline?

Revision history for this message
Joseph Heck (heckj) said :
#3

sample data is meant to be an example file for use in devstack, or potentially as a means of understanding how to create your own data. It's not a general installation/setup tool I'm afraid.

Can you help with this problem?

Provide an answer of your own, or ask Jaroslav Henner for more information if necessary.

To post a message you must log in.