aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/opendaylight-ovs.yaml
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-02-27 15:19:56 -0500
committerTim Rozet <trozet@redhat.com>2017-03-01 15:23:41 -0500
commit20d7901ab24e93e0224cc1c8b0cde3eb80122818 (patch)
tree30ce8803936d538526c2387c26cd9a1695ce60c2 /puppet/services/opendaylight-ovs.yaml
parent34c46241cda3be567017943560d218ced3bbdc03 (diff)
Adds upgrade tasks for OpenDaylight services
Change-Id: I740b20b12acb3740886409bff86c4989f0a066f4 Signed-off-by: Tim Rozet <trozet@redhat.com>
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