Bug 1089611

Summary: "openstack-db" command unable to create glance database
Product: Red Hat OpenStack Reporter: pb861028 <pb861028>
Component: openstack-glanceAssignee: RHOS Maint <rhos-maint>
Status: CLOSED NOTABUG QA Contact: Dafna Ron <dron>
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: eglynn, fpercoco, pb861028, yeylon
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-21 08:38:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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!