18

I am trying to install openstack using devstack on ubuntu 16.04. I followed the following link.

https://docs.openstack.org/developer/devstack/guides/single-machine.html

When I run

sudo openstack service list

, it prompt the following error.

Missing value auth-url required for auth plugin password

Goforseeking
  • 385
  • 1
  • 3
  • 15
  • Run the following commands in sequence. cd devstack , source openrc export OS_TENANT_NAME=$OS_PROJECT_NAME , openstack service list – Goforseeking Mar 17 '17 at 07:29

4 Answers4

29

Make sure you are logged into horizon and download the rc file (right corner). After that do source admin-openrc.sh

Note that you have to download the rc file of the project you are working on

javibr
  • 301
  • 2
  • 5
  • 3
    thank you for this. as a n00b in the openstack space this step is very rarely referenced, though critical. – beep_check Nov 26 '20 at 02:45
5

always run admin-openrc file before running any openstack command eg.

$source admin-openrc

then run whatever openstack command you want to run

eg.

$openstack --debug server list

Stevy
  • 3,228
  • 7
  • 22
  • 38
Lalit Garghate
  • 119
  • 1
  • 5
4

This should do. keystonerc_admin file is generated at the end of openstack packstack installation

source keystonerc_admin

deepdive
  • 9,720
  • 3
  • 30
  • 38
  • 1
    it also could be `source openrc`. I have a fresh installation and it does not create `keystonerc_admin` by default (i searched the entire disk, no entries for that). The installation only create `openrc` and `stackrc` (stack is the name of my user that I manually created before installation). – devasia2112 Feb 02 '20 at 07:19
0

Take rocky version of OpenStack Keystone as an example. https://docs.openstack.org/keystone/rocky/install/keystone-openrc-rdo.html#using-the-scripts

You can create an admin-openrc.sh (If you are installing OpenStack Keystone for the first time.) and put environment params. And source this file before you run any "openstack" command. This resolves the issue.

I put the admin-openrc.sh in directory /usr/share/keystone/admin-openrc.sh for a recommend.

Yan Huiyi
  • 1
  • 1