Issue link: https://read.uberflip.com/i/1334488
Chapter 3 69 6. We then repeat this for our other two service users, glance and keystone: # Get the glance user id USER_ID=$(keystone user-list | awk '/\ glance\ / {print $2}') # Assign the glance user the admin role in service tenant keystone user-role-add --user $USER_ID --role $ROLE_ID --tenant_id $SERVICE_TENANT_ID # Get the keystone user id USER_ID=$(keystone user-list | awk '/\ keystone\ / {print $2}') # Assign the glance user the admin role in service tenant keystone user-role-add --user $USER_ID --role $ROLE_ID --tenant_id $SERVICE_TENANT_ID How it works... Creation of the service tenant, populated with the services required to run OpenStack, is no different from creating any other users on our system that require the admin role. We create the usernames and passwords and ensure they exist in the service tenant. The reason for the service tenant is that each service itself has to authenticate with keystone in order for it to be available within OpenStack. Configuration of that service is then done using these credentials. For example, for glance we specify the following in /etc/glance/ glance-registry-api.ini, when used with OpenStack Identity Service, which matches what we created previously: [filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory service_protocol = http service_host = 172.16.0.1 service_port = 5000 auth_host = 172.16.0.1 auth_port = 35357 auth_protocol = http auth_uri = http://172.16.0.1:5000/ admin_tenant_name = service admin_user = glance admin_password = glance www.it-ebooks.info

