Bug 1167888 - [CENTOS7] packstack all in one install fails at MongoDB Service[mongodb]: Execution of '/usr/bin/systemctl start mongod' returned 1: Job for mongod.service failed
Summary: [CENTOS7] packstack all in one install fails at MongoDB Service[mongodb]: Exe...
Alias: None
Product: RDO
Classification: Community
Component: openstack-puppet-modules
Version: Juno
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: Juno
Assignee: Gaël Chamoulaud
QA Contact: Ami Jeain
Depends On:
TreeView+ depends on / blocked
Reported: 2014-11-25 15:01 UTC by Gaël Chamoulaud
Modified: 2015-03-31 00:01 UTC (History)
9 users (show)

Fixed In Version: openstack-puppet-modules-2014.2.6-1 openstack-puppet-modules-2014.1.1-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-12-17 01:05:27 UTC

Attachments (Terms of Use)

Description Gaël Chamoulaud 2014-11-25 15:01:17 UTC
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. packstack --allinone --provision-all-in-one-ovs-bridge=n

Actual results:
ERROR : Error appeared during Puppet run: Error: Could not start Service[mongodb]: Execution of '/usr/bin/systemctl start mongod' returned 1: Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details. You will find full trace in log /var/tmp/packstack/20141121-030314-aeb3_0/manifests/

Additional info:
On CentOS 7, the pidfile for mongodb should be /var/run/mongodb/mongod.pid !!!!

Comment 1 Alan Pevec 2014-11-25 15:39:05 UTC
Which mongodb RPM do you have?

There was EPEL7 update where services were renamed:

Comment 2 Gaël Chamoulaud 2014-11-25 17:37:57 UTC

It will affect fedora 22 as well!


Comment 3 Blake Devcich 2014-11-26 19:52:19 UTC
I've found that adding the pid filepath to /usr/lib/python2.7/site-packages/packstack/puppet/templates/mongodb.pp works as a workaround.

I added the pidfilepath line.

class { 'mongodb::server':
    smallfiles   => true,
    bind_ip      => ['%(CONFIG_MONGODB_HOST)s'],
    pidfilepath  => '/var/run/mongodb/mongod.pid',

Comment 4 Neil Jerram 2014-11-28 13:18:26 UTC
I am seeing this problem too.

Comment 5 Gaël Chamoulaud 2014-11-30 13:23:38 UTC
A Pull Request has been sent upstream by Ivan Necas

Comment 6 Alan Pevec 2014-12-17 01:05:27 UTC
openstack-puppet-modules-2014.2.6-1 is available in the public RDO Juno repository

Comment 8 Alan Pevec 2015-03-27 22:15:22 UTC
RDO Icehouse update https://review.gerrithub.io/217314 pushed to stage, waiting for stage CI jobs to return before pushing live.

Comment 9 Alan Pevec 2015-03-31 00:01:16 UTC
RDO Icehouse update is now live.

Note You need to log in before you can comment on or make changes to this bug.