SUSE / ha-sap-terraform-deployments

Automated SAP/HA Deployments in Public/Private Clouds
GNU General Public License v3.0
120 stars 88 forks source link

NEW Feature: Implement susTkOver, susChkSrv, & susCostOpt srHooks #910

Closed tuttipazzo closed 9 months ago

tuttipazzo commented 10 months ago

Used cloud platform AWS, GCP, Azure, libvirt

Used SLES4SAP version SLES15.SPx

Used client machine OS Leap/TW

Expected behaviour vs observed behaviour Nothing is failing. These new hooks should be included.

How to reproduce N/A

Logs N/A

yeoldegrove commented 10 months ago

The hook should be integrated in https://github.com/SUSE/saphanabootstrap-formula. Maybe one could think about an interface/switch to enable/disable certain hooks.

tuttipazzo commented 10 months ago

I see susTkOver from 2-node cluster I deployed back in late September. I had to manually add susChksrv 1 day ago so that's missing. But I agree with yeoldegrove that there needs ot be a switch to turn on/off some of the hooks.

yeoldegrove commented 9 months ago

@tuttipazzo https://github.com/SUSE/ha-sap-terraform-deployments/releases/tag/9.2.0 lets you define the following in terraform.tfvars:

# HANA HA/DR provider configuration
# See https://documentation.suse.com/sbp/all/single-html/SLES4SAP-hana-sr-guide-PerfOpt-15/#cha.s4s.hana-hook for details.
# The SAPHanaSR hook is always enabled.
# enable susTkOver hook (disabled by default)
# hana_ha_dr_sustkover_enabled = true
# enable susChkSrv hook (disabled by default)
# hana_ha_dr_suschksrv_enabled = true
# susChkSrv action on lost, see `man 7 susChkSrv.py` (Options: stop [default], fence)
# hana_ha_dr_suschksrv_action_on_lost = "fence"

This solves your use case.