Ask Your Question
0

Unable to establish connection to tenants

asked 2014-07-16 23:43:22 -0500

I am writing a bash script to setup Open Stack Havana. I have written following line on bash to crete a tenant

sudo keystone --os-endpoint=http://127.0.0.1:35357/v2.0  --os-token=ADMIN_TOKEN tenant-create --name=admin --description="Admin Tenant"

when i run the script it gives error

Unable to establish connection to http://127.0.0.1:35357/v2.0/tenants

But if i use same line on terminal to create a tenant. It is created successfully. Why does I am getting this error in only Bash script ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-29 02:42:00 -0500

Is 'ADMIN_TOKEN' a variable? Looks like a typo. Can you add '$' in front of it and check?

sudo keystone --os-endpoint=http://127.0.0.1:35357/v2.0 --os-token=$ADMIN_TOKEN tenant-create --name=admin --description="Admin Tenant"

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: 2014-07-16 23:43:22 -0500

Seen: 617 times

Last updated: Jul 16 '14