2016-12-06 17:12:20 +08:00
|
|
|
---
|
2019-08-19 15:52:46 +01:00
|
|
|
- name: Restart nova-super-conductor container
|
2016-12-06 17:12:20 +08:00
|
|
|
vars:
|
2019-08-19 15:52:46 +01:00
|
|
|
service_name: "nova-super-conductor"
|
2016-12-06 17:12:20 +08:00
|
|
|
service: "{{ nova_services[service_name] }}"
|
2018-05-30 11:25:19 +07:00
|
|
|
become: true
|
2023-11-08 14:17:51 +01:00
|
|
|
kolla_container:
|
2016-12-06 17:12:20 +08:00
|
|
|
action: "recreate_or_restart_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ service.container_name }}"
|
|
|
|
image: "{{ service.image }}"
|
|
|
|
privileged: "{{ service.privileged | default(False) }}"
|
2022-07-25 09:52:05 +02:00
|
|
|
volumes: "{{ service.volumes | reject('equalto', '') | list }}"
|
2018-04-25 14:19:07 +05:30
|
|
|
dimensions: "{{ service.dimensions }}"
|
2019-08-14 11:15:33 +00:00
|
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
2016-12-06 17:12:20 +08:00
|
|
|
when:
|
2018-01-25 11:30:32 +08:00
|
|
|
- kolla_action != "config"
|
2019-08-19 15:52:46 +01:00
|
|
|
- kolla_action != "upgrade" or not nova_safety_upgrade | bool
|
2016-12-06 17:12:20 +08:00
|
|
|
|
2017-02-18 11:23:49 +08:00
|
|
|
- name: Restart nova-scheduler container
|
2016-12-06 17:12:20 +08:00
|
|
|
vars:
|
2017-02-18 11:23:49 +08:00
|
|
|
service_name: "nova-scheduler"
|
2016-12-06 17:12:20 +08:00
|
|
|
service: "{{ nova_services[service_name] }}"
|
2018-05-30 11:25:19 +07:00
|
|
|
become: true
|
2023-11-08 14:17:51 +01:00
|
|
|
kolla_container:
|
2016-12-06 17:12:20 +08:00
|
|
|
action: "recreate_or_restart_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ service.container_name }}"
|
|
|
|
image: "{{ service.image }}"
|
|
|
|
privileged: "{{ service.privileged | default(False) }}"
|
2022-07-25 09:52:05 +02:00
|
|
|
volumes: "{{ service.volumes | reject('equalto', '') | list }}"
|
2018-04-25 14:19:07 +05:30
|
|
|
dimensions: "{{ service.dimensions }}"
|
2019-08-14 11:15:33 +00:00
|
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
2016-12-06 17:12:20 +08:00
|
|
|
when:
|
2018-01-25 11:30:32 +08:00
|
|
|
- kolla_action != "config"
|
2019-08-19 15:52:46 +01:00
|
|
|
- kolla_action != "upgrade" or not nova_safety_upgrade | bool
|
2016-12-06 17:12:20 +08:00
|
|
|
|
2018-04-04 16:52:51 +07:00
|
|
|
- name: Restart nova-api container
|
2016-12-06 17:12:20 +08:00
|
|
|
vars:
|
2018-04-04 16:52:51 +07:00
|
|
|
service_name: "nova-api"
|
2016-12-06 17:12:20 +08:00
|
|
|
service: "{{ nova_services[service_name] }}"
|
2018-05-30 11:25:19 +07:00
|
|
|
become: true
|
2023-11-08 14:17:51 +01:00
|
|
|
kolla_container:
|
2016-12-06 17:12:20 +08:00
|
|
|
action: "recreate_or_restart_container"
|
|
|
|
common_options: "{{ docker_common_options }}"
|
|
|
|
name: "{{ service.container_name }}"
|
|
|
|
image: "{{ service.image }}"
|
|
|
|
privileged: "{{ service.privileged | default(False) }}"
|
2022-07-25 09:52:05 +02:00
|
|
|
volumes: "{{ service.volumes | reject('equalto', '') | list }}"
|
2018-04-25 14:19:07 +05:30
|
|
|
dimensions: "{{ service.dimensions }}"
|
2019-08-14 11:15:33 +00:00
|
|
|
healthcheck: "{{ service.healthcheck | default(omit) }}"
|
2016-12-06 17:12:20 +08:00
|
|
|
when:
|
2018-01-25 11:30:32 +08:00
|
|
|
- kolla_action != "config"
|
2019-08-19 15:52:46 +01:00
|
|
|
- kolla_action != "upgrade" or not nova_safety_upgrade | bool
|