-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pacemaker: remove node on delete (SOC-11240)
On node delete, crowbar doesn't execute pacemaker barclamp due to default pacemaker proposal not having transitions attribute enabled for delete. Next, pacemaker needs to remove the node from the cluster prior to being deleted from crowbar. This change adds said feature. Migartion also added.
- Loading branch information
1 parent
e6f67e1
commit 6e1a375
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
chef/data_bags/crowbar/migrate/pacemaker/302_add_delete_transition.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def upgrade(template_attrs, template_deployment, attrs, deployment) | ||
deployment["config"]["transition_list"] = template_deployment["config"]["transition_list"] | ||
deployment["config"]["transitions"] = template_deployment["config"]["transitions"] | ||
return attrs, deployment | ||
end | ||
|
||
def downgrade(template_attrs, template_deployment, attrs, deployment) | ||
deployment["config"]["transition_list"] = template_deployment["config"]["transition_list"] | ||
deployment["config"]["transitions"] = template_deployment["config"]["transitions"] | ||
return attrs, deployment | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters