Merge "Add validation task in docker services [Ovn]" into stable/pike

This commit is contained in:
Zuul 2017-11-30 05:58:44 +00:00 committed by Gerrit Code Review
commit e0d72f9ba7
2 changed files with 20 additions and 0 deletions

View File

@ -114,6 +114,16 @@ outputs:
/var/log/containers/openvswitch.
ignore_errors: true
upgrade_tasks:
- name: Check if ovn_controller is deployed
command: systemctl is-enabled --quiet ovn-controller
tags: common
ignore_errors: True
register: ovn_controller_enabled
- name: "PreUpgrade step0,validation: Check service ovn_controller is running"
command: systemctl is-active --quiet ovn-controller
when: ovn_controller_enabled.rc == 0
tags: step0,validation
- name: Stop and disable ovn-controller service
tags: step2
when: ovn_controller_enabled.rc == 0
service: name=ovn-controller state=stopped enabled=no

View File

@ -206,6 +206,16 @@ outputs:
/var/log/containers/openvswitch.
ignore_errors: true
upgrade_tasks:
- name: Check if ovn_northd is deployed
command: systemctl is-enabled --quiet ovn-northd
tags: common
ignore_errors: True
register: ovn_northd_enabled
- name: "PreUpgrade step0,validation: Check service ovn_northd is running"
command: systemctl is-active --quiet ovn-northd
when: ovn_northd_enabled.rc == 0
tags: step0,validation
- name: Stop and disable ovn-northd service
tags: step2
when: ovn_northd_enabled.rc == 0
service: name=ovn-northd state=stopped enabled=no