Running sap_hana_preconfigurewith sap_hana_preconfigure_updatecan cause significant changes to OS, resulting in longer kernel patch/upgrade process. This will result in failing sap_install_media_detectrole when attempting to execute package module, while kernel is still being worked on.
Error during sap_install_media_detect execution, when unzip was supposed to install.
TASK [/mnt/c/scripts/community.sap_install/roles/sap_install_media_detect : SAP Install Media Detect - Prepare - Ensure the presence of the 'unzip' package] ***
fatal: [h01hana0]: FAILED! => {"changed": false, "cmd": ["/usr/bin/zypper", "--quiet", "--non-interactive", "--xmlout", "--disable-repositories", "search", "--type", "package", "--match-exact", "--details", "--installed-only", "unzip"], "msg": "Zypper run command failed with return code 7.", "rc": 7, "stderr": "", "stderr_lines": [], "stdout": "<?xml version='1.0'?>\n<stream>\n<message type=\"error\">System management is locked by the application with pid 950 (/usr/bin/zypper).\nClose this application before trying again.</message>\n</stream>\n", "stdout_lines": ["<?xml version='1.0'?>", "<stream>", "<message type=\"error\">System management is locked by the application with pid 950 (/usr/bin/zypper).", "Close this application before trying again.</message>", "</stream>"]}
Solution proposal
Validation in sap_hana_preconfigure to ensure that package operations are completed, before ending role.
Issue
Running
sap_hana_preconfigure
withsap_hana_preconfigure_update
can cause significant changes to OS, resulting in longer kernel patch/upgrade process. This will result in failingsap_install_media_detect
role when attempting to execute package module, while kernel is still being worked on.Post-reboot patching visible in process list:
Error during
sap_install_media_detect
execution, when unzip was supposed to install.Solution proposal