From 867db9c18fcccbb283159438ead16fdd671ce2a5 Mon Sep 17 00:00:00 2001 From: Sergey Kolekonov Date: Wed, 1 Jul 2015 16:42:47 +0300 Subject: [PATCH] Fix behaviour on cluster scaling Added a predeployment task which disables vpn-agent so it doesn't affect main deployment manifests during cluster scaling Change-Id: Ie5df398953c7cfb0df994317e46e9f964db3399a Closes-bug: #1470461 --- tasks.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks.yaml b/tasks.yaml index 9cc7ec9..fceddcc 100644 --- a/tasks.yaml +++ b/tasks.yaml @@ -13,3 +13,10 @@ puppet_manifest: puppet/manifests/controller.pp puppet_modules: puppet/modules:/etc/puppet/modules timeout: 720 + +- role: ['primary-controller'] + stage: pre_deployment + type: shell + parameters: + cmd: if [ -n "$(which pcs 2>/dev/null)" -a -n "$(pcs resource show p_neutron-vpn-agent 2>/dev/null)" ]; then pcs resource disable p_neutron-vpn-agent --wait=30; fi + timeout: 40