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

Fix Windows agent upgrade via WPK #9764

Merged
merged 14 commits into from
Oct 6, 2021
Merged

Conversation

JcabreraC
Copy link
Member

@JcabreraC JcabreraC commented Aug 19, 2021

Related issue
#9735

This PR implements a backup and restore system in case of update failure via WPK in windows.
An update is considered failed when the agent cannot connect to the manager or the ossec-agent.state file does not exist.

Backup process:

  1. Stop Wazuh-Service
  2. Save the Wazuh Home folder
  3. Save the MSI of the currret installation

Rollback:

  1. Uninstall the new version os Wazuh-Agent
  2. Install the previous version of Wazuh-Agent (via msi backed)
  3. Restore Wazuh-Home
  4. Install the Wazuh Service
  5. Start Wazuh-Service

Tests

Windows NT 6.0 ⚠️

  • Vista x86 -> Powershell is not installed by default and there are no official links to download it.
  • Vista x64 -> Powershell is not installed by default and there are no official links to download it.
  • Server 2008 32 bits -> In this specifict version, only the installer is saved in the registry and not the complete .msi file for later installation. When I rollback, the agent works perfectly, but it does not appear in the list of installed programs.

Windows 7 x86

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.7

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows 7 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows Server 2008 R2 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows 10 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows 10 x86

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows Server 2016 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
    tree_3.5.zip
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.7

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows 8.1 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0.4

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows 8.1 x86

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.1

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows server 2012 R2 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0.4

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows server 2012 R2 x64

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0.4

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows server 2019

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0.4

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Windows server 2022

Agent 3.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 3.13

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.0.4

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.1.5

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

Agent 4.2.0

  • Wazuh-Agent folder tree: No files are lost after the rollback. The logs of the failed upgrade (ossec.log) are kept.
  • After the rollback the agent connects to the manager
  • After reboot, the Wazuh-Agent starts and connects to the manager.
  • The correct Wazuh-Agent version is shown in the list of Windows' programs and features.
  • A new version of Wazuh-Agent can be manually installed via MSI after the rollback process.

@JcabreraC JcabreraC added module/upgrade/wpk module/upgrade Issue related to the upgrade process labels Aug 19, 2021
@JcabreraC JcabreraC linked an issue Aug 19, 2021 that may be closed by this pull request
@juliancnn juliancnn marked this pull request as ready for review August 31, 2021 20:19
@nmkoremblum nmkoremblum marked this pull request as draft September 2, 2021 13:39
@juliancnn juliancnn force-pushed the 9735-fix-WPK-upgrade-windows branch 4 times, most recently from bf421ad to 22dafd2 Compare September 2, 2021 20:57
@nmkoremblum nmkoremblum marked this pull request as ready for review September 3, 2021 12:54
@juliancnn juliancnn force-pushed the 9735-fix-WPK-upgrade-windows branch 2 times, most recently from f051879 to d513844 Compare September 6, 2021 19:31
@nmkoremblum nmkoremblum force-pushed the 9735-fix-WPK-upgrade-windows branch 2 times, most recently from b205a55 to 31b0946 Compare September 7, 2021 13:30
@juliancnn juliancnn force-pushed the 9735-fix-WPK-upgrade-windows branch 10 times, most recently from 3091abc to 2065669 Compare September 9, 2021 16:14
@juliancnn juliancnn marked this pull request as draft October 5, 2021 19:41
@juliancnn juliancnn changed the base branch from 4.2 to master October 5, 2021 19:42
@juliancnn juliancnn marked this pull request as ready for review October 5, 2021 19:42
Copy link
Contributor

@nmkoremblum nmkoremblum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@JcabreraC
Copy link
Member Author

LGTM !

1 similar comment
@JcabreraC
Copy link
Member Author

LGTM !

@vikman90 vikman90 merged commit a9bb41a into master Oct 6, 2021
@vikman90 vikman90 deleted the 9735-fix-WPK-upgrade-windows branch October 6, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/upgrade/wpk module/upgrade Issue related to the upgrade process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix upgrade via WPK on Windows
4 participants