OpenStack authentication
To use the OpenStack command-line tools via the access node or local workstation command-line tools, you will need to authenticate to Keystone using the previously downloaded OpenStack RC file.
A typical OpenStack RC file looks like the following:
# With the addition of Keystone we have standardized on the term **tenant**
# as the entity that owns the resources.
export OS_TENANT_ID=06c2c75c14514ca0880e987398ec4a76
export OS_TENANT_NAME="primary"
export OS_PROJECT_NAME="primary"
# In addition to the owning entity (tenant), OpenStack stores the entity
# performing the action as the **user**.
export OS_USERNAME="wflinstone"
# With Keystone you pass the keystone password.
echo "Please enter your OpenStack Password: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
# If your configuration has multiple regions, we set that information here.
# OS_REGION_NAME is optional and only valid in certain environments.
export OS_REGION_NAME=""
# Don't leave a blank variable, unset it if it was empty
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
With the OpenStack RC file (primary-rc.sh
) saved to your machine or home folder on the cluster access node - authenticate to the OpenStack environment:
[wflinstone@login1(demo) ~]# . primary-rc.sh
Please enter your OpenStack Password:
[wflinstone@login1(demo) ~]#