Packstack install fails with Mongo Connection Error

Last night I was installing OpenStack Kilo using packstack via the instructions for CentOS 7 on RDO. I tried installing the stack using the following command, which should have resulted in a full OpenStack install on a single VM with the ability to configure external network access:

packstack --allinone --provision-demo=n

I ran into two separate issues. The 1st issue was that EPEL is disabled by default so you will have to manually add EPEL, which is fairly easy:

rpm -Uvh

Once that was done, I re-ran the installer and ran into the following error:

packstack01.linuxchris.labnet_mongodb.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: packstack01.linuxchris.labnet_mongodb.pp
Error: Unable to connect to mongodb server! (packstack01.linuxchris.labnet:27017)
You will find full trace in log /var/tmp/packstack/20160108-105810-MPoFPc/manifests/packstack01.linuxchris.labnet_mongodb.pp.log
Please check log file /var/tmp/packstack/20160108-105810-MPoFPc/openstack-setup.log for more information

It turns out that the default config setting for Mongo is to listen only on the loopback interface ( so I edited /etc/mongodb.conf and changed:

bind_ip =


bind_ip =

I then restarted mongo

systemctl restart mongod

I was then able to re-run the packstack installer using the answer file generated from the previous run:

packstack --answer-file=packstack-answers-20160108-015811.txt

I think if you installed mongo and modified the config before running packstack, you could just run the original packstack command and it would succeed.

This entry was posted in Linux, Sysadmin. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.