Werk #11403: Improved versioning for baked agent packages

Component Agent Bakery
Title Improved versioning for baked agent packages
Date Oct 20, 2020
Checkmk Editon Checkmk Enterprise (CEE)
Checkmk Version 2.0.0i1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

Previously, when updating a baked agent via a package manager, you would eventually receive a warning about a downgrade of the Checkmk agent. The reason for this was the baked agent's version string, that was formed of Checkmk version and the agent's configuration hash, with the latter being quite random and thus confusing the package manager, that expects an increasing versioning. E.g. a version string could be 1.6.0p18.f123abcd before bake, and 1.6.0p18.1234cdef after bake.

This behavior is now fixed by introducing an internal bake revision, that increases on every newly baked package (per Checkmk version) and that's only purpose is to guarantee an increasing version string for the .rpm, .deb and .pkg packages (e.g. 1.6.0p18-1.f123abcd before bake, 1.6.0p18-2.1234cdef after bake). Please note that this revision won't be visible on the GUI or in the package's filenames, it only affects the package's metadata.

To the list of all Werks