From d14c56e1b6a521f99c564c6f22edf381c8831797 Mon Sep 17 00:00:00 2001 From: marios Date: Fri, 23 Dec 2016 16:07:44 +0200 Subject: Adds a pre-upgrade check that service is running (step0) Adds a step0 for most services to check that the state is running before continuing with any of the other upgrades steps (these are tagged step0). You can skip this service check by overriding the SkipUpgradeConfigTags parameter as follows: parameter_defaults: SkipUpgradeConfigTags: validation Co-Authored-By: Steven Hardy Change-Id: Ie276f153015f671b720b6ed5beaac1b921661909 --- puppet/services/neutron-l3.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'puppet/services/neutron-l3.yaml') diff --git a/puppet/services/neutron-l3.yaml b/puppet/services/neutron-l3.yaml index 9d858441..69803551 100644 --- a/puppet/services/neutron-l3.yaml +++ b/puppet/services/neutron-l3.yaml @@ -80,6 +80,9 @@ outputs: step_config: | include tripleo::profile::base::neutron::l3 upgrade_tasks: + - name: "PreUpgrade step0,validation: Check service neutron-l3-agent is running" + shell: /usr/bin/systemctl show 'neutron-l3-agent' --property ActiveState | grep '\bactive\b' + tags: step0,validation - name: Stop neutron_l3 service tags: step2 service: name=neutron-l3-agent state=stopped -- cgit 1.2.3-korg