Add serial execution to all playbooks
Since OSA aims to do HA, it's important to run at least one copy of service at all times. Currently we do restart/run roles agaist all hosts inside a group for most of the services. This cause global service interruption if run without limit until service is restarted. To avoid this from happening, we add serial execution globally for all services with ability to override that behaviour. Change-Id: I5f6b8f9de32124a363cfe2c6191a4971f528cd70
This commit is contained in:
parent
464d7e5d36
commit
6e9da4753a
@ -22,6 +22,7 @@
|
||||
- name: Install etcd server cluster
|
||||
hosts: etcd
|
||||
gather_facts: false
|
||||
serial: "{{ etcd_serial | default(1) }}"
|
||||
user: root
|
||||
pre_tasks:
|
||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||
|
@ -22,7 +22,7 @@
|
||||
- name: Install galera server
|
||||
hosts: galera_all
|
||||
gather_facts: false
|
||||
serial: 1
|
||||
serial: "{{ galera_serial | default(1) }}"
|
||||
user: root
|
||||
pre_tasks:
|
||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||
|
@ -22,7 +22,7 @@
|
||||
- name: haproxy base config
|
||||
hosts: haproxy
|
||||
gather_facts: false
|
||||
serial: "50%"
|
||||
serial: "{{ haproxy_serial | default('50%') }}"
|
||||
user: root
|
||||
pre_tasks:
|
||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install memcached
|
||||
hosts: memcached
|
||||
gather_facts: false
|
||||
serial: "{{ memcached_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
pre_tasks:
|
||||
- include_tasks: "common-tasks/os-{{ container_tech | default('lxc') }}-container-setup.yml"
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install the aodh components
|
||||
hosts: aodh_all
|
||||
gather_facts: false
|
||||
serial: "{{ aodh_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Installation and setup of barbican
|
||||
hosts: barbican_all
|
||||
gather_facts: false
|
||||
serial: "{{ barbican_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install blazar components
|
||||
hosts: blazar_all
|
||||
gather_facts: false
|
||||
serial: "{{ blazar_serial | default(['1','100%']) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install the ceilometer components
|
||||
hosts: ceilometer_all
|
||||
gather_facts: false
|
||||
serial: "{{ ceilometer_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
- "defaults/repo_packages/openstack_services.yml"
|
||||
|
@ -25,6 +25,7 @@
|
||||
- name: Install designate server
|
||||
hosts: designate_all
|
||||
gather_facts: false
|
||||
serial: "{{ designate_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install Gnocchi components
|
||||
hosts: gnocchi_all
|
||||
gather_facts: false
|
||||
serial: "{{ gnocchi_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install heat server
|
||||
hosts: heat_all
|
||||
gather_facts: false
|
||||
serial: "{{ heat_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
tags:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install horizon server
|
||||
hosts: horizon_all
|
||||
gather_facts: false
|
||||
serial: "{{ horizon_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Installation and setup of Ironic
|
||||
hosts: ironic_all
|
||||
gather_facts: false
|
||||
serial: "{{ ironic_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -26,6 +26,7 @@
|
||||
hosts: magnum_all
|
||||
user: root
|
||||
gather_facts: false
|
||||
serial: "{{ magnum_serial | default(['1','100%']) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
- "defaults/repo_packages/openstack_services.yml"
|
||||
|
@ -19,6 +19,7 @@
|
||||
- name: Gather manila facts
|
||||
hosts: manila_all
|
||||
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
||||
serial: "{{ manila_serial | default(['1','100%']) }}"
|
||||
tags:
|
||||
- always
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Setup corosync cluster
|
||||
hosts: masakari_monitor
|
||||
gather_facts: false
|
||||
serial: "{{ masakari_monitor_serial | default('100%') }}"
|
||||
user: root
|
||||
vars:
|
||||
pacemaker_corosync_group: masakari_monitor
|
||||
@ -42,6 +43,7 @@
|
||||
- name: Install the masakari components
|
||||
hosts: masakari_all
|
||||
gather_facts: false
|
||||
serial: "{{ masakari_api_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
- "defaults/repo_packages/openstack_services.yml"
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install mistral components
|
||||
hosts: mistral_all
|
||||
gather_facts: false
|
||||
serial: "{{ mistral_serial | default(['1','100%']) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install murano components
|
||||
hosts: murano_all
|
||||
gather_facts: false
|
||||
serial: "{{ murano_serial | default(['1','100%']) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install octavia server
|
||||
hosts: octavia_all
|
||||
gather_facts: false
|
||||
serial: "{{ octavia_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install placement components
|
||||
hosts: placement_all
|
||||
gather_facts: false
|
||||
serial: "{{ placement_api_serial | default(['1','100%']) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
|
@ -20,6 +20,7 @@
|
||||
- name: Install sahara server
|
||||
hosts: sahara_all
|
||||
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
||||
serial: "{{ sahara_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install senlin services
|
||||
hosts: senlin_all
|
||||
gather_facts: false
|
||||
serial: "{{ senlin_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install the tacker components
|
||||
hosts: tacker_all
|
||||
gather_facts: false
|
||||
serial: "{{ tacker_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -25,6 +25,7 @@
|
||||
- name: Install trove server
|
||||
hosts: trove_all
|
||||
gather_facts: false
|
||||
serial: "{{ trove_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install the zun components
|
||||
hosts: zun_all
|
||||
gather_facts: false
|
||||
serial: "{{ zun_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
vars_files:
|
||||
- "defaults/repo_packages/openstack_services.yml"
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
- name: Create and configure qdrouterd container
|
||||
hosts: "{{ qdrouterd_host_group | default('qdrouterd_all') }}"
|
||||
serial: 1
|
||||
serial: "{{ qdrouterd_serial | default(1) }}"
|
||||
gather_facts: false
|
||||
user: root
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
- name: Create and configure rabbitmq container
|
||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}"
|
||||
serial: 1
|
||||
serial: "{{ rabbitmq_serial | default('20%') }}"
|
||||
gather_facts: false
|
||||
user: root
|
||||
pre_tasks:
|
||||
@ -56,7 +56,7 @@
|
||||
- name: Install rabbitmq server
|
||||
hosts: "{{ rabbitmq_host_group | default('rabbitmq_all') }}"
|
||||
gather_facts: false
|
||||
serial: 20%
|
||||
serial: "{{ rabbitmq_serial | default('20%') }}"
|
||||
user: root
|
||||
roles:
|
||||
- role: "rabbitmq_server"
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Setup repo servers
|
||||
hosts: repo_all
|
||||
gather_facts: false
|
||||
serial: "{{ repo_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
pre_tasks:
|
||||
- name: End playbook
|
||||
|
@ -22,6 +22,7 @@
|
||||
- name: Install unbound DNS resolvers
|
||||
hosts: unbound
|
||||
gather_facts: false
|
||||
serial: "{{ unbound_serial | default(['1','100%']) }}"
|
||||
user: root
|
||||
pre_tasks:
|
||||
- include_tasks: common-tasks/os-log-dir-setup.yml
|
||||
|
@ -23,6 +23,7 @@
|
||||
hosts: utility_all
|
||||
user: root
|
||||
gather_facts: false
|
||||
serial: "{{ utility_serial | default(['1','100%']) }}"
|
||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||
vars_files:
|
||||
- "defaults/repo_packages/openstack_services.yml"
|
||||
|
Loading…
Reference in New Issue
Block a user