Bug 1089611 - "openstack-db" command unable to create glance database
Summary: "openstack-db" command unable to create glance database
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: unspecified
Hardware: x86_64
OS: All
unspecified
low
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: RHOS Maint
QA Contact: Dafna Ron
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-21 07:30 UTC by pb861028
Modified: 2016-04-27 01:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-21 08:38:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description pb861028 2014-04-21 07:30:16 UTC
Description of problem:

First,use "openstack-db --init --service glance --password hgctech" command to create and initialize glance database,but unable to create glance database.

system output info:

Creating 'glance' database.
Updating 'glance' database password in /etc/glance/glance-registry.conf /etc/glance/glance-api.conf
Initializing the glance database, please wait...
ERROR 1146 (42S02) at line 1: Table 'glance.migrate_version' doesn't exist
Final sanity check failed.
Please file a bug report on bugzilla.redhat.com against the openstack-glance package.


Version-Release number of selected component (if applicable):

openstack icehouse

glance 0.12.0


How reproducible:

type:"openstack-db --init --service glance --password hgctech"

Steps to Reproduce:
1.yum install glance component admin keystone component in system;
2.initialize and start keystone service;
3.initialize glance service,type "openstack-db --init --service glance --password hgctech" to create glance database;

Actual results:

Creating 'glance' database.
Updating 'glance' database password in /etc/glance/glance-registry.conf /etc/glance/glance-api.conf
Initializing the glance database, please wait...
ERROR 1146 (42S02) at line 1: Table 'glance.migrate_version' doesn't exist
Final sanity check failed.
Please file a bug report on bugzilla.redhat.com against the openstack-glance package.

Expected results:

type "openstack-db --init --service glance --password hgctech" can create and initialize glance database

Additional info:

Comment 2 Flavio Percoco 2014-05-02 09:02:36 UTC
Hi,

You opened this bug and then closed it as not a bug. I'm curious to know how you solved this issue. Could you please write a comment explaining what you did? Was your issue related to a miss-configured parameter?

Thanks

Comment 3 pb861028 2014-05-03 04:13:48 UTC
I have write wrong mysql server'name in the config file of glance(glance-api.conf,glance-registry.conf).So when i change the right mysql server'name,redo "openstack-db --init --service glance --password hgctech",the database file of glance is created!


Note You need to log in before you can comment on or make changes to this bug.