-
Notifications
You must be signed in to change notification settings - Fork 96
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
Analyze Installation assistant YUM lock behavior #3067
Comments
Update ReportValidationThe environment is the following:
🟢 I have downloaded the 4.8.1 Wazuh Installation assistant and I could not reproduce the problem:
🟢 In 4.9.0, it is observed that the YUM lock behavior is reported twice but the installation was finished successfully:
|
Update ReportResearchIn the AL2 machine of the wazuh/wazuh#24874, I could reproduce the YUM lock problem:
|
Update ReportI have investigated the differences between the 4.8.1 and 4.9.0 Installation assistant and no differences that may impact into the YUM lock behavior were found. Analyzing the behaviorI have been investigating the behavior of the YUM lock when the Installation assistant is being executed, and I come up with the following conclusions:
In the following code, it is checked that the YUM lock is enabled, but no process is using YUM:
In another terminal:
|
Update ReportConclusions❌ In conclusion, the Installation Assistant will not manage, modify, or delete the YUM lock file due to potential system intrusion risks, as this file is an internal component of the system's package manager. 🟡 If this issue occurs again, we will report it as a known issue. 💻 This decision is based on tests conducted, which indicate that the problem appears to be random and not dependent on the AMI or the kernel version used. 🧪 If this behavior is reproduced in our testing, we should decide whether to delete the YUM lock manually or not in the testing process. Also, I have observed that if the 💡 Also, we should consider changing the OSs of the Installation assistant test, as we intend to use the latest OSs, we should consider changing AL2 to AL2023 and changing Ubuntu 22.04 to Ubuntu 24.04. This should be discussed with the management team. |
LGTM |
Description
During the 4.9.0-apha3 Wazuh Installation assistant test and this issue it was found that the assistant fails to install Wazuh in AL2 with a YUM lock unexpected behavior:
23/07/2024 11:13:38 INFO: Another process is using YUM. Waiting for it to release the lock. Next retry in 30 seconds (10/10)
This does not happen with the
v4.8.1
script.Tasks
v4.8.1
4.9.0
can generate this behaviorProvide a fix and test itThe text was updated successfully, but these errors were encountered: