aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/vpp.yaml
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-02-28 07:58:39 -0500
committerFeng Pan <fpan@redhat.com>2017-03-06 08:43:27 -0500
commit805109b625f5abc23f44516c0acae08f78a224aa (patch)
treea3a7a818baee94477e415ab00bd9c25dfc00c316 /puppet/services/vpp.yaml
parentfd76fb23ba74443387c2d6d64120ac974836b085 (diff)
Add validation for VPP upgrade tasks
Change-Id: I54a3cac11ae63c553f831a3f8eeca2cbe4cc88d3 Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'puppet/services/vpp.yaml')
-rw-r--r--puppet/services/vpp.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/puppet/services/vpp.yaml b/puppet/services/vpp.yaml
index 59866d39..7c8f8a28 100644
--- a/puppet/services/vpp.yaml
+++ b/puppet/services/vpp.yaml
@@ -42,6 +42,16 @@ outputs:
step_config: |
include ::tripleo::profile::base::vpp
upgrade_tasks:
+ - name: Check if vpp is deployed
+ command: systemctl is-enabled vpp
+ tags: common
+ ignore_errors: True
+ register: vpp_enabled
+ - name: "PreUpgrade step0,validation: Check service vpp is running"
+ shell: /usr/bin/systemctl show 'vpp' --property ActiveState | grep '\bactive\b'
+ when: vpp_enabled.rc == 0
+ tags: step0,validation
- name: Stop vpp service
- tags: step2
+ tags: step1
+ when: vpp_enabled.rc == 0
service: name=vpp state=stopped