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

Post publication live checks for 4.5.3 #4597

Closed
13 tasks done
davidjiglesias opened this issue Oct 10, 2023 · 4 comments
Closed
13 tasks done

Post publication live checks for 4.5.3 #4597

davidjiglesias opened this issue Oct 10, 2023 · 4 comments

Comments

@davidjiglesias
Copy link
Member

davidjiglesias commented Oct 10, 2023

Description

This issue attempts to ensure the publication process is correct, attempting checks and live tests for published packages and images.

Tasks

@rauldpm
Copy link
Member

rauldpm commented Oct 10, 2023

Check if the script of Wazuh Installation Assistant makes reference to the last version 4.5.3 internally 🟢

[root@centos71 vagrant]# curl -sO https://packages.wazuh.com/4.5/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
10/10/2023 14:12:58 INFO: Starting Wazuh installation assistant. Wazuh version: 4.5.3
10/10/2023 14:12:58 INFO: Verbose logging redirected to /var/log/wazuh-install.log
10/10/2023 14:13:03 INFO: --- Dependencies ---
10/10/2023 14:13:03 INFO: Installing lsof.
10/10/2023 14:13:09 INFO: Wazuh web interface port will be 443.
10/10/2023 14:13:10 INFO: Wazuh repository added.
10/10/2023 14:13:10 INFO: --- Configuration files ---
10/10/2023 14:13:10 INFO: Generating configuration files.
10/10/2023 14:13:10 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
10/10/2023 14:13:10 INFO: --- Wazuh indexer ---
10/10/2023 14:13:10 INFO: Starting Wazuh indexer installation.
10/10/2023 14:14:23 INFO: Wazuh indexer installation finished.
10/10/2023 14:14:23 INFO: Wazuh indexer post-install configuration finished.
10/10/2023 14:14:23 INFO: Starting service wazuh-indexer.
10/10/2023 14:14:30 INFO: wazuh-indexer service started.
10/10/2023 14:14:30 INFO: Initializing Wazuh indexer cluster security settings.
10/10/2023 14:14:40 INFO: Wazuh indexer cluster initialized.
10/10/2023 14:14:40 INFO: --- Wazuh server ---
10/10/2023 14:14:40 INFO: Starting the Wazuh manager installation.
10/10/2023 14:15:09 INFO: Wazuh manager installation finished.
10/10/2023 14:15:09 INFO: Starting service wazuh-manager.
10/10/2023 14:15:21 INFO: wazuh-manager service started.
10/10/2023 14:15:21 INFO: Starting Filebeat installation.
10/10/2023 14:15:26 INFO: Filebeat installation finished.
10/10/2023 14:15:26 INFO: Filebeat post-install configuration finished.
10/10/2023 14:15:26 INFO: Starting service filebeat.
10/10/2023 14:15:26 INFO: filebeat service started.
10/10/2023 14:15:26 INFO: --- Wazuh dashboard ---
10/10/2023 14:15:26 INFO: Starting Wazuh dashboard installation.
10/10/2023 14:16:15 INFO: Wazuh dashboard installation finished.
10/10/2023 14:16:15 INFO: Wazuh dashboard post-install configuration finished.
10/10/2023 14:16:15 INFO: Starting service wazuh-dashboard.
10/10/2023 14:16:15 INFO: wazuh-dashboard service started.
10/10/2023 14:16:29 INFO: Initializing Wazuh dashboard web application.
10/10/2023 14:16:31 INFO: Wazuh dashboard web application initialized.
10/10/2023 14:16:31 INFO: --- Summary ---
10/10/2023 14:16:31 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
    User: admin
    Password: KODTIaPSfSKCePMox.+82d7.BzGgTJ7w
10/10/2023 14:16:31 INFO: Installation finished.

image

[root@centos71 vagrant]# cat /usr/share/wazuh-indexer/VERSION 
4.5.3
[root@centos71 vagrant]# cat /usr/share/wazuh-dashboard/VERSION 
4.5.3
[root@centos71 vagrant]# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.5.3"
WAZUH_REVISION="40508"
WAZUH_TYPE="server"

@juliamagan
Copy link
Member

WPK upgrade

Linux agent 🟢
  • Agent info:
[root@wazuh-manager vagrant]# /var/ossec/bin/agent_control -i 001

Wazuh agent_control. Agent information:
   Agent ID:   001
   Agent Name: test
   IP address: any
   Status:     Active

   Operating system:    Linux |test |5.4.0-86-generic |#97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 |x86_64
   Client version:      Wazuh v4.5.2
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696953131

   Syscheck last started at:  Tue Oct 10 15:51:54 2023
   Syscheck last ended at:    Tue Oct 10 15:51:58 2023
  • Upgrade:
[root@wazuh-manager vagrant]# /var/ossec/bin/agent_upgrade -a 001

Upgrading...

Upgraded agents:
	Agent 001 upgraded: Wazuh v4.5.2 -> Wazuh v4.5.3
  • Agent info:
[root@wazuh-manager vagrant]# /var/ossec/bin/agent_control -i 001

Wazuh agent_control. Agent information:
   Agent ID:   001
   Agent Name: test
   IP address: any
   Status:     Active

   Operating system:    Linux |test |5.4.0-86-generic |#97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 |x86_64
   Client version:      Wazuh v4.5.3
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696953456

   Syscheck last started at:  Tue Oct 10 15:55:48 2023
   Syscheck last ended at:    Tue Oct 10 15:55:53 2023
Windows agent 🟢
  • Agent info:
[root@wazuh-manager vagrant]# /var/ossec/bin/agent_control -i 002

Wazuh agent_control. Agent information:
   Agent ID:   002
   Agent Name: WIN-JLGVA4CR4VI
   IP address: any
   Status:     Active

   Operating system:    Microsoft Windows Server 2019 Standard Evaluation
   Client version:      Wazuh v4.5.2
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696953214

   Syscheck last started at:  Tue Oct 10 15:52:44 2023
   Syscheck last ended at:    Tue Oct 10 15:52:58 2023
  • Upgrade:
[root@wazuh-manager vagrant]# /var/ossec/bin/agent_upgrade -a 002

Upgrading...

Upgraded agents:
	Agent 002 upgraded: Wazuh v4.5.2 -> Wazuh v4.5.3
  • Agent info:
[root@wazuh-manager vagrant]# /var/ossec/bin/agent_control -i 002

Wazuh agent_control. Agent information:
   Agent ID:   002
   Agent Name: WIN-JLGVA4CR4VI
   IP address: any
   Status:     Active

   Operating system:    Microsoft Windows Server 2019 Standard Evaluation
   Client version:      Wazuh v4.5.3
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696953552

   Syscheck last started at:  Tue Oct 10 15:58:32 2023
   Syscheck last ended at:    Tue Oct 10 15:58:44 2023

@Rebits
Copy link
Member

Rebits commented Oct 10, 2023

WPK Upgrade - MacOS

Manager info
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.5.3"
WAZUH_REVISION="40508"
WAZUH_TYPE="server"
MacOS Intel 🟡

MacOS agent upgrade initially fails due to Send open file error. Reviewing manager's logs it seems that the upgrade module of the agent was not ready leading this error

2023/10/10 17:21:37 wazuh-modulesd:agent-upgrade: ERROR: (8116): Error response from agent: 'Upgrade module is disabled or not ready yet'
  • Agent Info
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_control -i 001

Wazuh agent_control. Agent information:
   Agent ID:   001
   Agent Name: ip-172-31-40-220.ec2.internal
   IP address: any
   Status:     Active

   Operating system:    Darwin |ip-172-31-40-220.ec2.internal |22.6.0 |Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 |x86_64
   Client version:      Wazuh v4.5.2
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696958469

   Syscheck last started at:  Tue Oct 10 17:21:06 2023 (Scan in progress)
   Syscheck last ended at:    Unknown
[root@ip-172-31-32-19 ec2-user]# 
  • Upgrade
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_upgrade -a 001

Upgrading...

Failed upgrades:
	Agent 001 status: Send open file error
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_upgrade -a 001

Upgrading...

Upgraded agents:
	Agent 001 upgraded: Wazuh v4.5.2 -> Wazuh v4.5.3
[root@ip-172-31-32-19 ec2-user]# 
  • Upgrade Log
2023/10/10 17:22:10 - Generating Backup.
2023/10/10 17:22:12 - Upgrade started.
installer: Package name is Wazuh Agent
installer: Upgrading at base path /
installer: The upgrade was successful.
2023/10/10 17:22:28 - Installation result = 0
2023/10/10 17:22:29 - Waiting connection... Status = connected. Remaining attempts: 29.
2023/10/10 17:22:29 - Connected to manager.
2023/10/10 17:22:29 - Upgrade finished successfully.
  • Manager logs
2023/10/10 17:47:52 wazuh-modulesd:agent-upgrade: ERROR: (8116): Error response from agent: 'Upgrade module is disabled or not ready yet'
  • Agent Info
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_control -i 001

Wazuh agent_control. Agent information:
   Agent ID:   001
   Agent Name: ip-172-31-40-220.ec2.internal
   IP address: any
   Status:     Active

   Operating system:    Darwin |ip-172-31-40-220.ec2.internal |22.6.0 |Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 |x86_64
   Client version:      Wazuh v4.5.3
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696958591

   Syscheck last started at:  Tue Oct 10 17:22:21 2023
   Syscheck last ended at:    Tue Oct 10 17:22:24 2023
MacOS Apple Silicon 🔴
  • Agent info
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_control -i 002

Wazuh agent_control. Agent information:
   Agent ID:   002
   Agent Name: ip-172-31-9-46.ec2.internal
   IP address: any
   Status:     Active

   Operating system:    Darwin |ip-172-31-9-46.ec2.internal |22.6.0 |Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 |arm64
   Client version:      Wazuh v4.5.2
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696959162

   Syscheck last started at:  Tue Oct 10 17:32:40 2023
   Syscheck last ended at:    Tue Oct 10 17:32:43 2023
  • Upgrade
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_upgrade -a 002

Upgrading...

Failed upgrades:
	Agent 002 status: The repository is not reachable
[root@ip-172-31-32-19 ec2-user]# 

Note
WPK macOS ARM should be performed using custom packages. More information in wazuh/wazuh#18545

  • Upgrade log

None

  • Agent info
[root@ip-172-31-32-19 ec2-user]# /var/ossec/bin/agent_control -i 002

Wazuh agent_control. Agent information:
   Agent ID:   002
   Agent Name: ip-172-31-9-46.ec2.internal
   IP address: any
   Status:     Active

   Operating system:    Darwin |ip-172-31-9-46.ec2.internal |22.6.0 |Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 |arm64
   Client version:      Wazuh v4.5.2
   Configuration hash:  ab73af41699f13fdd81903b5f23d8d00
   Shared file hash:    4a8724b20dee0124ff9656783c490c4e
   Last keep alive:     1696959419

   Syscheck last started at:  Tue Oct 10 17:32:40 2023
   Syscheck last ended at:    Tue Oct 10 17:32:43 2023

[root@ip-172-31-32-19 ec2-user]# 

@Rebits Rebits moved this from In progress to Pending review in Release 4.5.3 Oct 10, 2023
@wazuhci wazuhci moved this from Pending review to Pending final review in Release 4.5.3 Oct 10, 2023
@davidjiglesias
Copy link
Member Author

LGTM!

@github-project-automation github-project-automation bot moved this from Pending final review to Done in Release 4.5.3 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants