User Glance doesn't exist while setting up glance mysql db [closed]

asked 2014-02-05 19:22:27 -0600

Saba gravatar image

updated 2014-02-06 17:03:13 -0600

smaffulli gravatar image

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@
# openstack-config --set /etc/glance/glance-registry.conf \ DEFAULT sql_connection mysql://glance:GLANCE_DBPASS@

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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-02-13 15:21:49.861346


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.

dtaylor gravatar imagedtaylor ( 2014-02-06 20:21:43 -0600 )edit

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.

Saba gravatar imageSaba ( 2014-02-10 17:46:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-10 17:49:44 -0600

Saba gravatar image

Well, I tried dropping the database and all its traces everywhere (keystone and mysql) but still faced the same problem. Then I installed openstack again from the scratch and never had the problem again.

During my first installation I had some problems in installing keystone but got them solved anyway. I think a bad configuration or some errors in my keystone installation could be the reason behind my problem with installing glance.

This might not be a good answer to my problem yet I am putting this to close the topic.

edit flag offensive delete link more



Glad you got everything working Saba

dtaylor gravatar imagedtaylor ( 2014-02-10 20:26:41 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-05 19:22:27 -0600

Seen: 1,372 times

Last updated: Feb 10 '14