Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tuttipazzo opened this issue Oct 23, 2023 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@tuttipazzo
Copy link

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

@tuttipazzo tuttipazzo added the bug Something isn't working label Oct 23, 2023
@tuttipazzo tuttipazzo changed the title NEW Feature: Implement susTkOver, susChkSrv, & susCostOpt NEW Feature: Implement susTkOver, susChkSrv, & susCostOpt srHooks Oct 23, 2023
@arbulu89 arbulu89 removed their assignment Oct 24, 2023
@yeoldegrove
Copy link
Collaborator

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.

@yeoldegrove yeoldegrove added enhancement New feature or request and removed bug Something isn't working labels Oct 30, 2023
@tuttipazzo
Copy link
Author

tuttipazzo commented Oct 31, 2023

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
Copy link
Collaborator

yeoldegrove commented Nov 8, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants