SUSE / ha-sap-terraform-deployments

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

Integrate systemd-enabled SAP instances and SAP HostAgent #831

Open scmschmidt opened 2 years ago

scmschmidt commented 2 years ago

Starting end of March 2022 SAP starts to ship systemd support for SAP instances and the HostAgent. The schedule might still change, but the plan is:

The terraform deployment should be able to handle both type of instances and HostAgent implementations: the "classic" one and the one with systemd support. It is allowed and can be expected them to be mixed on a system, meaning some instances are system-enabled and others are not.

Details can be found in some SAP Notes (Not all of them are public available yet, so a C User might be needed.

lpinne commented 2 years ago

SUSE HA related aspects are explained in https://www.suse.com/c/handover-for-the-next-round-sap-on-suse-cluster-and-systemd-native-integration/ and man page SAPStartSrv_basiccluster(7). Basically the saphostagent.service needs to be enabled and running, but for all cluster controlled instances the SAP.service needs to be disabled and stopped. Of course instances need to be registered.

yeoldegrove commented 2 years ago

@scmschmidt None of the "support package patch levels" mentioned in this note are available to download for me https://launchpad.support.sap.com/#/notes/3115048

I cannot find 788 at all and e.g. latest patch level for 758 is 1000 which is below the advertised 1011 ... Is this simply not out yet?

scmschmidt commented 2 years ago

@yeoldegrove I have to check. SAP told me, that everything should be available by now.

scmschmidt commented 2 years ago

@yeoldegrove Sorry for the late reply. The SAP Kernel Release 788 is for Clouds and therefore not available as download. A SAP Kernel SAR file (SAPEXE*.SAR) will be released only in major steps. In between the additional files contain the patches. In case of 785 you have to download SAPEXE_100-80005374.SAR and also dw_124-80005374.sar which contains the Patch 124.

In "Content Info" (button in the last column called "Related Info") you can see what is in the file:

dw_124-80005374.sar
...
disp+work information

    kernel release                785
...
...
  [  ]  Sapstartsrv: Linux systemd support | 3115048 | 115 |  
...
yeoldegrove commented 2 years ago

@scmschmidt SAPEXE_100-80005374.SAR does not containt any systemd patch in its "content info" and also does not automatically create systemd units for me. Also trying to manually re-register the instance does not create systemd units (e.g. LD_LIBRARY_PATH=/usr/sap/HA1/ERS10/exe:$LD_LIBRARY_PATH;export LD_LIBRARY_PATH;/usr/sap/HA1/ERS10/exe/sapstartsrv pf=/usr/sap/HA1/SYS/profile/HA1_ERS10_sapha1er -systemd -reg).

Could it be that SAPEXE_100-80005374.SAR really does not include the patches yet https://launchpad.support.sap.com/#/softwarecenter/object/0020000000249732022 ? Where would I get an updated version. They still do not seem to be available in the launchpad yet.

scmschmidt commented 2 years ago

@yeoldegrove SAPEXE_100-80005374.SAR does not contain systemd support, yes. They are in the patches with patch level listed in the SAP Note. From "Content Info" list (button on the right), the ones with systemd support are: dw_utils_117-80005374.sar, sapwebgui_126-80005374.sar and dw_126-80005374.sar. Until SAP releases the next stack kernel, the current kernel (SAPEXE_100-80005374.SAR) has to be used and all subsequent patches need to be installed.