Issue link: https://read.uberflip.com/i/1334488
Keystone OpenStack Identity Service 56 Installing OpenStack Identity Service Installation and configuration of OpenStack Identity Service is straightforward from Ubuntu packages. Once configured, connecting to our OpenStack cloud environment will be performed through our new OpenStack Identity Service. The backend datastore for our OpenStack Identity Service is a simple SQLite database. Getting ready To begin with, ensure you're logged in to our OpenStack Compute host or an appropriate server on the network where OpenStack Identity Service will be installed, that the rest of the OpenStack hosts have access to. How to do it... Carry out the following instructions to install OpenStack Identity Service: 1. Installation of OpenStack Identity Service is done by specifying the keystone package in Ubuntu, and we do this as follows: sudo apt-get update sudo apt-get -y install keystone 2. Once installed, we need to configure the backend database store, so we first create the keystone database in MySQL. We do this as follows (where we have a user in MySQL called root, with the password openstack, that is able to create databases): MYSQL_PASS=openstack mysql -uroot -p$MYSQL_PASS -e 'CREATE DATABASE keystone;' 3. It is good practice to create a user that is specific to our OpenStack Identity Service, so we create this as follows: mysql -uroot -p$MYSQL_PASS -e "GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'" mysql -uroot -p$MYSQL_PASS -e "SET PASSWORD FOR 'keystone'@'%' = PASSWORD('$MYSQL_PASS');" 4. We then need to configure OpenStack Identity Service to use this database by editing the /etc/keystone/keystone.conf file, and then change the sql_connection line to match the database credentials. We do this as follows: sudo sed -i "s#^connection.*#connection = mysql://keystone:$MYSQL_PASS@172.16.0.1/keystone#" /etc/keystone/keystone.conf www.it-ebooks.info

