1a682fab28
With this change, an operator may be able to stop a service container without stopping all services in a host. This change is the starting point to start fast-forward upgrades support. In next changes new flags will be introducced to disable stop dataplane services during upgrades. Change-Id: Ifde7a39d7d8596ef0d7405ecf1ac1d49a459d9ef Implements: blueprint support-stop-containers
20 lines
757 B
YAML
20 lines
757 B
YAML
---
|
|
- name: Stopping iscsid container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "iscsid"
|
|
when: ( ( inventory_hostname in groups['compute'] or inventory_hostname in groups['cinder-volume'] ) and enable_cinder | bool and enable_cinder_backend_iscsi | bool )
|
|
or ( inventory_hostname in groups['ironic-conductor'] and enable_ironic | bool and 'iscsid' not in skip_stop_containers)
|
|
|
|
- name: Stopping tgtd container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "tgtd"
|
|
when:
|
|
- inventory_hostname in groups['tgtd']
|
|
- enable_cinder | bool
|
|
- enable_cinder_backend_lvm | bool
|
|
- "'tgtd' not in skip_stop_containers"
|