Werk #8362: Improved error handling in case of upgrades/downgrades
Component | Core & setup |
Title | Improved error handling in case of upgrades/downgrades |
Date | Nov 27, 2015 |
Checkmk Edition | Checkmk Enterprise (CEE) |
Checkmk Version | 1.2.7i4 |
Level | Prominent Change |
Class | Bug Fix |
Compatibility | Compatible - no manual interaction needed |
CMC stores its current state in versioned state files, which are only downwards-compatible. When an incompatible state file is found, we immediately terminate the monitoring core during startup.
- When the state file version is older than the current one (e.g. after an upgrade), convert it on the fly (as previously), but keep a backup of the previous version in "state-version-XY".
- When the state file version is newer than the current one (e.g. after a downgrade), emit an error message, hinting at the backup version if there is one.