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

sap_ha_pacemaker_cluster: fix NWAS #972

Merged
merged 7 commits into from
Feb 25, 2025

Conversation

ja9fuchs
Copy link
Contributor

@ja9fuchs ja9fuchs commented Feb 14, 2025

Fix: SAPStartSrv monitor

The SAPStartSrv monitor operation should not run on an interval, only for a probe once at start. The added operation parameters will make sure that the monitor operation is disabled.
To make it very clear that the interval=0 is not a mistake, the enabled parameter is set to false as well.

Before:

monitor: rsc_SAPStartSrv_ELF_ERS33-monitor-interval-120s
  interval=120s timeout=20s

After:

monitor: rsc_SAPStartSrv_ELF_ERS33-monitor-interval-0s
  interval=0s timeout=20s enabled=0

This resulting config remains active on RHEL.
Currently the SUSE post-inst deletes all operations afterwards, so this change should not make any difference there.

Reference:

If false, ignore this operation definition.
https://clusterlabs.org/projects/pacemaker/doc/2.1/Pacemaker_Explained/singlehtml/#operation-properties

Fix: NWAS pre/post workflow

New file for NWAS (A)SCS/ERS pre-steps for changes to be run before the cluster is installed.
This contains...

  • Instance systemd registration is now only run when the systemd service
    does not exist yet. This prevents unnecessary re-registration.

  • Some tasks were moved from post-installation to pre-installation, to
    safely run them before the cluster is installed. This prevents some
    conflicts that occur after the cluster already has control over the
    instances.

The SAPStartSrv monitor operation should not run on an interval, only
for a probe once at start. The added operation parameters will make sure
that the monitor operation is disabled.
To make it very clear that the interval=0 is not a mistake, the
`enabled` parameter is set to `false` as well.
@ja9fuchs
Copy link
Contributor Author

Pushed a fix and included a bunch of additional tags to be able to run only the preparations and ha_cluster.

@ja9fuchs ja9fuchs changed the title sap_ha_pacemaker_cluster: fix SAPStartSrv monitor sap_ha_pacemaker_cluster: fix NWAS Feb 18, 2025
- Instance systemd registration is now only run when the systemd service
  does not exist yet. This prevents unnecessary re-registration.

- Some tasks were moved from post-installation to pre-installation, to
  safely run them before the cluster is installed. This prevents some
  conflicts that occur after the cluster already has control over the
  instances.
Creating the (optional) ha_cluster parameter config file is now part of the
steps run before the actual cluster installation and included in the
"pre_ha_cluster" tag. Previously it was run at the very end and if a post-step
failed the config review file would be missing.
Previously, if the host_type contained a HANA type it would also include
the vars file here. This change limits the scope to NWAS types.
The connector package is now added with a conditional to the 'nwas'
package dictionary key. It did not work in the nwas vars combination
task.
Not a real issue, but it is cleaner to remove the maintenance attribute
when it is disabled and not display it anymore.
@ja9fuchs
Copy link
Contributor Author

A few more fixes added. Some others are still being clarified.

- additional resource cleanup task before the restarts take place
- restart SAPInstance resource, not SAPStartSrv, unrelated to simple
  mount
Copy link
Contributor

@marcelmamula marcelmamula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Tested on SLES4SAP 15 SP6 on AWS

@ja9fuchs ja9fuchs merged commit 2f6f031 into sap-linuxlab:dev Feb 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants