Force ansible serial to 1 for the Controller
By introducing update_serial variable we parallelize update
execution on non-pacemaker enabled nodes. Custom role data users
need to update their role files. By default we do serial 1 making
sure nothing changes for users who didn't update their role data.
Resolves: rhbz#1652057
Closes-Bug: #1831617
Change-Id: I4ee0110a6c2b9466d81e37e5df27f5f81a6eceb5
(cherry picked from commit a59a188a6b
)
This commit is contained in:
parent
c09932d808
commit
cfbf68bdac
|
@ -560,9 +560,10 @@ outputs:
|
|||
gather_facts: no
|
||||
tasks:
|
||||
- include_vars: global_vars.yaml
|
||||
- hosts: overcloud
|
||||
{%- for role in roles %}
|
||||
- hosts: {{role.name}}
|
||||
name: Run update
|
||||
serial: {{ deploy_serial | default(1) }}
|
||||
serial: {{ role.update_serial | default(1) }}
|
||||
gather_facts: no
|
||||
vars:
|
||||
tripleo_minor_update: true
|
||||
|
@ -571,10 +572,8 @@ outputs:
|
|||
with_sequence: start=0 end={{update_steps_max-1}}
|
||||
loop_control:
|
||||
loop_var: step
|
||||
{%- for role in roles %}
|
||||
- include: {{role.name}}/host_prep_tasks.yaml
|
||||
when: role_name == '{{role.name}}'
|
||||
{%- endfor %}
|
||||
- include: common_deploy_steps_tasks.yaml
|
||||
with_sequence: start=1 end={{deploy_steps_max-1}}
|
||||
loop_control:
|
||||
|
@ -583,6 +582,7 @@ outputs:
|
|||
with_sequence: start=0 end={{post_update_steps_max-1}}
|
||||
loop_control:
|
||||
loop_var: step
|
||||
{%- endfor %}
|
||||
pre_upgrade_rolling_steps_tasks: |
|
||||
{%- for role in roles %}
|
||||
- include: {{role.name}}/pre_upgrade_rolling_tasks.yaml
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
upgrade:
|
||||
- |
|
||||
The new role variable update_serial is introduced
|
||||
allowing parallel update execution. On Controller
|
||||
role this variable defaults to 1 as pacemaker
|
||||
has to be taken down and up in rolling fashion.
|
||||
The default value is 25 as that is default value
|
||||
for parallel ansible execution used by tripleo.
|
|
@ -10,6 +10,7 @@
|
|||
- StorageMgmt
|
||||
uses_deprecated_params: False
|
||||
deprecated_nic_config_name: 'cinder-storage.yaml'
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
- Storage
|
||||
- StorageMgmt
|
||||
HostnameFormatDefault: '%stackname%-ceph-all-%index%'
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
- Storage
|
||||
- StorageMgmt
|
||||
HostnameFormatDefault: '%stackname%-ceph-file-%index%'
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
- Storage
|
||||
- StorageMgmt
|
||||
HostnameFormatDefault: '%stackname%-ceph-object-%index%'
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
- StorageMgmt
|
||||
uses_deprecated_params: False
|
||||
deprecated_nic_config_name: 'ceph-storage.yaml'
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
deprecated_server_resource_name: 'NovaCompute'
|
||||
deprecated_nic_config_name: 'compute.yaml'
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
disable_constraints: True
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::AuditD
|
||||
- OS::TripleO::Services::CACerts
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
HostnameFormatDefault: '%stackname%-novacompute-dvr-%index%'
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
disable_upgrade_deployment: True
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
disable_upgrade_deployment: True
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
HostnameFormatDefault: '%stackname%-lionovacompute-%index%'
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
TunedProfileName: "cpu-partitioning"
|
||||
NovaLibvirtRxQueueSize: 1024
|
||||
NovaLibvirtTxQueueSize: 1024
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
NovaLibvirtRxQueueSize: 1024
|
||||
NovaLibvirtTxQueueSize: 1024
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
NovaLibvirtRxQueueSize: 1024
|
||||
NovaLibvirtTxQueueSize: 1024
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
NovaLibvirtRxQueueSize: 1024
|
||||
NovaLibvirtTxQueueSize: 1024
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
KernelArgs: "" # these must be set in an environment file or similar
|
||||
IsolCpusList: "" # according to the hardware of real-time nodes
|
||||
NovaVcpuPinSet: "" #
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
disable_upgrade_deployment: True
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "cpu-partitioning"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
ImageDefault: overcloud-realtime-compute
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "realtime-virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
deprecated_param_flavor: 'OvercloudControlFlavor'
|
||||
deprecated_param_image: 'controllerImage'
|
||||
deprecated_nic_config_name: 'controller.yaml'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AodhApi
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
- Tenant
|
||||
default_route_networks: ['External']
|
||||
HostnameFormatDefault: '%stackname%-controller-%index%'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::AodhApi
|
||||
- OS::TripleO::Services::AodhEvaluator
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
deprecated_param_extraconfig: 'controllerExtraConfig'
|
||||
deprecated_param_flavor: 'OvercloudControlFlavor'
|
||||
deprecated_param_image: 'controllerImage'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AodhApi
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
- Tenant
|
||||
default_route_networks: ['External']
|
||||
HostnameFormatDefault: '%stackname%-controller-%index%'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::AodhApi
|
||||
- OS::TripleO::Services::AodhEvaluator
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
- Tenant
|
||||
default_route_networks: ['External']
|
||||
HostnameFormatDefault: '%stackname%-controller-%index%'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AodhApi
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
deprecated_param_extraconfig: 'controllerExtraConfig'
|
||||
deprecated_param_flavor: 'OvercloudControlFlavor'
|
||||
deprecated_param_image: 'controllerImage'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AodhApi
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
networks:
|
||||
- InternalApi
|
||||
HostnameFormatDefault: '%stackname%-database-%index%'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
HostnameFormatDefault: '%stackname%-hci-ceph-all-%index%'
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
HostnameFormatDefault: '%stackname%-hci-ceph-file-%index%'
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
HostnameFormatDefault: '%stackname%-hci-ceph-mon-%index%'
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
HostnameFormatDefault: '%stackname%-hci-ceph-object-%index%'
|
||||
RoleParametersDefault:
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
- InternalApi
|
||||
- Storage
|
||||
HostnameFormatDefault: '%stackname%-ironic-%index%'
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
Standalone messaging role with RabbitMQ being managed via Pacemaker
|
||||
networks:
|
||||
- InternalApi
|
||||
update_serial: 1
|
||||
HostnameFormatDefault: '%stackname%-messaging-%index%'
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
- InternalApi
|
||||
- Tenant
|
||||
HostnameFormatDefault: '%stackname%-networker-%index%'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
- InternalApi
|
||||
- Storage
|
||||
HostnameFormatDefault: '%stackname%-novacontrol-%index%'
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::AuditD
|
||||
- OS::TripleO::Services::CACerts
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
deprecated_param_flavor: 'OvercloudSwiftStorageFlavor'
|
||||
deprecated_nic_config_name: 'swift-storage.yaml'
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
- InternalApi
|
||||
- Storage
|
||||
HostnameFormatDefault: '%stackname%-telemetry-%index%'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AodhApi
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
deprecated_param_flavor: 'OvercloudControlFlavor'
|
||||
deprecated_param_image: 'controllerImage'
|
||||
deprecated_nic_config_name: 'controller.yaml'
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AodhApi
|
||||
|
@ -201,6 +202,7 @@
|
|||
deprecated_server_resource_name: 'NovaCompute'
|
||||
deprecated_nic_config_name: 'compute.yaml'
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
@ -258,6 +260,7 @@
|
|||
- StorageMgmt
|
||||
uses_deprecated_params: False
|
||||
deprecated_nic_config_name: 'cinder-storage.yaml'
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
@ -306,6 +309,7 @@
|
|||
deprecated_param_flavor: 'OvercloudSwiftStorageFlavor'
|
||||
deprecated_nic_config_name: 'swift-storage.yaml'
|
||||
disable_upgrade_deployment: True
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
@ -345,6 +349,8 @@
|
|||
- StorageMgmt
|
||||
uses_deprecated_params: False
|
||||
deprecated_nic_config_name: 'ceph-storage.yaml'
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
ServicesDefault:
|
||||
- OS::TripleO::Services::Aide
|
||||
- OS::TripleO::Services::AuditD
|
||||
|
|
Loading…
Reference in New Issue