Skip to content

mgr/cephadm: block upgrades onto hosts whose CPU cannot run the target release - #72090

Merged
rkachach merged 3 commits into
ceph:mainfrom
djgalloway:ceph-upgrade-x86-64-v2-warning-ed4bea
Oct 6, 2026
Merged

rkachach merged 3 commits into
ceph:mainfrom
djgalloway:ceph-upgrade-x86-64-v2-warning-ed4bea

Conversation

@djgalloway

Copy link
Copy Markdown
Contributor

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 (e.g. mira060, Xeon X3440) are x86-64-v2.

This PR:

  • cephadm gather-facts reports a new cpu_isa_level host fact (e.g. x86-64-v2) computed from /proc/cpuinfo flags
  • ceph orch upgrade start --ceph-version refuses to start an upgrade to a release requiring a higher level than any (non-excluded) host CPU supports, listing the offending 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
  • the check can be disabled with ceph 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

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

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]>
@djgalloway

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@djgalloway

Copy link
Copy Markdown
Contributor Author

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]>
@djgalloway
djgalloway force-pushed the ceph-upgrade-x86-64-v2-warning-ed4bea branch 2 times, most recently from 2480251 to 359b68c Compare September 25, 2026 16:21
@batrick

batrick commented Sep 25, 2026

Copy link
Copy Markdown
Member

@adk3798 @rkachach this should probably be a blocker for v21.2.0.

@djgalloway

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@djgalloway

Copy link
Copy Markdown
Contributor Author

jenkins test make check
jenkins test api

@batrick

batrick commented Sep 28, 2026

Copy link
Copy Markdown
Member

Update on this?

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

jenkins test make check arm64

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

jenkins test api

@rkachach

rkachach commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

@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.

@adk3798

adk3798 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

@adk3798 @rkachach this should probably be a blocker for v21.2.0.

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.

@batrick

batrick commented Sep 29, 2026

Copy link
Copy Markdown
Member

@adk3798 @rkachach this should probably be a blocker for v21.2.0.

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.

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.

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.

I can accept just leaving a warning in the notes and not delaying the release.

@rkachach

rkachach commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@rkachach
rkachach merged commit 1ebe599 into ceph:main Oct 6, 2026
17 of 18 checks passed
batrick pushed a commit that referenced this pull request Oct 28, 2026
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]>
aainscow pushed a commit to aainscow/ceph that referenced this pull request Nov 4, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants