Merge "Add validation task in docker services [Manila]"
This commit is contained in:
commit
226dcce1b0
@ -138,6 +138,16 @@ outputs:
|
|||||||
/var/log/containers/manila and /var/log/containers/httpd/manila-api.
|
/var/log/containers/manila and /var/log/containers/httpd/manila-api.
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
upgrade_tasks:
|
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
|
- name: Stop and disable manila_api service
|
||||||
tags: step2
|
tags: step2
|
||||||
|
when: manila_api_enabled.rc == 0
|
||||||
service: name=openstack-manila-api state=stopped enabled=no
|
service: name=openstack-manila-api state=stopped enabled=no
|
||||||
|
@ -114,6 +114,16 @@ outputs:
|
|||||||
/var/log/containers/manila and /var/log/containers/httpd/manila-api.
|
/var/log/containers/manila and /var/log/containers/httpd/manila-api.
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
upgrade_tasks:
|
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
|
- name: Stop and disable manila_scheduler service
|
||||||
tags: step2
|
tags: step2
|
||||||
|
when: manila_scheduler_enabled.rc == 0
|
||||||
service: name=openstack-manila-scheduler state=stopped enabled=no
|
service: name=openstack-manila-scheduler state=stopped enabled=no
|
||||||
|
@ -133,6 +133,16 @@ outputs:
|
|||||||
path: /etc/ceph
|
path: /etc/ceph
|
||||||
state: directory
|
state: directory
|
||||||
upgrade_tasks:
|
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
|
- name: Stop and disable manila_share service
|
||||||
tags: step2
|
tags: step2
|
||||||
|
when: manila_share_enabled.rc == 0
|
||||||
service: name=openstack-manila-share state=stopped enabled=no
|
service: name=openstack-manila-share state=stopped enabled=no
|
||||||
|
Loading…
Reference in New Issue
Block a user