I am trying to install Glance Image Service on my CentOS machine. following the openstack official guide online, I have installed and configured my Identity Service (Keystone) as well as mySql database.
In installing glance, I first configured the location of the database for both the api and registry by the following commands:
# openstack-config --set /etc/glance/glance-api.conf \ DEFAULT sql_connection mysql://glance:GLANCE_DBPASS@127.0.0.1/glance # openstack-config --set /etc/glance/glance-registry.conf \ DEFAULT sql_connection mysql://glance:GLANCE_DBPASS@127.0.0.1/glance
I also checked the configuration files and they were updated.
Then I trued creating the database and its tables with the following command:
# openstack-db --init --service glance --password GLANCE_DBPASS
But I am faced with the following error:
Verified Connectivity to MySql. Creating 'glance' Database. Initializing the glance database, please wait... runuser: user glance does not exist ERROR 1146 (42S02) at line 1: Table 'glance.migrate_version' does not exist Final sanity check failed.
I checked the mySql database and the user 'glance' was already created. It was also created in the Keystone user lists.