Closed davidcr01 closed 2 months ago
[root@ip-172-31-37-24 ec2-user]# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.5.20240805"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/amazon-linux-2023/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/linux/"
SUPPORT_URL="https://aws.amazon.com/premiumsupport/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
VENDOR_NAME="AWS"
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2028-03-15"
root@ip-172-31-40-250:/home/ubuntu# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
[root@ip-172-31-38-175 ec2-user]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.2 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.2 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"
[root@ip-172-31-38-60 ec2-user]# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.5.20240805"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/amazon-linux-2023/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/linux/"
SUPPORT_URL="https://aws.amazon.com/premiumsupport/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
VENDOR_NAME="AWS"
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2028-03-15"
[root@ip-172-31-37-24 ec2-user]# rpm -qa --last | head -n 20
wazuh-dashboard-4.9.0-1.x86_64 Mon Aug 12 09:58:13 2024
filebeat-7.10.2-1.x86_64 Mon Aug 12 09:55:36 2024
wazuh-manager-4.9.0-1.x86_64 Mon Aug 12 09:54:40 2024
wazuh-indexer-4.9.0-1.x86_64 Mon Aug 12 09:53:12 2024
gpg-pubkey-29111145-591cd381 Mon Aug 12 09:52:07 2024
The gpg
package is installed as part of the dependencies of the Installation Assistant. It's used to import the Wazuh GPG keys.
root@ip-172-31-40-250:/home/ubuntu# grep " install " /var/log/dpkg.log | tail
2024-08-12 09:54:25 install wazuh-indexer:amd64 <none> 4.9.0-1
2024-08-12 09:55:34 install wazuh-manager:amd64 <none> 4.9.0-1
2024-08-12 09:57:34 install filebeat:amd64 <none> 7.10.2
2024-08-12 09:58:06 install wazuh-dashboard:amd64 <none> 4.9.0-1
[root@ip-172-31-38-175 ec2-user]# rpm -qa --last | head -n 20
wazuh-dashboard-4.9.0-1.x86_64 Mon 12 Aug 2024 09:59:25 AM UTC
filebeat-7.10.2-1.x86_64 Mon 12 Aug 2024 09:56:30 AM UTC
wazuh-manager-4.9.0-1.x86_64 Mon 12 Aug 2024 09:55:35 AM UTC
wazuh-indexer-4.9.0-1.x86_64 Mon 12 Aug 2024 09:53:54 AM UTC
gpg-pubkey-29111145-591cd381 Mon 12 Aug 2024 09:52:50 AM UTC
The gpg
package is installed as part of the dependencies of the Installation Assistant. It's used to import the Wazuh GPG keys.
[root@ip-172-31-38-60 ec2-user]# rpm -qa --last | head -n 20
wazuh-dashboard-4.9.0-1.x86_64 Mon Aug 12 10:26:20 2024
filebeat-7.10.2-1.x86_64 Mon Aug 12 10:23:03 2024
wazuh-manager-4.9.0-1.x86_64 Mon Aug 12 10:22:12 2024
wazuh-indexer-4.9.0-1.x86_64 Mon Aug 12 10:00:58 2024
@wazuh/devel-devops we should consider changing the offline testing and using an offline VM, it is not consistent to test the offline functionality in an instance that has internet access (curl download commands), technically, although the script works, we are not testing this https://documentation.wazuh.com/current/deployment-options/offline-installation.html#offline-installation properly
[ec2-user@ip-172-31-34-52 ~]$ ping google.com
PING google.com (142.251.167.139) 56(84) bytes of data.
^C
--- google.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3106ms
[root@ip-172-31-38-175 ec2-user]# curl -sO https://packages-dev.wazuh.com/4.9/wazuh-install.sh
[root@ip-172-31-38-175 ec2-user]# chmod 744 wazuh-install.sh
[root@ip-172-31-38-175 ec2-user]# ./wazuh-install.sh -dw rpm
14/08/2024 08:27:35 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
14/08/2024 08:27:35 INFO: Verbose logging redirected to /var/log/wazuh-install.log
14/08/2024 08:27:36 INFO: Verifying that your system meets the recommended minimum hardware requirements.
14/08/2024 08:27:36 INFO: --- Download Packages ---
14/08/2024 08:27:36 INFO: Starting Wazuh packages download.
14/08/2024 08:27:36 INFO: Downloading Wazuh rpm packages for x86_64.
14/08/2024 08:27:39 INFO: The manager package was downloaded.
14/08/2024 08:27:40 INFO: The filebeat package was downloaded.
14/08/2024 08:27:43 INFO: The indexer package was downloaded.
14/08/2024 08:27:49 INFO: The dashboard package was downloaded.
14/08/2024 08:27:49 INFO: The packages are in wazuh-offline/wazuh-packages
14/08/2024 08:27:49 INFO: Downloading configuration files and assets.
14/08/2024 08:27:49 INFO: The resource https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH was downloaded.
14/08/2024 08:27:50 INFO: The resource https://packages-dev.wazuh.com/4.9/tpl/wazuh/filebeat/filebeat.yml was downloaded.
14/08/2024 08:27:50 INFO: The resource https://raw.githubusercontent.com/wazuh/wazuh/4.9.0/extensions/elasticsearch/7.x/wazuh-template.json was downloaded.
14/08/2024 08:27:50 INFO: The resource https://packages-dev.wazuh.com/pre-release/filebeat/wazuh-filebeat-0.4.tar.gz was downloaded.
14/08/2024 08:27:50 INFO: The configuration files and assets are in wazuh-offline.tar.gz
14/08/2024 08:29:12 INFO: You can follow the installation guide here https://documentation.wazuh.com/current/deployment-options/offline-installation.html
[root@ip-172-31-38-175 ec2-user]# curl -sO https://packages-dev.wazuh.com/4.9/config.yml
[root@ip-172-31-38-175 ec2-user]# vi config.yml
[root@ip-172-31-38-175 ec2-user]# ./wazuh-install.sh -g
14/08/2024 08:32:11 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
14/08/2024 08:32:11 INFO: Verbose logging redirected to /var/log/wazuh-install.log
14/08/2024 08:32:12 INFO: Verifying that your system meets the recommended minimum hardware requirements.
14/08/2024 08:32:13 INFO: --- Configuration files ---
14/08/2024 08:32:13 INFO: Generating configuration files.
14/08/2024 08:32:13 INFO: Generating the root certificate.
14/08/2024 08:32:14 INFO: Generating Admin certificates.
14/08/2024 08:32:15 INFO: Generating Wazuh indexer certificates.
14/08/2024 08:32:15 INFO: Generating Filebeat certificates.
14/08/2024 08:32:16 INFO: Generating Wazuh dashboard certificates.
14/08/2024 08:32:16 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
[root@ip-172-31-38-175 ec2-user]# scp -i test-ia-25170.pem -P 2200 wazuh-install-files.tar wazuh-offline.tar.gz ec2-user@172.31.34.52:/home/ec2-user/
wazuh-install-files.tar 100% 11KB 15.0MB/s 00:00
wazuh-offline.tar.gz 100% 1374MB 191.7MB/s 00:07
[root@ip-172-31-38-175 ec2-user]# scp -i test-ia-25170.pem -P 2200 wazuh-install.sh ec2-user@172.31.34.52:/home/ec2-user/
wazuh-install.sh 100% 183KB 86.4MB/s 00:00
[!CAUTION] I had to copy the
wazuh-install.sh
file also, but the documentation does not mention it. I opened this issue: https://github.com/wazuh/wazuh-documentation/issues/7670 :red_circle:
The installation of the Wazuh Indexer performed okay but the initiation of the cluster running the command bash wazuh-install.sh --start-cluster
failed due to this line where it has to download the Filebeat Wazuh Template using curl:
https://github.com/wazuh/wazuh-packages/blob/a438b4312a7ba5165b198b20aea06808e8dc1adf/unattended_installer/install_functions/indexer.sh#L190
The initiation of the cluster freezes on this message:
14/08/2024 08:51:43 INFO: Wazuh indexer cluster security configuration initialized.
[!CAUTION] I opened this issue addressing this problem: https://github.com/wazuh/wazuh-packages/issues/3072 :red_circle:
I downloaded and copied the wazuh-templates.json
on my local host and changed the code to take that file in order to continue with the test to verify if there were more issues like this.
[root@ip-172-31-34-52 ec2-user]# rpm -qa --last | head -n 20
wazuh-dashboard-4.9.0-1.x86_64 Wed Aug 14 10:00:39 2024
filebeat-7.10.2-1.x86_64 Wed Aug 14 09:52:55 2024
wazuh-manager-4.9.0-1.x86_64 Wed Aug 14 09:52:03 2024
wazuh-indexer-4.9.0-1.x86_64 Wed Aug 14 08:50:53 2024
Installation assistant information
Description
-a
option in the following OSs:-dw
option (Offline installation)Checks
Checks legend:
Status legend: :black_circle: - Pending/In progress :white_circle: - Skipped :red_circle: - Rejected :yellow_circle: - Known issue :green_circle: - Approved
Conclusion
Some issues were found and they were reported.
Auditor's validation
In order to close and proceed with the release or the next candidate version, the following auditors must give the black light to this RC.