Revision history [back]

click to hide/show revision 1
initial version

Log in as admin using horizon, and go to the right top counter to download the admin-openrc.sh file. ssh into the controller as stack and create a new openrc file, and duplicate the content of the downloaded file into it. then source from this openrc, and you will get authenticated.

Sample of my admin-openrc.sh file (Your's might differs slightly from mine due to different project ID and IP address used)

export OS_AUTH_URL=http://192.168.1.31/identity
export OS_PROJECT_ID=5e387bf21b4d4bddb1790829f576a91f
export OS_PROJECT_NAME="admin"
export OS_USER_DOMAIN_NAME="Default"
if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi
export OS_PROJECT_DOMAIN_ID="default"
if [ -z "$OS_PROJECT_DOMAIN_ID" ]; then unset OS_PROJECT_DOMAIN_ID; fi
unset OS_TENANT_ID
unset OS_TENANT_NAME
export OS_USERNAME="admin"
echo "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
export OS_REGION_NAME="RegionOne"
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3