I'm deploying OpenStack- stein version on Ubuntu Pro 18.04 LTS (Bionic Beaver).
I come across these lines when configuring keystone - identity service, as of this article.
How can I set the following configuration?
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:5000/v3
export OS_IDENTITY_API_VERSION=3
If I'm already in root mode, is there any need for these environment variables?
Whether you are root or not doesn't have any meaning for the openstack
command. The OpenStack administrator user doesn't have anything to do with the Linux root user.
You don't need the variables, but your command line becomes very long without them, for example openstack --os-username=admin --os-password=ADMIN_PASS --os-project-name=admin --os-user-domain-name=Default --os-project-domain-name=Default --os-auth-url=http://controller:5000/v3 --os-identity-api-version=3 server list
. These variables are the most convenient way to tell the openstack
command under which identity it should perform its actions.
How can you set them? Type them on the command line, but the most common method is putting them in a file that you source. You can then have several such files for several different identities, such as the admin
and demo
identities in the linked document, which allows you to quickly switch from one identity to the other.