Closed cborla closed 1 week ago
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/init.d/wazuh-agent
)~cat /var/ossec/var/run/wazuh-agentd.state
)Upgrade reports Failed474.zip
Upgrade reports Success474.zip
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/systemd/system/wazuh-agent.service
)~cat /var/ossec/var/run/wazuh-agentd.state
)Upgrade reports Success474.zip
Upgrade reports Success480.zip
/var/ossec/etc
/var/ossec/queue/diff
not present on backup/var/ossec/queue/diff
not present on backupUpgrade report report_Windows_Server_2022_v4.7.4.zip
Upgrade report report_Windows_Server_2022_v4.8.0.zip
.tar.gz
backup and the logs)./Library/LaunchDaemons/
/Library/StartupItems/
/Library/StartupItems/WAZUH/
/Library/LaunchDaemons/
launchctl print system/com.wazuh.agent
)cat /var/ossec/var/run/wazuh-agentd.state
)Upgrade reports
.tar.gz
backup and the logs)./Library/LaunchDaemons/
/Library/StartupItems/
/Library/StartupItems/WAZUH/
/Library/LaunchDaemons/
launchctl print system/com.wazuh.agent
)cat /var/ossec/var/run/wazuh-agentd.state
)Upgrade reports
/var/ossec/etc
/var/ossec/queue/diff
is not backed up"There is an upgrade in progress. Aborting..."
present in upgrade.log.tar.gz
backup and the logs)./Library/LaunchDaemons/
/Library/StartupItems/
/Library/StartupItems/WAZUH/
/Library/LaunchDaemons/
launchctl print system/com.wazuh.agent
)cat /var/ossec/var/run/wazuh-agentd.state
)Upgrade reports
/var/ossec/etc
/var/ossec/queue/diff
is not backed up"There is an upgrade in progress. Aborting..."
present in upgrade.logUpgrade report report_Windows_11_v4.6.0.zip
Upgrade report report_Windows_11_v4.8.0.zip
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/rc.d/init.d/wazuh-agent
)~systemctl list-unit-files
cat /var/ossec/var/run/wazuh-agentd.state
)semodule -l | grep -i wazuh
)Upgrade reports failed460.zip
Upgrade reports success460.zip
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/rc.d/init.d/wazuh-agent
)~systemctl list-unit-files
cat /var/ossec/var/run/wazuh-agentd.state
)semodule -l | grep -i wazuh
)Upgrade reports failed480.zip
Upgrade reports Succes480.zip
/var/ossec/etc
./var/ossec/etc
.# 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"
# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.7.4"
WAZUH_REVISION="40717"
WAZUH_TYPE="agent"
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/rc.d/init.d/wazuh-agent
)~systemctl list-unit-files
cat /var/ossec/var/run/wazuh-agentd.state
)semodule -l | grep -i wazuh
)~Upgrade reports 4.7.4-4.8.0-fail.zip
# /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
# 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"
# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/rc.d/init.d/wazuh-agent
)~systemctl list-unit-files
cat /var/ossec/var/run/wazuh-agentd.state
)semodule -l | grep -i wazuh
)~Upgrade reports 4.8.0-4.8.0-fail.zip
# /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
# 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"
# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.7.4"
WAZUH_REVISION="40717"
WAZUH_TYPE="agent"
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/rc.d/init.d/wazuh-agent
)~systemctl list-unit-files
cat /var/ossec/var/run/wazuh-agentd.state
)semodule -l | grep -i wazuh
)Upgrade reports 4.7.4-4.8.0-fail.zip
# /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
# 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"
[root@AmazonLinux vagrant]# /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.8.0"
WAZUH_REVISION="40809"
WAZUH_TYPE="agent"
.tar.gz
backup and the logs)./
/var
/usr
, /usr/lib/
, /usr/lib/systemd/
, /usr/lib/systemd/system/
/etc
, /etc/systemd/
, /etc/systemd/system/
, /etc/rc.d
, /etc/initd.d/
, /etc/initd.d/rc.d/
systemctl cat wazuh-agent.service
)systemctl is-enabled wazuh-agent.service
)cat /etc/rc.d/init.d/wazuh-agent
)~systemctl list-unit-files
cat /var/ossec/var/run/wazuh-agentd.state
)semodule -l | grep -i wazuh
)Upgrade reports 4.8.0-4.8.0-fail.zip
# /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
LGTM
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
Test report procedure
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
Windows
macOS
Upgrade retry
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.