Bug 997290
| Summary: | /usr/bin/openstack-db --init --service glance fails | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Gilles Dubreuil <gdubreui> | |
| Component: | python-oslo-config | Assignee: | Alan Pevec <apevec> | |
| Status: | CLOSED ERRATA | QA Contact: | Yogev Rabl <yrabl> | |
| Severity: | low | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 3.0 | CC: | abaron, apevec, dron, eglynn, fpercoco, gdubreui, hateya, markmc, mlopes, ndipanov, pbrady, sclewis, yeylon | |
| Target Milestone: | beta | Keywords: | Regression | |
| Target Release: | 4.0 | |||
| Hardware: | Unspecified | |||
| OS: | Linux | |||
| Whiteboard: | storage | |||
| Fixed In Version: | python-oslo-config-1.2.0-0.3.a3.el6ost | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1000447 (view as bug list) | Environment: | ||
| Last Closed: | 2013-12-20 00:19:27 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1000447 | |||
|
Description
Gilles Dubreuil
2013-08-15 06:49:49 UTC
For the above work around step 1: The .ini files are actually available in the rpm and can be copied directly from /usr/share/glance/: $ cp /usr/share/glance/glance-registry-dist-paste.ini /etc/glance/glance-registry-paste.ini $ cp /usr/share/glance/glance-api-dist-paste.ini /etc/glance/glance-api-paste.ini $ chmod 640 /etc/glance/glance-registry-paste.ini /etc/glance/glance-api-paste.ini $ chown root.glance /etc/glance/glance-registry-paste.ini /etc/glance/glance-api-paste.ini Something is not right, you shouldn't copy paste.inis, in /usr/share/glance/glance-api-dist.conf there is: [paste_deploy] config_file = /usr/share/glance/glance-api-dist-paste.ini I agree, something's not right.
I bumped into this because of an automated deployement process that works on RDO but fails on RHOS and expecting the .ini files to be in the /etc/glance dir.
After looking further into it.
The two glance-{api,registry}.conf are expecting the ini files to be in the /etc/glance directory by default
When comparing:
openstack-glance-2013.1.2-2.el6.noarch.rpm (RDO)
vs
openstack-glance-2013.1.3-1.el6ost.noarch (RHOS)
once can see the RPM scriptlets are exactly the same,
but the ini files are by default in /etc/glance for RDO and in /usr/share/glance for RHOS.
I believe the RHOS RPM to be repackaged witht the ini files in the /etc/glance.
> I believe the RHOS RPM to be repackaged witht the ini files in the
> /etc/glance.
paste.ini should stay in /usr/share/glance, python-oslo-config in RHOS is patched to look into that location, are we sure there isn't RDO/RHOS RPM mixup here?
> paste.ini should stay in /usr/share/glance, python-oslo-config in RHOS is
> patched to look into that location, are we sure there isn't RDO/RHOS RPM mixup > here?
Well, I suppose it's RDO which is mixed-up. I initially based my configuration from it :(
In that case any chance for /usr/share/glance/*.conf files to be installed as the default in /etc/glance/? Instead of having dummy ones by default?
/usr/share/PROJECT/*-dist.conf include distribution defaults, /etc/PROJECT/*.conf are where site customization goes, overriding distro defaults. In RPM, /etc/PROJECT/*.conf includes commented out distro default values and parameter documentation. See bug 887334 comment 4 for the background. We're in the process of switching RDO Havana packages to this setup, to decrease RDO/RHOS delta. All that said, glance-manage is not picking out values from /usr/share/glance/ hence openstack-db --init ends up creating glance.sqlite instead of mysql db as specified in dist.conf. Confirmed with openstack-glance-2013.1.2-1.el6ost from RHN, so it's not a regression in the current 3.0.z update, but from earlier: patch python-oslo-config bug 958497 doesn't work for glance where are two conf files, not just $project-dist.conf I installed glance manually and than ran packstack with Havana release. files were deployed correctly and db was installed. openstack-glance-2013.2-0.10.b3.el6ost.noarch moving to verified 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-2013-1859.html |