Issue link: https://read.uberflip.com/i/1334488
Chapter 3 57 5. We can now restart the keystone service: sudo stop keystone sudo start keystone 6. With Keystone started, we can now populate the keystone database with the required tables, by issuing the following command: sudo keystone-manage db_sync Congratulations! We now have OpenStack Identity Service installed for use in our OpenStack environment. How it works... A convenient way to install OpenStack Identity Service ready for use in our OpenStack environment is by using the Ubuntu packages. Once installed, we configure our MySQL database server with a keystone database and set up the keystone.conf configuration file to use this. After starting the Keystone service, running the keystone-manage db_sync command populates the keystone database with the appropriate tables ready for us to add in the required users, roles, and tenants required in our OpenStack environment. Configuring roles Roles are the permissions given to users within a tenant. Here we will configure two roles—an admin role that allows for administration of our environment and a Member role that is given to ordinary users who will be using the cloud environment. Getting ready To begin with, ensure you're logged in to our OpenStack Compute host—where OpenStack Identity Service has been installed—or an appropriate Ubuntu client that has access to where OpenStack Identity Service is installed. If the keystone client tool isn't available, this can be installed on an Ubuntu client to manage our OpenStack Identity Service by issuing the following commands: sudo apt-get update sudo apt-get -y install python-keystoneclient Ensure that we have our environment set correctly to access our OpenStack environment: export ENDPOINT=172.16.0.1 export SERVICE_TOKEN=ADMIN export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0 www.it-ebooks.info

