CMK version: 2.1.0p48/2.2.0p38
OS version: Ubuntu 22.04
I’m currently on checkmk 2.1 and in the process of updating to 2.2 (and later to 2.3).
For the update 2.1→2.2 I built two MKPs with (almost) the same plugins, but in a slightly different flavour, so that they are compatible with the respective checkmk version.
My MKP for 2.1 has these attributes:
"version.min_required": "2.1.0b0",
"version.usable_until": "2.2.0b0"
My MKP for 2.2 has these attributes:
"version.min_required": "2.2.0b0",
"version.usable_until": "2.3.0b0"
So the first MKP is only for cmk 2.1 and the second is only for cmk 2.2.
While still under 2.1, I installed both these packages. Checkmk told me that it installs the package for 2.2, but disables it because of the “wrong” version number. But the package for 2.1 was enabled and this is exactly what I expected.
During the update process 2.1→2.2 , the 2.1 package was automatically disabled and the 2.2 package was enabled.
This worked great without any errors due to imcompatible plugins.
![]()
Now the site is running under 2.2 and I could delete the 2.1 version of the MKP.
But the strange thing is: In the GUI and in the command line I can also switch back to the old version (2.1) of the MKP. It doesn’t complain about the wrong version numbers but after activating the change, it instead complains about incompatible check plugins and unresolved import statements and such.
It seems that checkmk doesn’t care about the min/max version numbers of the package. Only the update process adheres to them.
Is that intentional behaviour?
(Btw: same behaviour during an update 2.2→2.3. Under 2.3 I can also switch back to the 2.1 and 2.2 MKP, which should not be possible.)
