After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 154 of 317

Glance OpenStack Image Service 144 3. Then, we need to configure OpenStack Image Service to use this database by editing the /etc/glance/glance-registry.conf file and change the sql_connection line to match the database credentials. We do this as follows: sudo sed -i 's#^sql_connection.*#sql_connection = mysql:// glance:openstack@172.16.0.1/glance#' /etc/glance/glance-registry. conf 4. We can now restart the keystone service, as follows: sudo stop glance-registry sudo start glance-registry 5. On start-up, the OpenStack Image Service Registry database is automatically populated with the correct tables. How it works... OpenStack Image Service is split into two running services—glance-api and glance- registry—and it is the glance-registry service that connects to the database backend. The first step is to create our glance database and glance user, so it can perform operations on the glance database that we have created. Once this is done, we modify the /etc/glance/glance-registry.conf file so that glance knows where to find and connect to our MySQL database. This is provided by the standard SQLAlchemy connection string that has the following syntax: sql_connection = mysql://USER:PASSWORD@HOST/DBNAME Configuring OpenStack Compute with OpenStack Image Service Once we have OpenStack Image Service configured and running, in order for our OpenStack Compute environment to connect to this service for our images, we modify the --image_ service and --glance_api_servers flags in our /etc/nova/nova.conf file. Getting ready To begin with, ensure you are logged in to the server where OpenStack Image Service is installed. www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook