yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #14247
[Bug 1316504] Re: glance-manage does not print an error on failed db_sync
The errors where logged in the log file.
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1316504
Title:
glance-manage does not print an error on failed db_sync
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Bug description:
glance-manage db_sync silently fails to prepare the database:
# glance-manage db_sync && echo ok
ok
# mysql glance -e "show tables"
+------------------+
| Tables_in_glance |
+------------------+
| migrate_version |
+------------------+
Steps to Reproduce:
$ glance-manage db_sync && echo ok
Tables "migrate_version" have non utf8 collation, please make sure all tables are CHARSET=utf8
ok
# mysql glance -e "show tables"
+------------------+
| Tables_in_glance |
+------------------+
| migrate_version |
+------------------+
Expected results:
The glance database should be ready to be used or an error should be clearly reported.
The quick fix for the issue is to set
`db_enforce_mysql_charset=False`. Although this config option will go
away in Juno, I think the migration process should report a proper
error and exit w/ an error code.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1316504/+subscriptions
References