aboutsummaryrefslogtreecommitdiffstats
path: root/extraconfig
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-27 01:11:39 +0000
committerGerrit Code Review <review@openstack.org>2016-09-27 01:11:39 +0000
commit9023746e1f633ef94d91925dbfc845130ce68a69 (patch)
tree57db154e053ae1c57cb3bf0f8f63c3bdf876d1ef /extraconfig
parenta85936ea65e12984ef58e275a67e78857575bdd4 (diff)
parent9593981149aededef621ebda17962b1e02318328 (diff)
Merge "Start mongod before calling ceilometer-dbsync"
Diffstat (limited to 'extraconfig')
-rwxr-xr-xextraconfig/tasks/major_upgrade_controller_pacemaker_2.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh b/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
index 59c4bb08..aef54f84 100755
--- a/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
+++ b/extraconfig/tasks/major_upgrade_controller_pacemaker_2.sh
@@ -32,6 +32,13 @@ fi
start_or_enable_service galera
check_resource galera started 600
+# We need mongod which is now a systemd service up and running before calling
+# ceilometer-dbsync. There is still a race here: mongod might not be up on all nodes
+# so ceilometer-dbsync will fail a couple of times before that. As it retries indefinitely
+# we should be good.
+# Due to LP Bug https://bugs.launchpad.net/tripleo/+bug/1627254 am using systemctl directly atm
+systemctl start mongod
+check_resource mongod started 600
if [[ -n $(is_bootstrap_node) ]]; then
tstart=$(date +%s)