Bug 1212174
| Summary: | mongodb fails to start in rdo trunk | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] RDO | Reporter: | wes hayutin <whayutin> | ||||
| Component: | openstack-packstack | Assignee: | Javier Peña <jpena> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ami Jeain <ajeain> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | trunk | CC: | aortega, apevec, apevec, berendt, derekh, jruzicka, mskalick, pbrady, yeylon | ||||
| Target Milestone: | --- | Flags: | mskalick:
needinfo+
|
||||
| Target Release: | Juno | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | openstack-packstack-2014.2-0.23.dev1468.gd049ea9.fc22 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-04-23 23:44:02 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: | |||||||
| Attachments: |
|
||||||
|
Description
wes hayutin
2015-04-15 17:50:21 UTC
I think this is a problem with a moved configuration file. Packstack generates the configuration file /etc/mongodb.conf, but mongodb-server ships and uses /etc/mongod.conf (on CentOS 7.1). Because of that mongod only listens on the loopback device and it is not possible to connect to MongoDB using the address deinfed in CONFIG_MONGODB_HOST. I think adding "config => '/etc/mongod.conf'," to templates/mongodb.pp solves the issue for CentOS 7.1. This should be backported to the Juno branch, I am working with this branch at the moment and this branch is affected, too. As a quick workaround, we could create a symlink for backward compatibility. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-1458/mongodb-2.6.9-1.el7 was pushed to stable yesterday causing this issue. But isn't such change breaking all EPEL users not just RDO?? Yes, with mongodb 2.6.7 there was the renaming of config files (https://lists.fedoraproject.org/pipermail/devel/2015-January/207346.html , https://lists.fedoraproject.org/pipermail/devel/2015-February/207389.html ). MongoDB has "%triggerpostun server -- %{name}-server < 2.6.7-3" script to allow users to upgrade and run mongodb with old configuration. But it is processed only during rpm/yum upgrade. With new installation mongodb uses new config file. It worked for example with mongodb-2.6.8-1.el7? Alright, then it needs to be fixed in openstack-packstack. One note about adding symlink mongodb.conf->mongod.conf: - with new installations it will work fine - during upgrade if /etc/sysconfig/mongod is changed, mongodb have to use the old name (mongodb.conf), so it could collide with your symlink I have been checking the options, and I think we also have a packaging issue here. Looking at the different versions of mongodb-server for the supported combinations in Packstack we have: - Fedora 21 with RDO: version 2.4.x (config file is /etc/mongodb.conf) - CentOS 7 and RHEL 7 with EPEL and RDO: version 2.6.x (config file is /etc/mongod.conf) - RHEL 7 with RHEL OSP: version 2.6.x (config file is /etc/mongodb.conf) The easiest fix will be to check, from Packstack, which combination we are in and set "config => '/etc/mongod.conf'," as needed, as specified in comment 1. However, this inconsistency in packaging between different versions is making life quite hard. This should not be fixed in Packstack itself (maybe as a temporary workaround). It should be fixed in puppetlabs/puppetlabs-mongodb and a new version of puppetlabs/puppetlabs-mongodb should be released. I proposed a PR for puppetlabs/puppetlabs-mongodb: https://github.com/puppetlabs/puppetlabs-mongodb/pull/193. Pleaes have a look at the PR if this is a correct solution for the issue. (In reply to Christian Berendt from comment #7) > This should not be fixed in Packstack itself (maybe as a temporary > workaround). It should be fixed in puppetlabs/puppetlabs-mongodb and a new > version of puppetlabs/puppetlabs-mongodb should be released. > > I proposed a PR for puppetlabs/puppetlabs-mongodb: > https://github.com/puppetlabs/puppetlabs-mongodb/pull/193. Pleaes have a > look at the PR if this is a correct solution for the issue. I'm not sure if this PR would work, because it depends on $::mongodb::globals::version, which has to be set before the package is installed (if I'm not mistaken). Maybe. I have not read the whould code of puppetlabs/puppetlabs-mongodb. Let's wait for feedback on the PR. Independent of a fix of the issue in puppetlabs/puppetlabs-mongodb we should fix the issue in Packstack itself right. At the moment Packstack is broken when enabling Ceilometer. Another solution is dropping MongoDB from Packstack, replacing it with MySQL as storage backend for Ceilometer. I have proposed https://review.openstack.org/174301 as a quick fix from the Packstack side. On some initial tests, it works for me on the following combinations: - Fedora 21 with RDO Kilo - CentOS 7 with RDO Kilo - RHEL 7 with RHEL OSP 6 (Juno) https://review.openstack.org/174301 is now merged. Can you please back port for Juno and trigger a new release of Packstack for the Juno branch? Proposed https://review.openstack.org/174445 with the backport. |