summaryrefslogtreecommitdiffstats
path: root/puppet/services/opendaylight-ovs.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-07 03:39:38 +0000
committerGerrit Code Review <review@openstack.org>2017-03-07 03:39:38 +0000
commitc03f5cc4d5984f08b8485c62a353ad81a7f74ac7 (patch)
treed103e0884bc2320daaf1a12676281beec5dd699a /puppet/services/opendaylight-ovs.yaml
parentd4e5dc1455071a44a7371d016a54a9832b0fb2d1 (diff)
parent20d7901ab24e93e0224cc1c8b0cde3eb80122818 (diff)
Merge "Adds upgrade tasks for OpenDaylight services"
Diffstat (limited to 'puppet/services/opendaylight-ovs.yaml')
-rw-r--r--puppet/services/opendaylight-ovs.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/services/opendaylight-ovs.yaml b/puppet/services/opendaylight-ovs.yaml
index cfec3c48..3db0848e 100644
--- a/puppet/services/opendaylight-ovs.yaml
+++ b/puppet/services/opendaylight-ovs.yaml
@@ -73,3 +73,17 @@ outputs:
proto: 'gre'
step_config: |
include tripleo::profile::base::neutron::plugins::ovs::opendaylight
+ upgrade_tasks:
+ - name: Check if openvswitch is deployed
+ command: systemctl is-enabled openvswitch
+ tags: common
+ ignore_errors: True
+ register: openvswitch_enabled
+ - name: "PreUpgrade step0,validation: Check service openvswitch is running"
+ shell: /usr/bin/systemctl show 'openvswitch' --property ActiveState | grep '\bactive\b'
+ when: openvswitch_enabled.rc == 0
+ tags: step0,validation
+ - name: Stop openvswitch service
+ tags: step1
+ when: openvswitch_enabled.rc == 0
+ service: name=openvswitch state=stopped