Openstack Auth issues running nova ERROR: You must provide a username via either –os-username or env[OS_USERNAME]

Openstack Auth issues running nova ERROR: You must provide a username via either —os-username or env[OS_USERNAME]

OpenStack Nova Authentication issues

Running into errors using the nova command

nova secgroup-add-rule myservers tcp
ERROR: You must provide a username via either —os-username or env[OS_USERNAME]

or

nova secgroup-list-rules default
ERROR: Invalid OpenStack Nova credentials.

This document is good http://docs.openstack.org/cli/quick-start/content/getting_credentials_cli.html

Logged in to the Nova Dashboard under project and Access & Security and the API Access tab, Download the  OpenStack RC File

Access

 

Once downloaded I used WinSCP to copy my root directory

winscp

 

From your ssh session in the /root directory run

source admin-openrc.sh

Now you should be able to run nova commands

 

Advertisements
This entry was posted in OpenStack. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s