community.sap_install icon indicating copy to clipboard operation
community.sap_install copied to clipboard

sap_swpm: The task `SAP SWPM Pre Install - Check availability of SWPM` can fail

Open berndfinger opened this issue 8 months ago • 1 comments

Ansible Role

sap_swpm

OS Family

N/A

Ansible Controller - Python version

Python 3.13.2

Ansible-core version

ansible [core 2.16.14]

Bug Description

When running the role sap_swpm while there is more than one file SWPM*SAR in the directory specified by sap_swpm_swpm_path, the role fails in task SAP SWPM Pre Install - Check availability of SWPM.

After ensuring that in this directory there is only one file with the pattern SWPM*SAR, the role proceeds as expected.

Bug reproduction

  1. Download and place two different files with the pattern SWPM*SAR in the directory specified by sap_swpm_swpm_path, for example: SWPM20SP20_1-70003174.SAR and SWPM20SP20_1-80003424.SAR.
  2. Run the playbook which calls the role sap_swpm.
  3. Wait until the playbook exits at the failing task.

Community participation

Happy to implement this bug fix

berndfinger avatar Apr 02 '25 14:04 berndfinger

If this is being updated, as a further precaution it should also check the SWPM file is the correct ELF compile as the target host - i.e. x86_64, ppc64le, s390x. Given above is 2 different SWPM compressed archives for different CPU Arch

sean-freeman avatar Apr 03 '25 21:04 sean-freeman