Ask Your Question
0

RDO Installation problem on CentOS 7 because of MongoDB

asked 2014-11-21 13:58:02 -0500

Rafadotnechi gravatar image

Hi, I`m trying to install RDO on CentOS 7 laptop and the installation is failing because of MongoDB service
The installation fails on xxx.xxx.xxx_mongodb.pp because the command /usr/bin/systemctl start mongod fails to execute.

This is the status of the mongod.service:

mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongod.service; disabled)
Active: failed (Result: timeout) since Fri 2014-11-21 16:29:05 BRT; 5min ago
Process: 29369 ExecStart=/usr/bin/mongod $OPTIONS run (code=exited, status=0/SUCCESS)Nov 21 16:27:35
localhost.localdomain mongod[29369]: about to fork child process, waiting until server is ready for connections.
Nov 21 16:27:35 localhost.localdomain mongod[29369]: forked process: 29371
Nov 21 16:27:36 localhost.localdomain mongod[29369]: child process started successfully, parent exiting
Nov 21 16:27:36 localhost.localdomain systemd[1]: PID file /var/run/mongodb/mongod.pid not readable (yet?) after start.
Nov 21 16:29:05 localhost.localdomain systemd[1]: mongod.service operation timed out. Terminating.
Nov 21 16:29:05 localhost.localdomain systemd[1]: Failed to start High-performance, schema-free document-oriented database.
Nov 21 16:29:05 localhost.localdomain systemd[1]: Unit mongod.service entered failed state.


This is the mongodb log:

2014-11-21T16:40:19.811-0300 [initandlisten]
2014-11-21T16:40:19.811-0300 [initandlisten] * WARNING: Readahead for /var/lib/mongodb is set to 4096KB
2014-11-21T16:40:19.811-0300 [initandlisten] *
We suggest setting it to 256KB (512 sectors) or less
2014-11-21T16:40:19.811-0300 [initandlisten] ** http://dochub.mongodb.org/core/readahead
2014-11-21T16:40:19.845-0300 [initandlisten] journal dir=/var/lib/mongodb/journal
2014-11-21T16:40:19.845-0300 [initandlisten] recover : no journal files present, no recovery needed
2014-11-21T16:40:19.910-0300 [initandlisten] waiting for connections on port 27017
2014-11-21T16:41:49.728-0300 [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2014-11-21T16:41:49.728-0300 [signalProcessingThread] now exiting

look likes its because the PID file is not readable after a time the service startup times out
but MongoDB actually starts as can be saw in the highlighted line of mongodb.log
Its not a problem of MongoDB with CentOS 7 because outside of the installation process it`s works fine.
Anyone can help?

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
1

answered 2014-12-05 18:20:31 -0500

cloudssky gravatar image

updated 2014-12-07 09:37:51 -0500

The easiest workaround for RDO Juno on CentOS 7 is to set the following in the answer file: CONFIG_CEILOMETER_INSTALL=n

here are the steps for RDO Juno deplyoment:

yum update -y
yum install -y https://rdo.fedorapeople.org/rdo-release.rpm
yum install -y openstack-packstack

packstack --gen-answer-file=packstack-aio
Set CONFIG_CEILOMETER_INSTALL=n in answer file
packstack --answer-file packstack-aio

Or use this single line installer described here:

bit.ly/1Bqb6md

edit flag offensive delete link more

Comments

Turning off Ceilometer is not a real solution.

jdexter gravatar imagejdexter ( 2015-06-10 12:05:21 -0500 )edit
5

answered 2014-11-21 17:20:39 -0500

Gine gravatar image

updated 2014-11-26 19:24:05 -0500

larsks gravatar image

I faced the same problem with the mongod.pid file while installing Icehouse on CentOS 7 with Packstack today. Here is the answer I gave in a similar post: https://ask.openstack.org/en/question/54015/mongodbpp/?answer=54076#post-id-54076.

It fixed the issue for me without having to do a downgrade.

edit flag offensive delete link more
0

answered 2014-11-21 14:30:24 -0500

dbaxps gravatar image

View for workaround for now http://projects.theforeman.org/issues...

edit flag offensive delete link more
0

answered 2014-12-05 09:55:39 -0500

The new rpm builds containing the fix for that issue will be available soon from the official repo.

Meanwhile, you can use them from the copr repo:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-11-21 13:58:02 -0500

Seen: 4,165 times

Last updated: Dec 07 '14