Ask Your Question
0

default password [closed]

asked 2014-11-03 03:44:07 -0500

Wang Zheng gravatar image

Hi all, I just installed openstack on CentOS -7, but I cannot find my username and password. would you please advise how can I get the them? Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Wang Zheng
close date 2014-11-12 00:12:35.398356

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-11-03 06:44:54 -0500

In your home directory must be a file called keystone_admin, there is your user/password

edit flag offensive delete link more
1

answered 2014-11-03 06:37:02 -0500

May I know which kind of installation you followed?

If it is devstack installation: In devstack/openrc file you find the credentials.

If it is RDO: You can find keystone_admin and keystone_demo in your home directory.

Please check and let me know along with your installation method.

edit flag offensive delete link more

Comments

Thank you TechPatron! I installed it by RDO, under my home directory I can see the keystonerc_admin. cat ./keystonerc_admin export OS_USERNAME=admin export OS_TENANT_NAME=admin export OS_PASSWORD=69897db7632243a4 export OS_AUTH_URL=http://localhost:5000/v2.0/ but the password seems to be encrypted

Wang Zheng gravatar imageWang Zheng ( 2014-11-06 00:11:57 -0500 )edit

Yeah most welcome. RDO will generate openssl password using below command "openssl rand -hex 10"

That is the actual password. You can verify by logging in OpenStack dashabord with username "admin" and the password "69897db7632243a4".


answers@techpatron.co.in

TechPatron gravatar imageTechPatron ( 2014-11-06 03:09:09 -0500 )edit
0

answered 2014-11-12 00:06:29 -0500

Wang Zheng gravatar image

thank you all for your help! I have figured it out and now I am able to login with password provided in keystone_admin. this issue should be caused by dynamical IP address, I tried to login with the same password before but was told the username and password is incorrect, now I changed the IP back and it's working.

edit flag offensive delete link more
0

answered 2014-11-03 04:23:37 -0500

rajiv-kumar gravatar image

updated 2014-11-03 04:29:19 -0500

Mostly all the setups specify default user name and password "admin" for admin user. therefor

username = admin

password = admin

But you can always refer to the guide that you followed for installation for getting default user name and password. You can find it in the keystone installation section.

One more method is, On the node having keystone(Identity service) installed have a configuration file /etc/keystone/keystone.conf this file has a admin_token variable, which contains admin token. you can use this token to create a new user or to do any activities requiring admin role.

therefor to create a new user create a file having following value content

export OS_SERVICE_TOKEN=ADMIN_TOKEN

export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0

ADMIN_TOKEN is the admin_token value in the keysone.conf file. and controller is the hostname or IP address of the keystone host. then source it using

source name_of_file after this operation you can use keystone user-create keystone role-create keystone tenant-create keystone user-role-add etc. to create user, role and tenant. For more detail refer on user creation refer openstack installation guide.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-11-03 03:44:07 -0500

Seen: 13,839 times

Last updated: Nov 12 '14