Ask Your Question
1

admin-openrc.sh

asked 2014-04-18 06:53:16 -0500

e.hasani gravatar image

where should i create this file? i don't understand it. in the manual it says :

Set up a admin-openrc.sh file with the admin credentials and admin endpoint: export OS_USERNAME=admin export OS_PASSWORD=ADMIN_PASS export OS_TENANT_NAME=admin export OS_AUTH_URL=http://controller:35357/v2.0

i don't know where to set the file?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2014-04-18 07:51:17 -0500

In a linux environment, you could create a file with your credentials (choose your preferred text editor, I personally use vi):

vi admin-openrc.sh ->

export OS_USERNAME=admin 
export OS_PASSWORD=ADMIN_PASS 
export OS_TENANT_NAME=admin 
export OS_AUTH_URL=http://controller:35357/v2.0

source admin-openrc.sh

You could use this file wherever there is a openstack-service client. You must ensure the connectivity to the controller node from that machine.

That's all.

If you want to better understand how keystone works, please refer to:

Are you using Devstack or are you manually installing Openstack?

edit flag offensive delete link more

Comments

Aha ok i thought i must create it to a specific location thanx.

e.hasani gravatar imagee.hasani ( 2014-04-18 08:02:58 -0500 )edit
4

answered 2014-04-18 06:58:55 -0500

SGPJ gravatar image

This file is to set (based on below) in devstack dir: you can source openrc file with admin admin in packstack: the location where your answer file got created. Thanks.

edit flag offensive delete link more

Comments

sorry for the ignorance but i am really fresh in linux where can i find devstack dir. Because i didn't got it :(.

e.hasani gravatar imagee.hasani ( 2014-04-18 07:38:29 -0500 )edit

this is for devstack. for your case the location will be from where python-novaclient is accessed mostly home directory. then source the file.

SGPJ gravatar imageSGPJ ( 2014-04-18 14:11:04 -0500 )edit
3

answered 2015-09-11 08:41:35 -0500

Radhakrishnan Rk gravatar image

Hi,

Usually we need to authenticate ourself for the sake of executing openstack service client commands to interact with the openstack services.

It is difficult to use the long command every time in your terminal and it sometimes cause irritation if u commit typo error like this..

keystone --os-USERname admin --os-password admin --os-auth-url http://controller:35357/v2.0 --os-tenant-name admin tenant-list

To avoid this,we have a file that contains the credential to perform our operation.We can store it in anywhere of your system.But we should give the correct file path while sourcing..

cat /root/krishnaa/admin-openrc.sh

export OS_USERNAME=admin export OS_PASSWORD=ADMIN_PASS export OS_TENANT_NAME=admin export OS_AUTH_URL=http://controller:35357/v2.0

thanks, krishnaa

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-04-18 06:53:16 -0500

Seen: 14,228 times

Last updated: Sep 11 '15