-
Notifications
You must be signed in to change notification settings - Fork 62
sap_ha_pacemaker_cluster: Add support for clustered WebDisp systems #929
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
Conversation
@rob0d I see you created branch only 6 days ago so it should not be problem in regards to being out of sync.
We cannot currently look into code as those |
@rob0d Webdispatcher is usually such tiny system that it is most likely bolted on some existing system, where cluster can be already. |
Hi @marcelmamula, |
It can be used as a standalone cluster, but it's rarely worth it. Generally it will be installed on ASCS/ERS cluster via:
Or with any other combination of cluster types. I've only tested it with ASCS/ERS. |
This is actually first case of |
I think the way you guys did this is genius as it allows different combinations of cluster deployments. |
@rob0d I checked your commit. You have accidentally applied redundant carriage return characters It looks like this in the diff on a terminal:
There is plenty of info in web searches how to get rid of this. When cleaned up, please update your commit with the fixed files and it should look better. :) |
Aaargh. :Facepalm: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately those Windows LF characters are still present. The last commit added a few other changes - which also contain the ^M LF at the end of the changed lines.
Edit: It looks like the last commit was aimed at PR #922 in response to Marcel's change request.
@rob0d Please check again and update the PR with a fix of the extra LF chars.
Please also rebase your branch, since I had merged other changes in the meanwhile, some of which concerned same files.
@rob0d Would this help you in some way to avoid adding the LF characters when working on Windows? |
@rob0d I am also working on Windows laptop, but I do all my development on WSL2 with Tumbleweed underneath, which gives me ability to do ansible linting (which does not work on Windows natively) and it removes all windows characters from equation. |
I use the following instructions for Windows: If I get a CRLF problem, I use:
|
Sorry guys & @ja9fuchs, |
@rob0d Possibly easier to use |
@sean-freeman This is git college level. I'm barely at git high-school. Will try. |
Solves issue sap-linuxlab#909. Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Also slightly modify the variable description. Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
…g and setting Fixes issue sap-linuxlab#907. Signed-off-by: Bernd Finger <[email protected]>
... to new file tasks/post_install/sum_push_to_finish.yml Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
…anged_when to false to fix lint errors
…andling for up-to-date installations
Fixes issue sap-linuxlab#941. Signed-off-by: Bernd Finger <[email protected]>
Fixes issue sap-linuxlab#955. Signed-off-by: Bernd Finger <[email protected]>
…ools Relates to sap-linuxlab#957. Signed-off-by: Bernd Finger <[email protected]>
Start order when ASCS and ERS are down does not matter. After an ASCS failover, however, ERS should stay until ASCS has been started. ASCS needs to read enqueue data from ERS at start.
- Moved default stonith setup into block to share conditionals. - New: Default location constraints when fence resources are defined per host - prevent per-host-fence resources from running on the targeted node.
1. When using the systemd start framework for SAP instances, the instance services must be registered on all nodes they are going to run on. This creates the systemd units consistently. 2. When using the SAPStartSrv resource, the related systemd units 'sapping' and 'sappong' must be enabled. + For convenience: tags added to enable role execution just for the NWAS post-installation tasks.
- Applies the same changes as for ASCS/ERS. - Moved task for sapservices file comments to after systemd unit registration to catch new entries too.
- fixed a conditional that failed in check-mode - added tag to allow running in check-mode without executing ha_cluster
During the previous change of the stonith code a conditional was removed that did not apply to the GCP default, but is required for other platform default stonith resources that use host maps.
This fixes the HANA VIP colocation constraint conditional to always apply the base score and recalculate only when HANA-VIP resource groups are present in the definition. Assigning new values inside blocks/loops does not work (anymore) and and a namespace object has to be used instead. Reference: https://jinja.palletsprojects.com/en/latest/templates/#assignments
Same as in commit c6935e4, but for the task about the read-only VIP.
- fixes the hook dict definition for mixed setups - adds a check to prevent invalid host type combinations
For some reason the LSR collection variable is in the way of the ansible syntax-check of some tools, when the task that calls the ha_cluster LSR uses `import_role`. The same syntax works without errors when the task uses `include_role` instead. Fixes galaxy-importer error "internal-error: Unexpected error code 1".
Fixes sap-linuxlab#969. Signed-off-by: Bernd Finger <[email protected]>
- added .ansible/ to excludes, this is auto-created by pre-commit and contains the collection, on which the role excludes do not work - sap_hostagent: removed `ansible_become` from defaults, it does not belong in the role but in the playbook, and it triggers the no-role-prefix rule - sap_hostagent: changed some truthy values for consistency - sap_hostagent linting is fine now, it is commented out in the exclude list
It all went horribly wrong. Wasted 2 hours. Started from scratch with a new branch and PR as I don't know how to fix it... |
Hi all,
@marcelmamula @ja9fuchs
This PR adds option to configure a clustered SAP Web Dispatcher system.
Rationale: SAP WebDisp (WD) needs to be resilient in the same way Central Services (ASCS) do.
In cloud environments resiliency is generally achieved by installing multiple WD instances and putting a load balancer in front of them. However, with on-prem deployments load balancer is usually an overkill for small to medium deployments as it can have impact on supportability and costs. So specifically with on-prem bare-metal and VMware installations in mind this PR adds supports for clustered WDs.
Thanks to the clever way the ha_pacemaker_cluster role is written, it was relatively easy to add another host type (
sap_ha_pacemaker_cluster_host_type
):sap_webdisp
to achieve it.As far as I can tell (tested on 8 systems) it is completely non-impacting enhancement and can be used stand-alone or together with other cluster host types (mainly nwas_abap_ascs_ers).
It was tested on-prem only and may need a minimal enhancement for different cloud providers. Although I am not sure if there is a usage case for that.
The minimal input for it to work is as the following:
Note: For some reason Github has decided that few files can't be merged automatically and is marking the whole file as different even though only 1 line was changed. I'm not sure if I've done something wrong, but I can't see it. Any advice would be appreciated.