Bug #46264
closed
mon: check for mismatched daemon versions
Added by Tyler Sheehan almost 4 years ago.
Updated over 3 years ago.
Description
There is currently no test to check if the daemon are all running the same version of ceph
Related issues
1 (1 open — 0 closed)
Hm. what do yo expect? Upgrade scenarios can become complicated with more than two versions running at the same time while doing an upgrade. What do you have in mind?
I have completed a function called check_daemon_version located in src/mon/Monitor.cc This function goes through mon_metadata checking the version of each daemon against the version of the first daemon, if there are any that do not match their rank is added to a map function and returned along with the value true, once returned the map is cycled through in src/mon/HealthMonitor.cc file function get_health_status() where the rank is used to get the name of each daemon and return them. Their is an if statement inside HealthMintor.cc that ensures even if check_daemon_version returns true the error message will only occur if a specific amount of time has passed and check_daemon_version returns true again.
If you wish to take a look at the code you can check the current pull request located here: https://github.com/ceph/ceph/pull/35876
- Project changed from Ceph to RADOS
- Subject changed from mon:add test for daemon versions to mon:check for mismatched daemon versions
- Category deleted (
Monitor)
- Status changed from New to Fix Under Review
- Assignee set to Tyler Sheehan
- Pull request ID set to 35876
- Assignee changed from Tyler Sheehan to David Zafman
- Pull request ID changed from 35876 to 36759
- Subject changed from mon:check for mismatched daemon versions to mon: check for mismatched daemon versions
- Status changed from Fix Under Review to In Progress
- Related to Feature #24462: MDSMonitor: check for mixed version MDS added
Delay 7 days by default with a config value before health warning/error when detected.
- Status changed from In Progress to Resolved
Also available in: Atom
PDF