Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 6938
blobfef6715950916984642025ba6ecec34762078552
1 Title: cmk-update-agent: Handle failing package manager
2 Level: 1
3 Component: agents
4 Class: fix
5 Compatible: compat
6 Edition: cee
7 State: unknown
8 Version: 1.6.0i1
9 Date: 1547826201
11 This werk fixes two bugs that occur on Unix and Linux
12 when the invoked package manager fails to install an
13 agent package:
15 The agent updater saved the agent hash to its state file
16 immediately before the update takes place. As a result, an
17 agent package got recognized as installed even if
18 its installation failed.
20 (Regression since Check_MK 1.5) Due to inproper handling
21 of the stderr and stdout streams coming from the invoked
22 package manager, the agent updater crashed on a package
23 manager failure instead of forwarding the error messages
24 to the user or log.