This section describes how to install and configure the OpenStack Identity service on the controller node.
Before you configure the OpenStack Identity service, you must create a database and an administration token. -To create the database, complete the following actions: Use the database access client to connect to the database server as the root
user:
$ mysql -u root -p
Create the keystone
database:
CREATE DATABASE keystone;
Grant proper access to the keystone
database:
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'
IDENTIFIED BY 'KEYSTONE_DBPASS
';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'
IDENTIFIED BY 'KEYSTONE_DBPASS
'; ReplaceKEYSTONE_DBPASS
with a suitable password.Exit the database access client.
Generate a random value to use as the administration token during initial configuration:
Desired to gain proficiency on OpenStack? Explore the blog post on
OpenStack Training to become a pro in OpenStack.
To install and configure the components Run the following command to install the packages:
# apt-get install keystone python-keystoneclient
Edit the /etc/keystone/keystone.conf
file and complete the following actions:
-In the [DEFAULT]
section, define the value of the initial administration token:
[DEFAULT] ... admin_token = ADMIN_TOKEN |
Replace ADMIN_TOKEN
with the random value that you generated in a previous step.
-In the [database]
section, configure database access:
[database]
...
connection = mysql:
//keystone
:KEYSTONE_DBPASS@controller
/keystone
KEYSTONE_DBPASS
with the password, you chose for the database.[token]
...
provider = keystone.token.providers.uuid.Provider
driver = keystone.token.persistence.backends.sql.Token
[revoke]
section, configure the SQL revocation driver:[revoke]
...
driver = keystone.contrib.revoke.backends.sql.Revoke
[DEFAULT]
section:[DEFAULT]
...
verbose = True
# su -s /bin/sh -c "keystone-manage db_sync" keystone
Learn more about OpenStack Interview Questions in this blog post.
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.