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_hana_preconfigure/SLES: sap_hana_preconfigure_update needs validation/wait #791

Closed
marcelmamula opened this issue Jul 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@marcelmamula
Copy link
Contributor

Issue

Running sap_hana_preconfigure with sap_hana_preconfigure_update can cause significant changes to OS, resulting in longer kernel patch/upgrade process. This will result in failing sap_install_media_detect role when attempting to execute package module, while kernel is still being worked on.

Post-reboot patching visible in process list:

root      1163   950  0 13:10 ?        00:00:00 /usr/bin/python3 /usr/lib/zypp/plugins/commit/zyppnotify
root       950     1  0 13:10 ?        00:00:00 /usr/bin/zypper -n purge-kernels
root      1067     1  0 13:10 ?        00:00:00 gpg-agent --homedir /var/tmp/zypp.Hik3c0/zypp-trusted-krHyD8o2 --use-standard-socket --daemon

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

  1. Validation in sap_hana_preconfigure to ensure that package operations are completed, before ending role.
@marcelmamula marcelmamula added the bug Something isn't working label Jul 4, 2024
@marcelmamula marcelmamula changed the title sap_hana_preconfigure: sap_hana_preconfigure_update needs validation/wait sap_hana_preconfigure/SLES: sap_hana_preconfigure_update needs validation/wait Jul 4, 2024
marcelmamula added a commit that referenced this issue Jul 9, 2024
sap_hana_preconfigure/SLES: Zypper lock handler for #791
@marcelmamula
Copy link
Contributor Author

Resolved with #796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant