Add {{role.name}}RemovalPoliciesMode parameter
This adds a new paramter to reset/update existing blacklisted nodes
set prior to this update with either node delete or using parameter
{{role.name}}RemovalPolicies.
Related-Bug: #1741053
Change-Id: I870d7605e35a7cda76d9de0e8830a87c898533d6
(cherry picked from commit b3b9b44dae
)
This commit is contained in:
parent
a42b885dc2
commit
b4779ec178
@ -201,6 +201,15 @@ parameters:
|
|||||||
doing an update which requires removal of specific resources.
|
doing an update which requires removal of specific resources.
|
||||||
Example format ComputeRemovalPolicies: [{'resource_list': ['0']}]
|
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:
|
{{role.name}}SchedulerHints:
|
||||||
type: json
|
type: json
|
||||||
description: Optional scheduler hints to pass to nova
|
description: Optional scheduler hints to pass to nova
|
||||||
@ -654,6 +663,7 @@ resources:
|
|||||||
properties:
|
properties:
|
||||||
count: {get_param: {{role.name}}Count}
|
count: {get_param: {{role.name}}Count}
|
||||||
removal_policies: {get_param: {{role.name}}RemovalPolicies}
|
removal_policies: {get_param: {{role.name}}RemovalPolicies}
|
||||||
|
removal_policies_mode: {get_param: {{role.name}}RemovalPoliciesMode}
|
||||||
resource_def:
|
resource_def:
|
||||||
type: OS::TripleO::{{role.name}}
|
type: OS::TripleO::{{role.name}}
|
||||||
properties:
|
properties:
|
||||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user