Bug 1094675
Summary: | glance-manage db_sync silently fails to prepare the database | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Flavio Percoco <fpercoco> |
Component: | openstack-glance | Assignee: | Flavio Percoco <fpercoco> |
Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 5.0 (RHEL 7) | CC: | adahms, brad, eglynn, fdinitto, fpercoco, fsimonce, nlevinki, sclewis, scohen, yeylon |
Target Milestone: | rc | ||
Target Release: | 5.0 (RHEL 7) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-glance-2014.1-4.el7ost | Doc Type: | Bug Fix |
Doc Text: |
Previously, attempting to perform the 'glance-manage db_sync' operation would fail without reporting any errors under certain conditions. This was caused by a requirement in the Icehouse release and above specifying that all tables in the database use the UTF-8 character set when certain Glance-related tables from previous releases used character sets other than UTF-8. This update adds the line 'db_enforce_mysql_charset = False' to the 'glance-api-dist.conf' file, disabling checking of the character set and making it possible for the 'glance-manage db_sync' operation to complete successfully under these conditions.
|
Story Points: | --- |
Clone Of: | 1090648 | Environment: | |
Last Closed: | 2014-07-08 15:32:23 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
Flavio Percoco
2014-05-06 09:46:11 UTC
I can still hit this problem with those builds: [root@rhos5-glance1 ~]# rpm -q -a |grep glance python-glance-2014.1-2.el7ost.noarch python-glanceclient-0.12.0-1.el7ost.noarch openstack-glance-2014.1-2.el7ost.noarch and I had to manually force db_enforce_mysql_charset. Verified on: RHEL6.5 (used el6, el7 packages are the same) python-glanceclient-0.12.0-1.el6.noarch python-glance-2014.1-4.el6ost.noarch openstack-glance-2014.1-4.el6ost.noarch Test flow 1. Manually installed: mysql keystone Glance (Havana 2013.2.3-2.el6) over RHEL6.5. 2. Configured and checked Glance service, checked Glance db. 3. Stopped Glance services 4. Downloaded Glance Icehouse build packages 2014.1-4.el6ost. 3. Upgraded Glance to new packages. 4. Ran #glance-manage db_sync && echo ok Glance-manage db_sync works fine, OK echo not returned not sure why. 6. Checked Glance db fits Icehouse release, checked a few basic Glance commands 7. glance-api.dist.conf file includes: db_enforce_mysql_charset = False Flavio, thanks assistance. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0851.html Cancelling old needinfo request. |