Ask Your Question
0

Where should I look for user credentials to work with nova commandline?

asked 2016-10-10 06:02:50 -0600

Ali84 gravatar image

Hey, I deployed Openstack Autopilot on physical machines. I have some debugging to do concerning vms not getting ip addresses so I came across some guide that had me peek into compute nodes and others using nova command line interface. When I tried them I was prompted that I need to be authenticated for using nova command.

ERROR (CommandError): You must provide a username or user ID via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID]

I have no clue where I can obtain them. Well please forgive my ingenuousness in this field and help me figure it out. Thanks in advanced.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-10-10 07:49:29 -0600

omkar_telee gravatar image

Create a new file "openrc.sh " write below content will following details

export OS_PROJECT_DOMAIN_NAME=default export OS_USER_DOMAIN_NAME=default export OS_PROJECT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD= #ADMIN_PASS# export OS_AUTH_URL=http://#controller#:35357/v3 export OS_IDENTITY_API_VERSION=3 export OS_IMAGE_API_VERSION=2

Update username, password, controller , API versions as per your requirements. Save changes.

source above file

source openrc.sh

now you can use any cli comands on openstack that host.(Hope you have installed python-openstackclint)

more details@

http://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-openrc.html (http://docs.openstack.org/mitaka/inst...)

edit flag offensive delete link more

Comments

Thanks, I learn a lot, however my question was where I can find those values in the first place when you have an Autopilot Openstack deployment.

Ali84 gravatar imageAli84 ( 2016-10-24 13:54:58 -0600 )edit
0

answered 2016-10-10 06:31:45 -0600

Ali84 gravatar image

Well it turned out that there is a link labelled "Download OpenStack RC file for admin" under the OpenStack tab of Landscape gui to get a file with all the credentials needed to talk to openstack services via command line interface.

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: 2016-10-10 06:02:50 -0600

Seen: 342 times

Last updated: Oct 10 '16