Werk #6938: cmk-update-agent: Handle failing package manager
Komponente | Agent bakery |
Titel | cmk-update-agent: Handle failing package manager |
Datum | 18.01.2019 |
Checkmk Edition | Checkmk Enterprise (CEE) |
Checkmk-Version | 1.5.0p12 1.6.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
This werk fixes two bugs that occur on Unix and Linux when the invoked package manager fails to install an agent package:
The agent updater saved the agent hash to its state file immediately before the update takes place. As a result, an agent package got recognized as installed even if its installation failed.
(Regression since Check_MK 1.5) Due to inproper handling of the stderr and stdout streams coming from the invoked package manager, the agent updater crashed on a package manager failure instead of forwarding the error messages to the user or log.