Ask Your Question
0

keystone endpoint

asked 2016-02-02 07:15:34 -0500

iffyshot gravatar image

updated 2016-02-02 08:46:58 -0500

hi all

can someone tell me what i am doing wrong here

keystone endpoint-create --service-id 2812bbc44a304c5e8ac7e9e001e28f88 --publicurl 'http://url:8776/v2/%(tenant_id)s' --internalurl http://IP:8776/v2/%(tenant_id)s --adminurl http://IP:8776/v2/%(tenant_id)s  --region regionOne

-bash: syntax error near unexpected token `('

do i need %(tenant_id)s or does this get auto added?

thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-02-02 13:16:46 -0500

Why are you giving (tenant_id) in URL. According to this you can create endpoints by simply passing the required parameters to the keystone endpoint-create command.
Mentioning the price of command here from the above link

    keystone endpoint-create \
    --service-id $(keystone service-list | awk '/ identity / {print $2}') \
    --publicurl http://controller:5000/v2.0 \
    --internalurl http://controller:5000/v2.0 \
    --adminurl http://controller:35357/v2.0 \
    --region regionOne

The following being its output

+-------------+----------------------------------+
|   Property  |             Value                |
+-------------+----------------------------------+
|   adminurl  |   http://controller:35357/v2.0   |
|      id     | 11f9c625a3b94a3f8e66bf4e5de2679f |
| internalurl |   http://controller:5000/v2.0    |
|  publicurl  |   http://controller:5000/v2.0    |
|    region   |           regionOne              |
|  service_id | 15c11a23667e427e91bc31335b45f4bd |
+-------------+----------------------------------+
edit flag offensive delete link more

Comments

Thanks for that

iffyshot gravatar imageiffyshot ( 2016-02-04 05:42:55 -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-02-02 07:15:34 -0500

Seen: 656 times

Last updated: Feb 02 '16