diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml index cecd3c5abd..dcdf0d30fb 100644 --- a/overcloud.j2.yaml +++ b/overcloud.j2.yaml @@ -201,6 +201,15 @@ parameters: doing an update which requires removal of specific resources. Example format ComputeRemovalPolicies: [{'resource_list': ['0']}] + {{role.name}}RemovalPoliciesMode: + default: append + type: string + description: > + How to handle change to RemovalPolicies for {{role.name}} + ResourceGroup when doing an update. Default mode 'append' will + append to the existing blacklist and 'update' would replace + the blacklist. + {{role.name}}SchedulerHints: type: json description: Optional scheduler hints to pass to nova @@ -653,6 +662,7 @@ resources: properties: count: {get_param: {{role.name}}Count} removal_policies: {get_param: {{role.name}}RemovalPolicies} + removal_policies_mode: {get_param: {{role.name}}RemovalPoliciesMode} resource_def: type: OS::TripleO::{{role.name}} properties: diff --git a/releasenotes/notes/add-removal-policies-mode-6869362fbeed2cd2.yaml b/releasenotes/notes/add-removal-policies-mode-6869362fbeed2cd2.yaml new file mode 100644 index 0000000000..861555cdbe --- /dev/null +++ b/releasenotes/notes/add-removal-policies-mode-6869362fbeed2cd2.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + The parameter {{role.name}}RemovalPoliciesMode can be set to 'update' to + reset the existing blacklisted nodes in heat. This will help re-use the + node indexes when required.