Group Discounts available for 3+ students and Corporate Clients

How to install OpenStack

OpenStack Installation

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:


Grant proper access to the keystone database:

IDENTIFIED BY 'KEYSTONE_DBPASS'; Replace KEYSTONE_DBPASS with a suitable password.Exit the database access client.

Generate a random value to use as the administration token during initial configuration:

Interested in mastering OpenStack Training? Enroll now for FREE demo on OpenStack Training.

# openssl rand -hex 10

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:

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:

connection = mysql://keystone:KEYSTONE_DBPASS@controller/keystone
 Replace KEYSTONE_DBPASS with the password you chose for the database.
-In the [token] section, configure the UUID token provider and SQL driver:
provider = keystone.token.providers.uuid.Provider
driver = keystone.token.persistence.backends.sql.Token

-In the [revoke] section, configure the SQL revocation driver:

driver = keystone.contrib.revoke.backends.sql.Revoke
(Optional) To assist with troubleshooting, enable verbose logging in the [DEFAULT] section:
verbose = True
Populate the Identity service database:

Learn more about OpenStack Interview Questions in this blog post.


0 Responses on How to install OpenStack"

    Leave a Message



    Please Enter Your Details and Query.
    Three + 6