-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from yeoldegrove/feat/resources_maintenance
add possibility to run maintenance procedure on resources
- Loading branch information
Showing
5 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This is e.g. needed to be run on the initial HANA cluster node to detect a running HANA correctly. | ||
# It follows the maintenance procedures from `man 7 SAPHanaSR_maintenance_examples`. | ||
# Without it, a "end action monitor_clone with rc=8 (0.155.0)" might happen. | ||
# This is somewhat a new behaviour in SAPHanaSR-0.155.0-4.17.1. | ||
# | ||
# It might also be used by any other cluster resource, this is why it is generally available. | ||
# | ||
{%- from "cluster/map.jinja" import cluster with context -%} | ||
{% set host = grains['host'] %} | ||
{% if cluster.init == host %} | ||
{% if cluster.configure is defined and cluster.configure.template is defined and cluster.configure.template.parameters is defined %} | ||
{% set resources = cluster.configure.template.parameters.resources_maintenance|default([]) %} | ||
{% for resource in resources %} | ||
resource_maintenance: | ||
cmd.run: | ||
- name: crm resource maintenance {{ resource }} on | ||
# start after resources are defined | ||
- require: | ||
- configure-the-cluster | ||
wait_after_resource_maintenance: | ||
cmd.run: | ||
- name: cs_wait_for_idle --sleep 5 | ||
- require: | ||
- resource_maintenance | ||
resource_refresh: | ||
cmd.run: | ||
- name: crm resource refresh {{ resource }} | ||
- require: | ||
- wait_after_resource_maintenance | ||
wait_after_resource_refresh: | ||
cmd.run: | ||
- name: cs_wait_for_idle --sleep 5 | ||
- require: | ||
- resource_refresh | ||
resource_maintenance_off: | ||
cmd.run: | ||
- name: crm resource maintenance {{ resource }} off | ||
- require: | ||
- wait_after_resource_refresh | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} |
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
------------------------------------------------------------------- | ||
Wed Jun 03 11:25:12 UTC 2022 - Eike Waldt <[email protected]> | ||
|
||
- Version bump 0.4.6 | ||
* install ClusterTools2 | ||
* add possibility to run maintenance procedure on resources | ||
|
||
------------------------------------------------------------------- | ||
Wed May 25 12:12:57 UTC 2022 - Eike Waldt <[email protected]> | ||
|
||
|