Remove non-container zaqar-server on upgrade
This removes the zaqar websocket service on upgrade from non-containerized environment, in particular the undercloud. Change-Id: If2151c27bfdf4e1f1a22704221c1a2c75aa9cf0a Closes-Bug: #1798546
This commit is contained in:
parent
a6cf9b8b14
commit
b56ae5774f
@ -220,6 +220,17 @@ outputs:
|
||||
when:
|
||||
- zaqar_httpd_enabled|bool
|
||||
- httpd_running|bool
|
||||
- name: Check if zaqar websocket is deployed
|
||||
command: systemctl is-enabled --quiet openstack-zaqar@1
|
||||
ignore_errors: True
|
||||
register: zaqar_ws_enabled_result
|
||||
- name: Set fact zaqar_ws_enabled
|
||||
set_fact:
|
||||
zaqar_ws_enabled: "{{ zaqar_ws_enabled_result.rc == 0 }}"
|
||||
- name: "PreUpgrade step0,validation: Check service openstack-zaqar@1 is running"
|
||||
command: systemctl is-active --quiet openstack-zaqar@1
|
||||
when: zaqar_ws_enabled|bool
|
||||
tags: validation
|
||||
- when: step|int == 2
|
||||
block:
|
||||
- name: Stop and disable zaqar service
|
||||
@ -227,6 +238,9 @@ outputs:
|
||||
- zaqar_httpd_enabled|bool
|
||||
- httpd_running|bool
|
||||
service: name=httpd state=stopped enabled=no
|
||||
- name: Stop and disable zaqar websocket service
|
||||
when: zaqar_ws_enabled|bool
|
||||
service: name=openstack-zaqar@1 state=stopped enabled=no
|
||||
- when: step|int == 3
|
||||
block:
|
||||
- name: Set fact for removal of openstack-zaqar package
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Remove zaqar wbesocket service when upgrading from non-containerized
|
||||
environment.
|
Loading…
x
Reference in New Issue
Block a user