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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

APT and YUM lock logic added to WIA #2577

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

davidcr01
Copy link
Contributor

Related issue
#1493

The aim of this PR is to add the YUM lock logic and improve the APT lock logic into the Wazuh Installation Assistant. This PR modifies the Installation Assistant with a check of the YUM and APT lock. If the lock exists, a message is generated and a retry code has been added.

The following tests have been performed. They are red because the Wazuh dashboard package for 4.8.0 does not work currently, but no errors were generated installing packages:

Ubuntu Focal: https://ci.wazuh.info/job/Test_unattended/4598
Ubuntu Bionic: https://ci.wazuh.info/job/Test_unattended/4597

馃煝 CentOS 7
[root@centos7 vagrant]# bash wazuh-install.sh -a -i
02/11/2023 17:37:41 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.0
02/11/2023 17:37:41 INFO: Verbose logging redirected to /var/log/wazuh-install.log
02/11/2023 17:37:57 WARNING: Hardware and system checks ignored.
02/11/2023 17:37:57 INFO: Wazuh web interface port will be 443.
02/11/2023 17:38:00 INFO: Wazuh development repository added.
02/11/2023 17:38:00 INFO: --- Configuration files ---
02/11/2023 17:38:00 INFO: Generating configuration files.
02/11/2023 17:38:02 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
02/11/2023 17:38:02 INFO: --- Wazuh indexer ---
02/11/2023 17:38:02 INFO: Starting Wazuh indexer installation.
02/11/2023 17:42:56 INFO: Wazuh indexer installation finished.
02/11/2023 17:42:56 INFO: Wazuh indexer post-install configuration finished.
02/11/2023 17:42:56 INFO: Starting service wazuh-indexer.
02/11/2023 17:43:23 INFO: wazuh-indexer service started.
02/11/2023 17:43:23 INFO: Initializing Wazuh indexer cluster security settings.
02/11/2023 17:43:33 INFO: Wazuh indexer cluster initialized.
02/11/2023 17:43:33 INFO: --- Wazuh server ---
02/11/2023 17:43:33 INFO: Starting the Wazuh manager installation.
02/11/2023 17:45:08 INFO: Wazuh manager installation finished.
02/11/2023 17:45:08 INFO: Starting service wazuh-manager.
02/11/2023 17:45:27 INFO: wazuh-manager service started.
02/11/2023 17:45:27 INFO: Starting Filebeat installation.
02/11/2023 17:45:51 INFO: Filebeat installation finished.
02/11/2023 17:45:53 INFO: Filebeat post-install configuration finished.
02/11/2023 17:45:53 INFO: Starting service filebeat.
02/11/2023 17:45:53 INFO: filebeat service started.
02/11/2023 17:45:53 INFO: --- Wazuh dashboard ---
02/11/2023 17:45:55 INFO: Installing chrome.
02/11/2023 17:47:20 INFO: --- Dependencies ---
02/11/2023 17:47:20 INFO: Installing xorg-x11-fonts-100dpi.
02/11/2023 17:47:29 INFO: Installing xorg-x11-fonts-75dpi.
02/11/2023 17:47:35 INFO: Installing xorg-x11-utils.
02/11/2023 17:47:42 INFO: Installing xorg-x11-fonts-cyrillic.
02/11/2023 17:47:47 INFO: Installing xorg-x11-fonts-Type1.
02/11/2023 17:47:52 INFO: Installing xorg-x11-fonts-misc.
02/11/2023 17:48:01 INFO: Starting Wazuh dashboard installation.
02/11/2023 17:51:06 INFO: Wazuh dashboard installation finished.
02/11/2023 17:51:06 INFO: Wazuh dashboard post-install configuration finished.
02/11/2023 17:51:06 INFO: Starting service wazuh-dashboard.
02/11/2023 17:51:06 INFO: wazuh-dashboard service started.
02/11/2023 17:51:11 INFO: Updating the internal users.
02/11/2023 17:51:20 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
02/11/2023 17:51:52 INFO: Initializing Wazuh dashboard web application.
02/11/2023 17:51:53 INFO: Wazuh dashboard web application initialized.
02/11/2023 17:51:53 INFO: --- Summary ---
02/11/2023 17:51:53 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
    User: admin
    Password: RH?r3ee2DsE3IjM8QsVMKB63.zra?Vv8
02/11/2023 17:51:53 INFO: Installation finished.

More testing has been done in:

@davidcr01 davidcr01 self-assigned this Nov 2, 2023
@c-bordon c-bordon merged commit fc8ff97 into 4.8.0 Nov 3, 2023
4 checks passed
@c-bordon c-bordon deleted the enhancement/1493-yum-apt-lock-management branch November 3, 2023 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants