Repository navigation
mgr/cephadm: block upgrades onto hosts whose CPU cannot run the target release - #72090
Conversation
Compute the highest x86-64 microarchitecture level (x86-64-v1 through x86-64-v4) supported by the host CPU from /proc/cpuinfo feature flags and report it as a new 'cpu_isa_level' fact on x86-64 hosts. This will be used by the orchestrator to refuse upgrades to releases whose official builds require a higher level than a host CPU supports (umbrella builds require x86-64-v3). Fixes: https://tracker.ceph.com/issues/80878 Assisted-by: Claude Fable 5 Signed-off-by: David Galloway <[email protected]>
|
jenkins test windows |
|
jenkins retest |
…t release Official builds of umbrella (21.x) and later require CPUs supporting x86-64-v3. On an x86-64-v2 host the binaries in the target image die with "Fatal glibc error: CPU does not support x86-64-v3"; today the first casualty is cephadm's in-container version probe, so the upgrade pauses with a misleading UPGRADE_FAILED_PULL alert (found this way on the sepia lab Long Running Cluster, whose mira nodes are x86-64-v2). Compare each host's cpu_isa_level fact against the level the target release requires: * 'ceph orch upgrade start --ceph-version' refuses to start and lists the incompatible hosts * image-based and in-flight upgrades pause with a new UPGRADE_INCOMPATIBLE_HOST_CPU health alert once the target version is learned from the image * 'ceph orch upgrade check' reports the incompatibility * staggered upgrades restricted via --hosts only consider those hosts * hosts with an unknown ISA level (no facts yet, non-x86) are skipped The check can be disabled with 'ceph config set mgr mgr/cephadm/upgrade_cpu_isa_check false' for custom-built images targeting older CPU generations. Fixes: https://tracker.ceph.com/issues/80878 Assisted-by: Claude Fable 5 Signed-off-by: David Galloway <[email protected]>
2480251 to
359b68c
Compare
|
jenkins test dashboard cephadm |
|
jenkins test make check |
|
Update on this? |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test api |
|
@batrick I'm not sure how critical this situation is, or how likely it is to happen in practice. If it can affect a large number of users in production, I'd say we should make it a release blocker. If it only affects users with a very specific (rare) topology, we can document it in the release notes instead. Either way, I'd also like to hear @adk3798's opinion on this. |
If I'm understanding this all correctly that it's going to be the 21.2.0 image on older cpu hardware where you hit this I'm not sure we actually gain much by making sure this patch is in that release. In order for cephadm to run this compatibility check you'd have to be running an image with the patch. If the image can't run on your hardware you'd hit the failure at image pull time like the tracker describes. If you can run the image then you should be good to go and the check won't do anything for you. It would only be in clusters with a mix of hardware where some machines can support it and some can't where the mgr daemons are on hosts that can support it where you'd actually get the better error reporting. If anything, the more important thing would be to include this in a squid and tentacle point release and then stress upgrading to the latest point of whichever major the user is on before upgrading to umbrella. I think that's the only way users would get the full benefits of this outside of the mixed hardware setup I tried to describe. Of course if we did want to backport it to squid/tentacle before the umbrella release we should probably just have it in the umbrella release anyway at that point. |
In the case of the LRC, the ceph-mgr was on a compatible host so the image pull + upgrade proceeds. However, 2 osd hosts were not (mira). The failure materializes as an inability to pull the image on those hosts.
I can accept just leaving a warning in the notes and not delaying the release. |
|
Teuthology run was successful. Failing Test cases are not related to this PR: |
A source PR can contain a merge of main done for conflict resolution (e.g. #72090, commit 22e6137). Such merge commits are never cherry-picked into a backport, but the parity audit enumerated every commit in merge^1..merge^2 and therefore flagged all three of that PR's backports (#72512, #72513, #72514) with "MISSING IN BACKPORT" and releng-audit-fail, forcing manual overrides. Skip commits with more than one parent when building the source commit list: only the content commits of the original PR need parity. Assisted-by: Claude Fable 5 Signed-off-by: David Galloway <[email protected]>
A source PR can contain a merge of main done for conflict resolution (e.g. ceph#72090, commit 22e6137). Such merge commits are never cherry-picked into a backport, but the parity audit enumerated every commit in merge^1..merge^2 and therefore flagged all three of that PR's backports (ceph#72512, ceph#72513, ceph#72514) with "MISSING IN BACKPORT" and releng-audit-fail, forcing manual overrides. Skip commits with more than one parent when building the source commit list: only the content commits of the original PR need parity. Assisted-by: Claude Fable 5 Signed-off-by: David Galloway <[email protected]>
Official builds of umbrella (21.x) and later require CPUs supporting x86-64-v3. On an x86-64-v2 host the binaries in the target image die with
Fatal glibc error: CPU does not support x86-64-v3; today the first casualty is cephadm's in-container version probe, so the upgrade pauses with a misleadingUPGRADE_FAILED_PULLalert. Found this way on the sepia lab Long Running Cluster, whose mira nodes (e.g. mira060, Xeon X3440) are x86-64-v2.This PR:
gather-factsreports a newcpu_isa_levelhost fact (e.g.x86-64-v2) computed from/proc/cpuinfoflagsceph orch upgrade start --ceph-versionrefuses to start an upgrade to a release requiring a higher level than any (non-excluded) host CPU supports, listing the offending hostsUPGRADE_INCOMPATIBLE_HOST_CPUhealth alert once the target version is learned from the imageceph orch upgrade checkreports the incompatibilityceph config set mgr mgr/cephadm/upgrade_cpu_isa_check false(custom-built images targeting older CPUs)To be useful the check must run in the old release's mgr, so this needs backports (tracked in the linked tracker issue).
Fixes: https://tracker.ceph.com/issues/80878
Checklist