Learn N Try

For all Lean Enthusiast

auth-url required for auth plugin password

We have seen that whenever we give any openstack command we get the error

Missing value auth-url required for auth plugin password

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

This is security feature as not all the user can able to run the command and get your Cloud details.

Also you have to authenticate yourself for running a command.

To resolve this we need to download the Openstack RC file.

once you are logged into the openstack on top right corner of page you will see the user name once you click you will see list of options. two of them are to download the RC file version2 and version 3. Click on any of the Icon and download the file.

Once file is downloaded put it in your users home directory and after logging from command prompt just source these files

source admin-openrc.sh

next run the following command to ensure that all the veriable are set properly

env | grep OS

Once its done you will be able to run the command without password.