nova: reduce playbooks runs to control/compute

During deployment or upgrades, there isn't a reason to deploy a
service after another.  There is no documented requirement for the
order of upgrades either.

We also start services in a specific order using the systemd_service
role which means that we can simplify this into two main role includes,
control plane and data plane (computes).  This is to make sure that
our upgrades are completed cleanly.

Depends-On: I506ba4fc6b134ef0b389a2647fe22ae6b1a17ace
Change-Id: I98ca698478e24b65b52b2b3b10052532b8425976
This commit is contained in:
Mohammed Naser 2019-04-05 20:39:11 -04:00
parent 33c4f9df3d
commit 89a031726e

View File

@ -16,39 +16,14 @@
- name: Install nova-conductor services - name: Install nova-conductor services
import_playbook: common-playbooks/nova.yml import_playbook: common-playbooks/nova.yml
vars: vars:
nova_hosts: "nova_conductor" nova_hosts: "nova_conductor:nova_scheduler:nova_api_os_compute:nova_api_placement:nova_api_metadata:nova_console"
nova_serial: "{{ nova_conductor_serial | default(['1', '100%']) }}" nova_serial: "{{ nova_conductor_serial | default(['1', '100%']) }}"
- name: Install nova-scheduler services
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_scheduler:!nova_conductor"
nova_serial: "{{ nova_scheduler_serial | default(['1', '100%']) }}"
- name: Install nova API services
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_api_os_compute:nova_api_placement:!nova_conductor:!nova_scheduler:!nova_consoleauth"
nova_serial: "{{ nova_api_serial | default(['1', '100%']) }}"
- name: Install nova console/metadata services
import_playbook: common-playbooks/nova.yml
vars:
nova_hosts: "nova_api_metadata:nova_console:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement"
nova_serial: "{{ nova_console_serial | default(['1', '100%']) }}"
- name: Install nova compute - name: Install nova compute
import_playbook: common-playbooks/nova.yml import_playbook: common-playbooks/nova.yml
vars: vars:
nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_consoleauth:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console" nova_hosts: "nova_compute:!nova_conductor:!nova_scheduler:!nova_api_os_compute:!nova_api_placement:!nova_api_metadata:!nova_console"
nova_serial: "{{ nova_compute_serial | default('100%') }}" nova_serial: "{{ nova_compute_serial | default('100%') }}"