summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-09 13:13:40 +0000
committerGerrit Code Review <review@openstack.org>2017-03-09 13:13:41 +0000
commit21f559ec0f0cc5c3718e5fc537581dee45672d72 (patch)
treea3e712a7b0030608ce11d226ac4e6085441dca03
parent89fbbf12ca953b1c246b8b9ec2022d88245fdf36 (diff)
parent805109b625f5abc23f44516c0acae08f78a224aa (diff)
Merge "Add validation for VPP upgrade tasks"
-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