Bug 1192862
Summary: | Glance fails to start after RHEL-OSP6 install with Ceph backend (missing known_stores) | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Alessandro Vozza <avozza> |
Component: | openstack-foreman-installer | Assignee: | Jason Guiditta <jguiditt> |
Status: | CLOSED ERRATA | QA Contact: | Yogev Rabl <yrabl> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.0 (Juno) | CC: | aberezin, arkady_kanevsky, astellwa, cdevine, christopher_dearborn, dmacpher, jguiditt, jjarvis, John_walsh, kimi.zhang, kurt_hey, mburns, morazi, nlevine, nlevinki, nobody, ohochman, rajini.karthik, randy_perryman, rhos-maint, sclewis, spollitt, sreichar, steve_hand, yeylon, yrabl |
Target Milestone: | z2 | Keywords: | ZStream |
Target Release: | Installer | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openstack-foreman-installer-3.0.17-1.el7ost | Doc Type: | Bug Fix |
Doc Text: |
The known_stores option was incorrectly set for Glance, which caused Ceph backend for Glance to fail to start. This fix configures known_stores correctly and Glance now starts successfully.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-04-07 15:08:30 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: | 1163445 |
Description
Alessandro Vozza
2015-02-16 00:04:15 UTC
I did the following to work around the issue: I changed /etc/puppet/environments/production/modules/glance/manifests/api.pp to include the rbd store: root@idospinstaller manifests]# diff -Nur api.pp.orig api.pp --- api.pp.orig 2015-02-17 16:28:06.837029944 +0100 +++ api.pp 2015-02-17 16:28:27.555821296 +0100 @@ -197,7 +197,7 @@ $cert_file = false, $key_file = false, $ca_file = false, - $known_stores = false, + $known_stores = ['glance.store.rbd.Store'], $database_connection = 'sqlite:///var/lib/glance/glance.sqlite', $database_idle_timeout = 3600, $image_cache_dir = '/var/lib/glance/image-cache', This allowed me to work through the installation w/o further issues (so far ;) Cheers, Alex This is a bug in foreman-quickstart-puppet-module ( astapor). The openstack-puppet-module class glance::api is expecting the known_stores to be passed by foreman-quickstart-puppet-module. Basically the real fix is to check the backend and set the $known_stores variable in the quickstart glance module. File to be fixed(quickstart): openstack-foreman-installer/puppet/modules/quickstack/manifests/glance.pp *** Bug 1196921 has been marked as a duplicate of this bug. *** (In reply to Alex Stellwag from comment #5) > I did the following to work around the issue: > > I changed > /etc/puppet/environments/production/modules/glance/manifests/api.pp to > include the rbd store: > > root@idospinstaller manifests]# diff -Nur api.pp.orig api.pp > --- api.pp.orig 2015-02-17 16:28:06.837029944 +0100 > +++ api.pp 2015-02-17 16:28:27.555821296 +0100 > @@ -197,7 +197,7 @@ > $cert_file = false, > $key_file = false, > $ca_file = false, > - $known_stores = false, > + $known_stores = ['glance.store.rbd.Store'], > $database_connection = 'sqlite:///var/lib/glance/glance.sqlite', > $database_idle_timeout = 3600, > $image_cache_dir = '/var/lib/glance/image-cache', > > This allowed me to work through the installation w/o further issues (so far > ;) > > Cheers, Alex I am currently testing a patch that does exactly this, though it will substitute in the value of $backend parameter from the glance manifest that Rajini mentioned (still using the long name for the store though). the only possible issue I see in this is that the short name file seems to have the long name with 'filesystem', so I may have to munge the value for that case. Patch posted: https://github.com/redhat-openstack/astapor/pull/483 *** Bug 1183946 has been marked as a duplicate of this bug. *** Merged by Crag what is the workaround till A2? What is the way to remove glance-api.conf from puppet control after initial install? The only 2 workarounds I can think of are to add the puppet change to an existing deployment, or to not rerun puppet after configuration, manually setting the config file value as desired. the Staypuft didn't installed Glance: Bug 1207158 A new bug is filed for that issue which is not a bug. moving back to ON_QA The parameter 'stores' is been set: stores=glance.store.rbd.Store,glance.store.http.Store in staypuft version: ruby193-rubygem-staypuft-0.5.22-1.el7ost.noarch 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. https://rhn.redhat.com/errata/RHSA-2015-0791.html |