Repository navigation
cephadm: fix staggered upgrade - #69691
Merged
Merged
Conversation
Do not mark an upgrade complete until daemons in the filtered scope match the target image. Limited (--limit) upgrades still complete when remaining_count reaches zero. Fixes: https://tracker.ceph.com/issues/62959 Signed-off-by: Guillaume Abrioux <[email protected]>
Contributor
Author
|
jenkins test api |
Contributor
Author
adk3798
approved these changes
Jun 24, 2026
Contributor
Seeing this looks like env issue, re-running |
Contributor
|
jenkins test api |
1 similar comment
Contributor
|
jenkins test api |
This was referenced Jun 25, 2026
FredNass
pushed a commit
to FredNass/ceph
that referenced
this pull request
Sep 25, 2026
Backport of ceph#70314 as a single commit. Upstream, the first commit adds an HTTP-mirror distribution mode and the second drops it, keeping only the registry pre-pull; this applies the net result, so none of the removed local_http code is carried. Add an opt-in upgrade phase (mgr/cephadm/upgrade_image_mirror_method = registry) that pulls the target image in parallel on every in-scope host before any daemon is upgraded, and learns the target digests and version from those pulls instead of a serial first pull on one host. If pre-distribution fails on any host, the upgrade is paused before any daemon is touched. Fixes: https://tracker.ceph.com/issues/77270 Based-on-patch-by: Frédéric Nass <[email protected]> Signed-off-by: Kobi Ginon <[email protected]> Signed-off-by: Frédéric Nass <[email protected]> (cherry picked from commit 3219728) (cherry picked from commit 275bcf4) Conflicts: src/pybind/mgr/cephadm/upgrade.py: context only - reef lacks errno import, MID_UPGRADE_MUTED_WARNINGS and the main-only UpgradeState fields (crush bucket, autoscale, cephx rotation); added only the image-mirror constants, asyncio import and image_mirror_done src/pybind/mgr/cephadm/module.py: context only - reef lacks max_parallel_osd_upgrades and pg_autoscale_during_upgrade; added only the two upgrade_image_mirror_* options src/pybind/mgr/cephadm/tests/test_upgrade.py: reef imports only CephadmUpgrade/UpgradeState from cephadm.upgrade; added UPGRADE_IMAGE_MIRROR_METHOD_REGISTRY and appended only this PR's tests doc/cephadm/upgrade.rst: reef titles the next section 'Starting the upgrade'; kept reef's heading src/pybind/mgr/cephadm/tests/test_upgrade.py: test_do_upgrade_registry_discovers_without_serial_first_pull asserts on the state populated by the pre-pull, since reef has no filtered-scope completion gate (ceph#69691) and clears upgrade_state when nothing is left to upgrade Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019joi2QbCJyyVwNqHqpJ1vU
4 of 14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Do not mark an upgrade complete until daemons in the filtered scope match the target image. Limited (--limit) upgrades still complete when remaining_count reaches zero.
Fixes: https://tracker.ceph.com/issues/62959
Checklist