From 3fce3658214f37dae792c610065327f69a9d6e1d Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Fri, 4 Sep 2015 19:32:04 +0100 Subject: [PATCH] ensure mongodb is installed/configured before clustering (bsc#944417) Just like with all other HA OpenStack resources, we need to prevent the resources being configured in Pacemaker before we know that all nodes have the necessary packages installed and correctly configured. This was one of the lessons learnt during analysis of: https://bugzilla.suse.com/show_bug.cgi?id=944417 --- chef/cookbooks/ceilometer/recipes/mongodb.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chef/cookbooks/ceilometer/recipes/mongodb.rb b/chef/cookbooks/ceilometer/recipes/mongodb.rb index 480dc9c543..31c12a1f56 100644 --- a/chef/cookbooks/ceilometer/recipes/mongodb.rb +++ b/chef/cookbooks/ceilometer/recipes/mongodb.rb @@ -46,6 +46,11 @@ end if ha_enabled + # Wait for all nodes to reach this point so we know that all nodes + # will have all the required packages installed and configured before + # we create the pacemaker resources. + crowbar_pacemaker_sync_mark "sync-mongodb_before_ha" + crowbar_pacemaker_sync_mark "wait-mongodb_service" pacemaker_primitive "mongodb" do