Merge "Start nova-conductor earlier"
This commit is contained in:
commit
0e5c6b277a
@ -94,6 +94,55 @@
|
|||||||
or policy_json.changed | bool
|
or policy_json.changed | bool
|
||||||
or nova_api_container.changed | bool
|
or nova_api_container.changed | bool
|
||||||
|
|
||||||
|
- name: Restart nova-scheduler container
|
||||||
|
vars:
|
||||||
|
service_name: "nova-scheduler"
|
||||||
|
service: "{{ nova_services[service_name] }}"
|
||||||
|
config_json: "{{ config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
nova_conf: "{{ nova_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
policy_json: "{{ policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
nova_scheduler_container: "{{ check_nova_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
kolla_docker:
|
||||||
|
action: "recreate_or_restart_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
name: "{{ service.container_name }}"
|
||||||
|
image: "{{ service.image }}"
|
||||||
|
privileged: "{{ service.privileged | default(False) }}"
|
||||||
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
||||||
|
when:
|
||||||
|
- action != "config"
|
||||||
|
- inventory_hostname in groups[service.group]
|
||||||
|
- service.enabled | bool
|
||||||
|
- config_json.changed | bool
|
||||||
|
or nova_conf.changed | bool
|
||||||
|
or policy_json.changed | bool
|
||||||
|
or nova_scheduler_container.changed | bool
|
||||||
|
|
||||||
|
- name: Restart nova-conductor container
|
||||||
|
vars:
|
||||||
|
service_name: "nova-conductor"
|
||||||
|
service: "{{ nova_services[service_name] }}"
|
||||||
|
config_json: "{{ config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
nova_conf: "{{ nova_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
policy_json: "{{ policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
nova_conductor_container: "{{ check_nova_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
||||||
|
kolla_docker:
|
||||||
|
action: "recreate_or_restart_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
name: "{{ service.container_name }}"
|
||||||
|
image: "{{ service.image }}"
|
||||||
|
privileged: "{{ service.privileged | default(False) }}"
|
||||||
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
||||||
|
when:
|
||||||
|
- action != "config"
|
||||||
|
- inventory_hostname in groups[service.group]
|
||||||
|
- service.enabled | bool
|
||||||
|
- config_json.changed | bool
|
||||||
|
or nova_conf.changed | bool
|
||||||
|
or policy_json.changed | bool
|
||||||
|
or nova_conductor_container.changed | bool
|
||||||
|
|
||||||
|
|
||||||
- name: Restart nova-consoleauth container
|
- name: Restart nova-consoleauth container
|
||||||
vars:
|
vars:
|
||||||
service_name: "nova-consoleauth"
|
service_name: "nova-consoleauth"
|
||||||
@ -190,54 +239,6 @@
|
|||||||
or policy_json.changed | bool
|
or policy_json.changed | bool
|
||||||
or nova_serialproxy_container.changed | bool
|
or nova_serialproxy_container.changed | bool
|
||||||
|
|
||||||
- name: Restart nova-scheduler container
|
|
||||||
vars:
|
|
||||||
service_name: "nova-scheduler"
|
|
||||||
service: "{{ nova_services[service_name] }}"
|
|
||||||
config_json: "{{ config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
nova_conf: "{{ nova_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
policy_json: "{{ policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
nova_scheduler_container: "{{ check_nova_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
kolla_docker:
|
|
||||||
action: "recreate_or_restart_container"
|
|
||||||
common_options: "{{ docker_common_options }}"
|
|
||||||
name: "{{ service.container_name }}"
|
|
||||||
image: "{{ service.image }}"
|
|
||||||
privileged: "{{ service.privileged | default(False) }}"
|
|
||||||
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
||||||
when:
|
|
||||||
- action != "config"
|
|
||||||
- inventory_hostname in groups[service.group]
|
|
||||||
- service.enabled | bool
|
|
||||||
- config_json.changed | bool
|
|
||||||
or nova_conf.changed | bool
|
|
||||||
or policy_json.changed | bool
|
|
||||||
or nova_scheduler_container.changed | bool
|
|
||||||
|
|
||||||
- name: Restart nova-conductor container
|
|
||||||
vars:
|
|
||||||
service_name: "nova-conductor"
|
|
||||||
service: "{{ nova_services[service_name] }}"
|
|
||||||
config_json: "{{ config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
nova_conf: "{{ nova_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
policy_json: "{{ policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
nova_conductor_container: "{{ check_nova_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
|
|
||||||
kolla_docker:
|
|
||||||
action: "recreate_or_restart_container"
|
|
||||||
common_options: "{{ docker_common_options }}"
|
|
||||||
name: "{{ service.container_name }}"
|
|
||||||
image: "{{ service.image }}"
|
|
||||||
privileged: "{{ service.privileged | default(False) }}"
|
|
||||||
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
||||||
when:
|
|
||||||
- action != "config"
|
|
||||||
- inventory_hostname in groups[service.group]
|
|
||||||
- service.enabled | bool
|
|
||||||
- config_json.changed | bool
|
|
||||||
or nova_conf.changed | bool
|
|
||||||
or policy_json.changed | bool
|
|
||||||
or nova_conductor_container.changed | bool
|
|
||||||
|
|
||||||
- name: Restart nova-compute container
|
- name: Restart nova-compute container
|
||||||
vars:
|
vars:
|
||||||
service_name: "nova-compute"
|
service_name: "nova-compute"
|
||||||
|
Loading…
Reference in New Issue
Block a user