[checkmk-commits] [tribe29/checkmk] 299f40: 7715 FIX Correct upgrade of Legacy Windows Agent

Lars noreply at github.com
Tue Jun 25 18:20:32 CEST 2019

  Branch: refs/heads/1.6.0
  Home:   https://github.com/tribe29/checkmk
  Commit: 299f404672add4a06271d74c86989d3baf971b92
  Author: Sergey Kipnis <sergey.kipnis at tribe29.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    A .werks/7715
    M agents/wnx/install/resources/check_mk.user.yml
    M agents/wnx/prepare_to_tests.cmd
    M agents/wnx/src/common/cfg_info.h
    M agents/wnx/src/engine/cap.cpp
    M agents/wnx/src/engine/cap.h
    M agents/wnx/src/engine/read_file.h
    M agents/wnx/src/engine/upgrade.cpp
    M agents/wnx/src/engine/upgrade.h
    M agents/wnx/src/lwa/Configuration.cpp
    M agents/wnx/src/lwa/types.cc
    M agents/wnx/src/lwa/types.h
    M agents/wnx/watest/test-cap.cpp
    M agents/wnx/watest/test-upgrade.cpp

  Log Message:
  7715 FIX Correct upgrade of Legacy Windows Agent

Now automatic upgrade procedure in Windows Agent 1.6.0 correctly upgrades
legacy Windows Agents 1.5.0 configuration even if update plugin 1.5.0 installed.

The routine skips incompatible files from 1.5.0, i.e. cmk-agent-update.exe.
Additionally the upgrade routine doesn't override already existing files.

[FEED-3834] [CMK-2230] - files from legacy agent are copied carefully

- no overwriting during upgrade procedure to avoid killing bakery files
- legacy cmk-agent-update.exe is skipped during upgrade as not compatible with 1.6
- internal api to check that agent is packaged, not used now, but tested
- experimental/filesystem is localized back to legacy code, toxic declaration removed from header file
- CheckMK everywhere: yml and C++
- refactored
- unit testing of every new feature, including internal self test
- improved log

Change-Id: I64020d584a69e427d4f4f156fce69f42870f034b

More information about the checkmk-commits mailing list