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=  --os-token=ADMIN_TOKEN tenant-create --name=admin --description="Admin Tenant"

when i run the script it gives error

Unable to establish connection to

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

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= --os-token=$ADMIN_TOKEN tenant-create --name=admin --description="Admin Tenant"

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 630 times

Last updated: Jul 16 '14