Ask Your Question

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

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

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

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

omkar_telee gravatar image

Create a new file " " 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


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

more details@ (

edit flag offensive delete link more


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 -0500 )edit

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-10-10 06:02:50 -0500

Seen: 501 times

Last updated: Oct 10 '16