wazuh / wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
https://wazuh.com/
Other
9.34k stars 1.48k forks source link

Release 4.8.0 - RC 1 - WPK upgrade tests #23307

Closed cborla closed 1 week ago

cborla commented 1 week ago

The following issue aims to run upgrade WPK tests for the current release candidate, report the results, and open new issues for any encountered errors.

WPK upgrade test information

Main release candidate issue #23246
Version 4.8.0
Release candidate # RC 1
Tag v4.8.0-rc1
Previous WPK upgrade tests issue #21411

Test report procedure

All individual test checks must be marked as:
Pass The test ran successfully.
Xfail The test was expected to fail and it failed. It must be properly justified and reported in an issue.
Skip The test was not run. It must be properly justified and reported in an issue.
Fail The test failed. A new issue must be opened to evaluate and address the problem.
All test results must have one the following statuses:
🟒 All checks passed.
πŸ”΄ There is at least one failed check.
🟑 There is at least one expected fail or skipped test and no failures.

Any failing test must be properly addressed with a new issue, detailing the error and the possible cause. It must be included in the Fixes section of the current release candidate main issue.

Any expected fail or skipped test must have an issue justifying the reason. All auditors must validate the justification for an expected fail or skipped test.

An extended report of the test results must be attached as a zip or txt. This report can be used by the auditors to dig deeper into any possible failures and details.

Tests

To evaluate this feature, it is necessary to test upgrading the agent and also the case when the upgrade fails (rollback). The tree command will be used to compare, before and after the upgrade/rollback process, and check that the presence, ownership and permissions of the files and directories are expected.

Wazuh versions to test (Upgrade to the current agent version):

Linux

Tier OS From Version Status Upgrade fail Upgrade OK Comment
3 CentOS 8 4.6.0 🟒 🟒 🟒
3 CentOS 8 4.8.0 🟒 🟒 🟒
1 Ubuntu 22 4.7.4 🟒 🟒 🟒
1 Ubuntu 22 4.8.0 🟒 🟒 🟒
3 openSUSE Tumbleweed 4.7.4 🟒 🟒 🟒
3 openSUSE Tumbleweed 4.8.0 🟒 🟒 🟒
3 Amazon Linux 2 4.7.4 🟒 🟒 🟒
3 Amazon Linux 2 4.8.0 🟒 🟒 🟒

Windows

Tier OS From Version Status Upgrade fail Upgrade OK Comment
3 Windows 11 4.6.0 🟒 🟒 🟒
3 Windows 11 4.8.0 🟒 🟒 🟒
1 Server 2022 4.7.4 🟒 🟒 🟒
1 Server 2022 4.8.0 🟒 🟒 🟒

macOS

Tier OS From Version Status Upgrade fail Upgrade OK Comment
2 Ventura x86 4.6.0 🟒 🟒 🟒
1 Ventura x86 4.7.4 🟒 🟒 🟒
1 Ventura x86 4.8.0 🟒 🟒 🟒

Upgrade retry

OS Tier From Version Result Comment
Ubuntu 22 2 4.7.4 🟒
Ubuntu 22 1 4.8.0 🟒
Windows Server 2022 1 4.7.4 🟒
Windows Server 2022 1 4.8.0 🟒
Ventura x86 2 4.7.4 🟒
Ventura x86 1 4.8.0 🟒

Findings

Conclusions

In all upgrade scenarios to version 4.8.0, no problems have been found in the scenarios.

Auditors validation

The definition of done for this one is the validation of the conclusions and the test results from all auditors.

All checks from below must be accepted to close this issue.

LucioDonda commented 1 week ago

TEST: Ubuntu 22


From Wazuh-Agent v4.7.4

UPGRADE FAIL 🟒

Upgrade reports Failed474.zip

UPGRADE OK 🟒

Upgrade reports Success474.zip


From Wazuh-Agent v4.8.0

UPGRADE FAIL 🟒

Upgrade reports Success474.zip

UPGRADE OK 🟒

Upgrade reports Success480.zip

LucioDonda commented 1 week ago

TEST: Upgrade Retry Linux

Ubuntu 22

From Wazuh-Agent 4.8.0: 🟒

`upgrade.log` ``` Wait for success... success Starting Wazuh... 2024/05/06 20:00:09 - There is an upgrade in progress. Aborting... - Configuration finished properly. ```

From Wazuh-Agent 4.7.4: 🟒

`upgrade.log` ``` Wait for success... success Starting Wazuh... 2024/05/06 20:15:30 - There is an upgrade in progress. Aborting... - Configuration finished properly. - To start Wazuh: /var/ossec/bin/wazuh-control start - To stop Wazuh: /var/ossec/bin/wazuh-control stop ```
cborla commented 1 week ago

wpk fail:

nbertoldo commented 1 week ago

TEST: Windows Server 2022

From Wazuh-Agent 4.7.4

UPGRADE FAIL: 🟒

UPGRADE OK: 🟒

Upgrade report report_Windows_Server_2022_v4.7.4.zip

From Wazuh-Agent 4.8.0

UPGRADE FAIL: 🟒

UPGRADE OK: 🟒

Upgrade report report_Windows_Server_2022_v4.8.0.zip

nmkoremblum commented 1 week ago

TEST: macOS Ventura (13.6.6)

From Wazuh-Agent 4.7.4

UPGRADE FAIL 🟒:

UPGRADE OK 🟒:

Upgrade reports

4_7_4_output.zip

nmkoremblum commented 1 week ago

TEST: macOS Ventura (13.6.6)

From Wazuh-Agent 4.8.0

UPGRADE FAIL🟒:

UPGRADE OK🟒:

Upgrade reports

4_8_0_output.zip

nmkoremblum commented 1 week ago

TEST: Upgrade Retry macOS

macOS Ventura (13.6.6)

From Wazuh-Agent 4.8.0: :green_circle:

Upgrade Log ``` 2024/05/07 12:32:07 - Generating Backup. tar: Removing leading '/' from member names a Library/Ossec/active-response a Library/Ossec/active-response/bin a Library/Ossec/active-response/bin/restart.sh a Library/Ossec/active-response/bin/firewall-drop a Library/Ossec/active-response/bin/host-deny a Library/Ossec/active-response/bin/firewalld-drop a Library/Ossec/active-response/bin/kaspersky.py a Library/Ossec/active-response/bin/default-firewall-drop a Library/Ossec/active-response/bin/npf a Library/Ossec/active-response/bin/pf a Library/Ossec/active-response/bin/ip-customblock a Library/Ossec/active-response/bin/ipfw a Library/Ossec/active-response/bin/route-null a Library/Ossec/active-response/bin/restart-wazuh a Library/Ossec/active-response/bin/wazuh-slack a Library/Ossec/active-response/bin/kaspersky a Library/Ossec/active-response/bin/disable-account a Library/Ossec/bin a Library/Ossec/bin/wazuh-control a Library/Ossec/bin/wazuh-logcollector a Library/Ossec/bin/wazuh-execd a Library/Ossec/bin/wazuh-syscheckd a Library/Ossec/bin/manage_agents a Library/Ossec/bin/agent-auth a Library/Ossec/bin/wazuh-agentd a Library/Ossec/bin/wazuh-modulesd a Library/Ossec/etc a Library/Ossec/etc/internal_options.conf a Library/Ossec/etc/wpk_root.pem a Library/Ossec/etc/localtime a Library/Ossec/etc/shared a Library/Ossec/etc/BigFileShouldBeCopied a Library/Ossec/etc/ossec.conf a Library/Ossec/etc/local_internal_options.conf a Library/Ossec/etc/client.keys a Library/Ossec/etc/shared/cis_win2012r2_memberL1_rcl.txt a Library/Ossec/etc/shared/win_audit_rcl.txt a Library/Ossec/etc/shared/rootkit_trojans.txt a Library/Ossec/etc/shared/agent.conf a Library/Ossec/etc/shared/cis_win2012r2_domainL1_rcl.txt a Library/Ossec/etc/shared/cis_rhel6_linux_rcl.txt a Library/Ossec/etc/shared/cis_win2012r2_memberL2_rcl.txt a Library/Ossec/etc/shared/cis_apache2224_rcl.txt a Library/Ossec/etc/shared/win_applications_rcl.txt a Library/Ossec/etc/shared/cis_win2012r2_domainL2_rcl.txt a Library/Ossec/etc/shared/cis_rhel5_linux_rcl.txt a Library/Ossec/etc/shared/cis_debian_linux_rcl.txt a Library/Ossec/etc/shared/system_audit_rcl.txt a Library/Ossec/etc/shared/merged.mg a Library/Ossec/etc/shared/win_malware_rcl.txt a Library/Ossec/etc/shared/ar.conf a Library/Ossec/etc/shared/cis_rhel7_linux_rcl.txt a Library/Ossec/etc/shared/cis_mysql5-6_enterprise_rcl.txt a Library/Ossec/etc/shared/system_audit_ssh.txt a Library/Ossec/etc/shared/cis_mysql5-6_community_rcl.txt a Library/Ossec/etc/shared/cis_sles12_linux_rcl.txt a Library/Ossec/etc/shared/cis_rhel_linux_rcl.txt a Library/Ossec/etc/shared/rootkit_files.txt a Library/Ossec/etc/shared/cis_sles11_linux_rcl.txt a Library/Ossec/lib a Library/Ossec/lib/libfimdb.dylib a Library/Ossec/lib/libwazuhshared.dylib a Library/Ossec/lib/libsysinfo.dylib a Library/Ossec/lib/libdbsync.dylib a Library/Ossec/lib/librsync.dylib a Library/Ossec/lib/libsyscollector.dylib a Library/Ossec/lib/libwazuhext.dylib a Library/Ossec/queue a Library/Ossec/queue/sockets a Library/Ossec/queue/alerts a Library/Ossec/queue/syscollector a Library/Ossec/queue/fim a Library/Ossec/queue/logcollector a Library/Ossec/queue/rids a Library/Ossec/queue/rids/sender_counter a Library/Ossec/queue/rids/001 a Library/Ossec/queue/fim/db a Library/Ossec/queue/fim/db/fim.db-journal a Library/Ossec/queue/fim/db/fim.db a Library/Ossec/queue/syscollector/db a Library/Ossec/queue/syscollector/norm_config.json a Library/Ossec/queue/alerts/execqtar: Library/Ossec/queue/alerts/execq: Library/Ossec/queue/alerts/execq: pax format cannot archive sockets a Library/Ossec/queue/sockets/syschecktar: Library/Ossec/queue/sockets/syscheck: Library/Ossec/queue/sockets/syscheck: pax format cannot archive sockets a Library/Ossec/queue/sockets/upgradetar: Library/Ossec/queue/sockets/upgrade: Library/Ossec/queue/sockets/upgrade: pax format cannot archive sockets a Library/Ossec/queue/sockets/wmodulestar: Library/Ossec/queue/sockets/wmodules: Library/Ossec/queue/sockets/wmodules: pax format cannot archive sockets a Library/Ossec/queue/sockets/queuetar: Library/Ossec/queue/sockets/queue: Library/Ossec/queue/sockets/queue: pax format cannot archive sockets a Library/Ossec/queue/sockets/.agent_info a Library/Ossec/queue/sockets/logcollectortar: Library/Ossec/queue/sockets/logcollector: Library/Ossec/queue/sockets/logcollector: pax format cannot archive sockets a Library/Ossec/queue/sockets/controltar: Library/Ossec/queue/sockets/control: Library/Ossec/queue/sockets/control: pax format cannot archive sockets a Library/Ossec/queue/sockets/comtar: Library/Ossec/queue/sockets/com: Library/Ossec/queue/sockets/com: pax format cannot archive sockets a Library/Ossec/ruleset a Library/Ossec/ruleset/sca a Library/Ossec/ruleset/sca/cis_apple_macOS_13.x.yml a Library/Ossec/wodles a Library/Ossec/wodles/gcloud a Library/Ossec/wodles/docker a Library/Ossec/wodles/azure a Library/Ossec/wodles/__init__.py a Library/Ossec/wodles/utils.py a Library/Ossec/wodles/aws a Library/Ossec/wodles/aws/aws-s3 a Library/Ossec/wodles/aws/buckets_s3 a Library/Ossec/wodles/aws/wazuh_integration.py a Library/Ossec/wodles/aws/__init__.py a Library/Ossec/wodles/aws/aws_tools.py a Library/Ossec/wodles/aws/subscribers a Library/Ossec/wodles/aws/services a Library/Ossec/wodles/aws/services/cloudwatchlogs.py a Library/Ossec/wodles/aws/services/inspector.py a Library/Ossec/wodles/aws/services/__init__.py a Library/Ossec/wodles/aws/services/aws_service.py a Library/Ossec/wodles/aws/subscribers/sqs_message_processor.py a Library/Ossec/wodles/aws/subscribers/s3_log_handler.py a Library/Ossec/wodles/aws/subscribers/__init__.py a Library/Ossec/wodles/aws/subscribers/sqs_queue.py a Library/Ossec/wodles/aws/buckets_s3/cloudtrail.py a Library/Ossec/wodles/aws/buckets_s3/config.py a Library/Ossec/wodles/aws/buckets_s3/waf.py a Library/Ossec/wodles/aws/buckets_s3/guardduty.py a Library/Ossec/wodles/aws/buckets_s3/server_access.py a Library/Ossec/wodles/aws/buckets_s3/aws_bucket.py a Library/Ossec/wodles/aws/buckets_s3/__init__.py a Library/Ossec/wodles/aws/buckets_s3/umbrella.py a Library/Ossec/wodles/aws/buckets_s3/vpcflow.py a Library/Ossec/wodles/aws/buckets_s3/load_balancers.py a Library/Ossec/wodles/azure/orm.py a Library/Ossec/wodles/azure/azure-logs a Library/Ossec/wodles/docker/DockerListener a Library/Ossec/wodles/gcloud/gcloud a Library/Ossec/wodles/gcloud/buckets a Library/Ossec/wodles/gcloud/tools.py a Library/Ossec/wodles/gcloud/integration.py a Library/Ossec/wodles/gcloud/pubsub a Library/Ossec/wodles/gcloud/exceptions.py a Library/Ossec/wodles/gcloud/pubsub/subscriber.py a Library/Ossec/wodles/gcloud/buckets/bucket.py a Library/Ossec/wodles/gcloud/buckets/access_logs.py a Library/Ossec/agentless a Library/Ossec/agentless/ssh.exp a Library/Ossec/agentless/ssh_pixconfig_diff a Library/Ossec/agentless/ssh_integrity_check_bsd a Library/Ossec/agentless/ssh_generic_diff a Library/Ossec/agentless/ssh_integrity_check_linux a Library/Ossec/agentless/ssh_asa-fwsmconfig_diff a Library/Ossec/agentless/main.exp a Library/Ossec/agentless/ssh_nopass.exp a Library/Ossec/agentless/ssh_foundry_diff a Library/Ossec/agentless/register_host.sh a Library/Ossec/agentless/sshlogin.exp a Library/Ossec/agentless/su.exp a Library/Ossec/logs/wazuh a Library/Ossec/var/selinux a Library/LaunchDaemons/com.wazuh.agent.plist a Library/StartupItems/WAZUH a Library/StartupItems/WAZUH/Wazuh-launcher a Library/StartupItems/WAZUH/StartupParameters.plist a Library/StartupItems/WAZUH/WAZUH 2024/05/07 12:32:21 - Backup generated in /Library/Ossec/backup/backup_[05-07-2024_12-32-07].tar.gz 2024/05/07 12:32:21 - Upgrade started. 2024/05/07 12:32:36 - There is an upgrade in progress. Aborting... installer: Package name is Wazuh Agent installer: Upgrading at base path / installer: The upgrade was successful. 2024/05/07 12:32:36 - Installation result = 0 2024/05/07 12:32:36 - Waiting connection... Remaining attempts: 30. 2024/05/07 12:32:38 - Status = connected. 2024/05/07 12:32:38 - Connected to manager. 2024/05/07 12:32:38 - Upgrade finished successfully. ```
nmkoremblum commented 1 week ago

TEST: macOS Ventura (13.6.6)

From Wazuh-Agent 4.6.0

UPGRADE FAIL🟒:

UPGRADE OK🟒:

Upgrade reports

4_6_0_output.zip

nmkoremblum commented 1 week ago

TEST: Upgrade Retry macOS

macOS Ventura (13.6.6)

From Wazuh-Agent 4.7.4: :green_circle:

Upgrade Log ``` 2024/05/07 12:45:24 - Generating Backup. tar: Removing leading '/' from member names a Library/Ossec/active-response a Library/Ossec/active-response/bin a Library/Ossec/active-response/bin/restart.sh a Library/Ossec/active-response/bin/firewall-drop a Library/Ossec/active-response/bin/host-deny a Library/Ossec/active-response/bin/firewalld-drop a Library/Ossec/active-response/bin/kaspersky.py a Library/Ossec/active-response/bin/default-firewall-drop a Library/Ossec/active-response/bin/npf a Library/Ossec/active-response/bin/pf a Library/Ossec/active-response/bin/ip-customblock a Library/Ossec/active-response/bin/ipfw a Library/Ossec/active-response/bin/route-null a Library/Ossec/active-response/bin/restart-wazuh a Library/Ossec/active-response/bin/wazuh-slack a Library/Ossec/active-response/bin/kaspersky a Library/Ossec/active-response/bin/disable-account a Library/Ossec/bin a Library/Ossec/bin/wazuh-control a Library/Ossec/bin/wazuh-logcollector a Library/Ossec/bin/wazuh-execd a Library/Ossec/bin/wazuh-syscheckd a Library/Ossec/bin/manage_agents a Library/Ossec/bin/agent-auth a Library/Ossec/bin/wazuh-agentd a Library/Ossec/bin/wazuh-modulesd a Library/Ossec/etc a Library/Ossec/etc/internal_options.conf a Library/Ossec/etc/wpk_root.pem a Library/Ossec/etc/localtime a Library/Ossec/etc/shared a Library/Ossec/etc/BigFileShouldBeCopied a Library/Ossec/etc/ossec.conf a Library/Ossec/etc/local_internal_options.conf a Library/Ossec/etc/client.keys a Library/Ossec/etc/shared/cis_win2012r2_memberL1_rcl.txt a Library/Ossec/etc/shared/win_audit_rcl.txt a Library/Ossec/etc/shared/rootkit_trojans.txt a Library/Ossec/etc/shared/agent.conf a Library/Ossec/etc/shared/cis_win2012r2_domainL1_rcl.txt a Library/Ossec/etc/shared/cis_rhel6_linux_rcl.txt a Library/Ossec/etc/shared/cis_win2012r2_memberL2_rcl.txt a Library/Ossec/etc/shared/cis_apache2224_rcl.txt a Library/Ossec/etc/shared/win_applications_rcl.txt a Library/Ossec/etc/shared/cis_win2012r2_domainL2_rcl.txt a Library/Ossec/etc/shared/cis_rhel5_linux_rcl.txt a Library/Ossec/etc/shared/cis_debian_linux_rcl.txt a Library/Ossec/etc/shared/system_audit_rcl.txt a Library/Ossec/etc/shared/merged.mg a Library/Ossec/etc/shared/win_malware_rcl.txt a Library/Ossec/etc/shared/ar.conf a Library/Ossec/etc/shared/cis_rhel7_linux_rcl.txt a Library/Ossec/etc/shared/cis_mysql5-6_enterprise_rcl.txt a Library/Ossec/etc/shared/system_audit_ssh.txt a Library/Ossec/etc/shared/cis_mysql5-6_community_rcl.txt a Library/Ossec/etc/shared/cis_sles12_linux_rcl.txt a Library/Ossec/etc/shared/cis_rhel_linux_rcl.txt a Library/Ossec/etc/shared/rootkit_files.txt a Library/Ossec/etc/shared/cis_sles11_linux_rcl.txt a Library/Ossec/lib a Library/Ossec/lib/libfimdb.dylib a Library/Ossec/lib/libwazuhshared.dylib a Library/Ossec/lib/libsysinfo.dylib a Library/Ossec/lib/libdbsync.dylib a Library/Ossec/lib/librsync.dylib a Library/Ossec/lib/libsyscollector.dylib a Library/Ossec/lib/libwazuhext.dylib a Library/Ossec/queue a Library/Ossec/queue/sockets a Library/Ossec/queue/alerts a Library/Ossec/queue/syscollector a Library/Ossec/queue/fim a Library/Ossec/queue/logcollector a Library/Ossec/queue/rids a Library/Ossec/queue/rids/sender_counter a Library/Ossec/queue/rids/003 a Library/Ossec/queue/fim/db a Library/Ossec/queue/fim/db/fim.db-journal a Library/Ossec/queue/fim/db/fim.db a Library/Ossec/queue/syscollector/db a Library/Ossec/queue/syscollector/norm_config.json a Library/Ossec/queue/alerts/execqtar: Library/Ossec/queue/alerts/execq: Library/Ossec/queue/alerts/execq: pax format cannot archive sockets a Library/Ossec/queue/sockets/syschecktar: Library/Ossec/queue/sockets/syscheck: Library/Ossec/queue/sockets/syscheck: pax format cannot archive sockets a Library/Ossec/queue/sockets/upgradetar: Library/Ossec/queue/sockets/upgrade: Library/Ossec/queue/sockets/upgrade: pax format cannot archive sockets a Library/Ossec/queue/sockets/wmodulestar: Library/Ossec/queue/sockets/wmodules: Library/Ossec/queue/sockets/wmodules: pax format cannot archive sockets a Library/Ossec/queue/sockets/queuetar: Library/Ossec/queue/sockets/queue: Library/Ossec/queue/sockets/queue: pax format cannot archive sockets a Library/Ossec/queue/sockets/.agent_info a Library/Ossec/queue/sockets/logcollectortar: Library/Ossec/queue/sockets/logcollector: Library/Ossec/queue/sockets/logcollector: pax format cannot archive sockets a Library/Ossec/queue/sockets/controltar: Library/Ossec/queue/sockets/control: Library/Ossec/queue/sockets/control: pax format cannot archive sockets a Library/Ossec/queue/sockets/comtar: Library/Ossec/queue/sockets/com: Library/Ossec/queue/sockets/com: pax format cannot archive sockets a Library/Ossec/ruleset a Library/Ossec/ruleset/sca a Library/Ossec/ruleset/sca/cis_apple_macOS_13.x.yml a Library/Ossec/wodles a Library/Ossec/wodles/gcloud a Library/Ossec/wodles/docker a Library/Ossec/wodles/azure a Library/Ossec/wodles/__init__.py a Library/Ossec/wodles/utils.py a Library/Ossec/wodles/aws a Library/Ossec/wodles/aws/aws-s3 a Library/Ossec/wodles/azure/orm.py a Library/Ossec/wodles/azure/azure-logs a Library/Ossec/wodles/docker/DockerListener a Library/Ossec/wodles/gcloud/gcloud a Library/Ossec/wodles/gcloud/buckets a Library/Ossec/wodles/gcloud/tools.py a Library/Ossec/wodles/gcloud/integration.py a Library/Ossec/wodles/gcloud/pubsub a Library/Ossec/wodles/gcloud/exceptions.py a Library/Ossec/wodles/gcloud/pubsub/subscriber.py a Library/Ossec/wodles/gcloud/buckets/bucket.py a Library/Ossec/wodles/gcloud/buckets/access_logs.py a Library/Ossec/agentless a Library/Ossec/agentless/ssh.exp a Library/Ossec/agentless/ssh_pixconfig_diff a Library/Ossec/agentless/ssh_integrity_check_bsd a Library/Ossec/agentless/ssh_generic_diff a Library/Ossec/agentless/ssh_integrity_check_linux a Library/Ossec/agentless/ssh_asa-fwsmconfig_diff a Library/Ossec/agentless/main.exp a Library/Ossec/agentless/ssh_nopass.exp a Library/Ossec/agentless/ssh_foundry_diff a Library/Ossec/agentless/register_host.sh a Library/Ossec/agentless/sshlogin.exp a Library/Ossec/agentless/su.exp a Library/Ossec/logs/wazuh a Library/Ossec/var/selinux a Library/LaunchDaemons/com.wazuh.agent.plist a Library/StartupItems/WAZUH a Library/StartupItems/WAZUH/Wazuh-launcher a Library/StartupItems/WAZUH/StartupParameters.plist a Library/StartupItems/WAZUH/WAZUH 2024/05/07 12:45:39 - Backup generated in /Library/Ossec/backup/backup_[05-07-2024_12-45-24].tar.gz 2024/05/07 12:45:39 - Upgrade started. installer: Package name is Wazuh Agent installer: Upgrading at base path / installer: The upgrade was successful. 2024/05/07 12:45:52 - Installation result = 0 2024/05/07 12:45:52 - Waiting connection... Remaining attempts: 30. 2024/05/07 12:45:53 - There is an upgrade in progress. Aborting... 2024/05/07 12:45:54 - Status = connected. 2024/05/07 12:45:54 - Connected to manager. 2024/05/07 12:45:54 - Upgrade finished successfully. ```
nbertoldo commented 1 week ago

TEST: Windows 11

From Wazuh-Agent 4.6.0

UPGRADE FAIL: 🟒

UPGRADE OK: 🟒

Upgrade report report_Windows_11_v4.6.0.zip

From Wazuh-Agent 4.8.0

UPGRADE FAIL: 🟒

UPGRADE OK: 🟒

Upgrade report report_Windows_11_v4.8.0.zip

LucioDonda commented 1 week ago

TEST: CentOS 8 / RHEL 8

From Wazuh-Agent 4.6.0

UPGRADE FAIL: 🟒

Upgrade reports failed460.zip

UPGRADE OK: 🟒

Upgrade reports success460.zip


From Wazuh-Agent 4.8.0

UPGRADE FAIL: 🟒

Upgrade reports failed480.zip

UPGRADE OK: 🟒

Upgrade reports Succes480.zip

nbertoldo commented 1 week ago

TEST: Upgrade Retry Windows

Windows Server 2022

From Wazuh-Agent 4.7.4: 🟒

upgrade.log ```console 2024-05-06 16:27:10Z - Backing up Wazuh-Agent cached MSI: "C:\Windows\Installer\539f5.msi". 2024-05-06 16:27:10Z - Trying to stop Wazuh service. 2024-05-06 16:27:14Z - Starting upgrade processs. 2024-05-06 16:27:19Z - Restarting Wazuh-Agent service. 2024-05-06 16:27:19Z - Installation finished. 2024-05-06 16:27:19Z - Process ID: 456. 2024-05-06 16:27:27Z - There is an upgrade in progress. Aborting... 2024-05-06 16:27:30Z - Reading status file: status='connected'. 2024-05-06 16:27:30Z - Upgrade finished successfully. 2024-05-06 16:27:30Z - New version: v4.8.0. ```

From Wazuh-Agent 4.8.0: 🟒

upgrade.log ```console 2024-05-07 17:28:14Z - There is an upgrade in progress. Aborting... 2024-05-07 17:28:22Z - Starting upgrade processs. 2024-05-07 17:28:22Z - Waiting for the Wazuh-Agent installation to end. 2024-05-07 17:28:24Z - Waiting for the Wazuh-Agent installation to end. 2024-05-07 17:28:26Z - Waiting for the Wazuh-Agent installation to end. 2024-05-07 17:28:28Z - Waiting for the Wazuh-Agent installation to end. 2024-05-07 17:28:30Z - Waiting for the Wazuh-Agent installation to end. 2024-05-07 17:28:32Z - Restarting Wazuh-Agent service. 2024-05-07 17:28:32Z - Installation finished. 2024-05-07 17:28:32Z - Process ID: 4916. 2024-05-07 17:28:42Z - Reading status file: status='connected'. 2024-05-07 17:28:42Z - Upgrade finished successfully. 2024-05-07 17:28:42Z - New version: v4.8.0. ```
cborla commented 1 week ago

TEST: openSUSE Tumbleweed 🟒

# cat /usr/lib/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20240503"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240503"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240503:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240503"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

From Wazuh-Agent 4.7.4

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.7.4"
WAZUH_REVISION="40717"
WAZUH_TYPE="agent"

UPGRADE FAIL: 🟒

Upgrade reports 4.7.4-4.8.0-fail.zip

UPGRADE OK: 🟒

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.7.4"
WAZUH_REVISION="40717"
WAZUH_TYPE="agent"
# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"

Upgrade reports 4.7.4-4.8.0-success.zip

cborla commented 1 week ago

TEST: openSUSE Tumbleweed 🟒

# cat /usr/lib/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20240503"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240503"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240503:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240503"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

From Wazuh-Agent 4.8.0

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"

UPGRADE FAIL: 🟒

Upgrade reports 4.8.0-4.8.0-fail.zip

UPGRADE OK: 🟒

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"

Upgrade reports 4.8.0-4.8.0-success.zip

cborla commented 1 week ago

TEST: Amazon Linux 2 🟒

# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2025-06-30"

From Wazuh-Agent 4.7.4

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.7.4"
WAZUH_REVISION="40717"
WAZUH_TYPE="agent"

UPGRADE FAIL: 🟒

Upgrade reports 4.7.4-4.8.0-fail.zip

UPGRADE OK: 🟒

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"

Upgrade reports 4.7.0-4.8.0-success.zip

cborla commented 1 week ago

TEST: Amazon Linux 2 🟒

# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
SUPPORT_END="2025-06-30"

From Wazuh-Agent 4.8.0

[root@AmazonLinux vagrant]# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"

UPGRADE FAIL: 🟒

Upgrade reports 4.8.0-4.8.0-fail.zip

UPGRADE OK: 🟒

# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"

Upgrade reports 4.8.0-4.8.0-success.zip

juliamagan commented 1 week ago

LGTM