User Glance doesn't exist while setting up glance mysql db [closed]
Hello Everyone,
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.
I would first completely drop the glance user from your database, flush privileges, and also make sure no trace of the glance database was created. You are going to have to drop the glance user from both the keystone and mysql schemas. Once you have dropped the glance user, try again.
I did so but nothing changed. Then I start installing the system from the scratch again and this time it worked. In my first installation I had some problems in installing keystone but got it installed finally, I think that caused some problems for glance also.