Merge "Add validation task in docker services [Manila]"

This commit is contained in:
Zuul 2017-11-22 18:08:14 +00:00 committed by Gerrit Code Review
commit 226dcce1b0
3 changed files with 30 additions and 0 deletions

View File

@ -138,6 +138,16 @@ outputs:
/var/log/containers/manila and /var/log/containers/httpd/manila-api.
ignore_errors: true
upgrade_tasks:
- name: Check if manila_api is deployed
command: systemctl is-enabled --quiet openstack-manila-api
tags: common
ignore_errors: True
register: manila_api_enabled
- name: "PreUpgrade step0,validation: Check service openstack-manila-api is running"
command: systemctl is-active --quiet openstack-manila-api
when: manila_api_enabled.rc == 0
tags: step0,validation
- name: Stop and disable manila_api service
tags: step2
when: manila_api_enabled.rc == 0
service: name=openstack-manila-api state=stopped enabled=no

View File

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

View File

@ -133,6 +133,16 @@ outputs:
path: /etc/ceph
state: directory
upgrade_tasks:
- name: Check if manila_share is deployed
command: systemctl is-enabled --quiet openstack-manila-share
tags: common
ignore_errors: True
register: manila_share_enabled
- name: "PreUpgrade step0,validation: Check service openstack-manila-share is running"
command: systemctl is-active --quiet openstack-manila-share
when: manila_share_enabled.rc == 0
tags: step0,validation
- name: Stop and disable manila_share service
tags: step2
when: manila_share_enabled.rc == 0
service: name=openstack-manila-share state=stopped enabled=no