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
137 lines
4.6 KiB
YAML
137 lines
4.6 KiB
YAML
---
|
|
- name: Stopping swift-rsyncd container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_rsyncd"
|
|
when: ( inventory_hostname in groups['swift-account-server'] or
|
|
inventory_hostname in groups['swift-container-server'] or
|
|
inventory_hostname in groups['swift-object-server'] ) and
|
|
'swift_rsyncd' not in skip_stop_containers
|
|
|
|
- name: Stopping swift-account-server container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_account_server"
|
|
when:
|
|
- inventory_hostname in groups['swift-account-server']
|
|
- "'swift_account_server' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-account-auditor container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_account_auditor"
|
|
when:
|
|
- inventory_hostname in groups['swift-account-server']
|
|
- "'swift_object_auditor' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-account-replicator container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_account_replicator"
|
|
when:
|
|
- inventory_hostname in groups['swift-account-server']
|
|
- "'swift_account_replicator' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-account-reaper container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_account_reaper"
|
|
when:
|
|
- inventory_hostname in groups['swift-account-server']
|
|
- "'swift_account_reaper' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-container-server container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_container_server"
|
|
when:
|
|
- inventory_hostname in groups['swift-container-server']
|
|
- "'swift_container_server' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-container-auditor container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_container_auditor"
|
|
when:
|
|
- inventory_hostname in groups['swift-container-server']
|
|
- "'swift_container_auditor' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-container-replicator container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_container_replicator"
|
|
when:
|
|
- inventory_hostname in groups['swift-container-server']
|
|
- "'swift_container_replicator' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-container-updater container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_container_updater"
|
|
when:
|
|
- inventory_hostname in groups['swift-container-server']
|
|
- "'swift_container_updater' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-object-server container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_object_server"
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- "'swift_object_server' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-object-auditor container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_object_auditor"
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- "'swift_object_auditor' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-object-replicator container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_object_replicator"
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- "'swift_object_replicator' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-object-updater container
|
|
kolla_docker:
|
|
action: "start_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_object_updater"
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- "'swift_object_updater' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-object-expirer container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_object_expirer"
|
|
when:
|
|
- inventory_hostname in groups['swift-object-server']
|
|
- "'swift_object_expirer' not in skip_stop_containers"
|
|
|
|
- name: Stopping swift-proxy-server container
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "swift_proxy_server"
|
|
when:
|
|
- inventory_hostname in groups['swift-proxy-server']
|
|
- "'swift_proxy_server' not in skip_stop_containers"
|