Skip to content

Commit

Permalink
Merge pull request #142 from yeoldegrove/fix/hook+mm
Browse files Browse the repository at this point in the history
fixes for SAPHanaSR hook and Majority Maker
  • Loading branch information
yeoldegrove authored Jun 7, 2022
2 parents 3accf7c + 729f64b commit 734ff97
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="filename">saphanabootstrap-formula</param>
<param name="versionformat">0.10.0+git.%ct.%h</param>
<param name="versionformat">0.10.1+git.%ct.%h</param>
<param name="revision">%%VERSION%%</param>
</service>

Expand Down
10 changes: 4 additions & 6 deletions hana/ha_cluster.sls
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ remove_wrong_ha_hook_{{ sap_instance }}_sections_multi_target:
ha_dr_provider_SAPHanaSR:
- require:
- pkg: install_SAPHanaSR
- unless:
- fun: file.file_exists
path: sr_hook_multi_target
- onlyif:
- test -f {{ sr_hook_multi_target }}
remove_wrong_ha_hook_{{ sap_instance }}_options_multi_target:
ini.options_absent:
Expand Down Expand Up @@ -161,9 +160,8 @@ remove_wrong_ha_hook_{{ sap_instance }}_options:
- ha_dr_saphanasrmultitarget
- require:
- pkg: install_SAPHanaSR
- onlyif:
- fun: file.file_exists
path: sr_hook_multi_target
- unless:
- test -f {{ sr_hook_multi_target }}
# Configure system replication operation mode in the primary site
{% for secondary_node in hana.nodes if node.primary is defined and secondary_node.secondary is defined and secondary_node.secondary.remote_host == host %}
Expand Down
7 changes: 7 additions & 0 deletions saphanabootstrap-formula.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jun 06 18:31:32 UTC 2022 - Eike Waldt <[email protected]>

- Version bump 0.10.1
* fix hook removal conditions
* fix majority_maker code on case grain is empty

-------------------------------------------------------------------
Thu May 13 08:16:24 UTC 2022 - Eike Waldt <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion templates/cluster_resources.j2
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ colocation col_exporter_{{ sid }}_HDB{{ instance }} -inf: rsc_exporter_{{ sid }}

{%- endif %}

{%- if majority_maker != "" and majority_maker != "None" %}
{%- if majority_maker != "" and majority_maker != None and majority_maker != "None" %}
######################################
# majority maker
######################################
Expand Down

0 comments on commit 734ff97

Please sign in to comment.