Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Glance database issues

Similar to Keystone, Glance also has its own database and sometimes there might be issues with connection to the database. In such cases, you should verify whether the database is up and running by using the mysql command line:

# mysql -u <username> -p -h <hostname> glance

If you can successfully connect to the Glance database, ensure that you can list the tables by invoking the show tables SQL command.

If the show tables command returns empty, you can initialize the database by invoking the glance-manage dbsync command:

# glance-manage db_sync

This command will recreate all the tables in the database. 

You may also check the /etc/glance/glance-api.conf file and check the for the connection string:

connection = mysql:://packtpub_user:secret_password ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content