Description of problem: When installing a services or broker services node, IE: CONF_INSTALL_COMPONENTS="activemq,datastore" mongodb does not get installed and thus causes line 1230 to hang. Because it can not find mongo as a component. wait_for_mongod() { echo "Waiting for MongoDB to start ($(date +%H:%M:%S))..." while : do echo exit | mongo && break #### This line sleep 5 done echo "MongoDB is ready! ($(date +%H:%M:%S))" }
Can you give some more details about what was done and what output you saw? The log from the installer would be helpful. (You did capture the output right?) The openshift.sh install script won't even run that bit of code until after mongodb is successfully installed (well... unless there's a new bug of course). It's normal for it to have to wait a bit to actually connect. If it doesn't ever connect, then maybe mongodb didn't get started. That would be a problem.
I see now; mongodb-server no longer requires mongodb, so we need to explicitly install it. Probably a good idea to do for 1.2 as well. I'll update the script and mention it to docs.
commit 665da22dd5789b0977afab0c9f3634bdc4f0b27c Author: Luke Meyer <lmeyer> Date: Tue Nov 5 07:28:25 2013 -0500 <install> explicitly require mongodb RPM for datastore Previously mongodb-server required mongodb. Now it does not. However we use the mongo client from mongodb to configure the server, so we do need it even if the host is just hosting mongodb.
Same fix put in 1.2 install script to future-proof it.
wget https://raw.github.com/openshift/openshift-extras/enterprise-2.0/enterprise/install-scripts/generic/openshift.sh #vim openshift.sh CONF_INSTALL_COMPONENTS="datastore" #sh +x openshift.sh Output: + sleep 5 + : + mongo + echo exit MongoDB shell version: 2.4.6 connecting to: test bye + break ++ date +%H:%M:%S + echo 'MongoDB is ready! (20:07:22)' MongoDB is ready! (20:07:22) wget https://raw.github.com/openshift/openshift-extras/enterprise-1.2/enterprise/install-scripts/generic/openshift.sh #vim openshift.sh CONF_INSTALL_COMPONENTS="activemq,datastore" #sh +x openshift.sh Output: exception: connect failed + sleep 5 + : + mongo + echo exit MongoDB shell version: 2.2.3 connecting to: test bye + break ++ date +%H:%M:%S + echo 'MongoDB is ready! (20:45:25)' MongoDB is ready! (20:45:25)