Description of problem: Running packstack --allinone get failure Applying 192.169.142.54_redis.pp 192.169.142.54_mongodb.pp: [ ERROR ] Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: 192.169.142.54_mongodb.pp Error: Unable to connect to mongodb server! (192.169.142.54:27017) Version-Release number of selected component (if applicable): [root@ip-192-169-142-54 ~(keystone_admin)]# nova-manage version 2015.1.1-1.el7 [root@ip-192-169-142-54 ~(keystone_admin)]# rpm -qa | grep openstack-packstack openstack-packstack-puppet-2015.1-0.14.dev1616.g5526c38.el7.noarch openstack-packstack-2015.1-0.14.dev1616.g5526c38.el7.noarch How reproducible: Download rdo-release-kilo-1.noarch.rpm rpm -iv rdo-release-kilo-1.noarch.rpm yum -y install openstack-packstack Run packstack --allinone on CentOS 7.2 Steps to Reproduce: 1. Download rdo-release-kilo-1.noarch.rpm 2. rpm -iv rdo-release-kilo-1.noarch.rpm 3. yum -y install openstack-packstack 4. packstack --allinone ( on CentOS 7.2 ) Actual results: 192.169.142.54_mongodb.pp: [ ERROR ] Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: 192.169.142.54_mongodb.pp Error: Unable to connect to mongodb server! (192.169.142.54:27017) Expected results: Successful install Additional info: Workaround (to bind to host IP, actually binds to 127.0.0.1 ) systemctl stop mongod.service rm -f /etc/mongodb.conf ln -s /etc/mongod.conf /etc/mongodb.conf Rerun packstack
I attempted patch suggested in http://arctton.blogspot.com/2015/04/rdo-juno-packstack-deploy-failed-with.html It doesn't work for me on RDO Kilo, binding to 127.0.0.1 is still in place. Symlinking mongodb.conf ( workaround ) gives, what is required :- [root@ip-192-169-142-54 ~]# netstat -antp | grep mongod tcp 0 0 192.169.142.54:27017 0.0.0.0:* LISTEN 30470/mongod tcp 0 0 192.169.142.54:27017 192.169.142.54:47861 ESTABLISHED 30470/mongod tcp 0 0 192.169.142.54:27017 192.169.142.54:47567 ESTABLISHED 30470/mongod tcp 0 0 192.169.142.54:27017 192.169.142.54:47488 ESTABLISHED 30470/mongod tcp 0 0 192.169.142.54:27017 192.169.142.54:47575 ESTABLISHED 30470/mongod [root@ip-192-169-142-54 ~]# ps -ef | grep 30470 mongodb 30470 1 0 11:47 ? 00:00:07 /usr/bin/mongod --quiet -f /etc/mongodb.conf run [root@ip-192-169-142-54 ~]#
There were a number of patches to clean up the mongodb configuration, caused by packaging differences between RDO and Red Hat OpenStack Platform (the latest one was https://review.openstack.org/181294). This is currently known to work properly with RDO Mitaka, so I'm closing the bug as CURRENTRELEASE. Please feel free to reopen the bug if the issue is still relevant in the current RDO release.