Repository navigation
Conversation
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
16 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Test environment: MGRs on v18.2.8, with patched upgrade.py and module.py mounted via extra -v mounts in unit.run. Upgrading to v19.2.4 with ceph orch upgrade start --image quay.io/ceph/ceph:v19.2.4. For this test, I filled the disk on host r01h01 with fallocate -l 20.8G huge_file to trigger ENOSPC and block the pre-pull (and the upgrade) on that host. On some other hosts, I ran podman image prune -a to remove the already-downloaded image, to show how the pre-pull behaves when the image is already present versus when it has to be pulled. Below is example output from the orchestrator logs (ceph.cephadm.log, log_to_cluster_level set to info): |
|
ok to test |
anthonyeleven
left a comment
There was a problem hiding this comment.
Nice. I wonder though about limiting pulls when performing a staggered upgrade. One could make an argument for pulling to all hosts regardless.
|
That would be easy to do: we would just replace pre_pull_hosts with the list of all hosts in the cluster when upgrade_pre_pull_all_hosts is true. I'm not fully convinced, though, since:
I suggest we skip that for now and open another PR if we want to introduce this feature. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
…rade On clusters with many hosts and/or a large container image, cephadm's on-demand image pulls (one per host, just before the first daemon on that host is upgraded) are performed serially as the upgrade progresses and add up to a significant share of the total upgrade time. This is especially harmful when upgrading MDS daemons. The MDS upgrade fails (or scales down) the filesystem first, and only then redeploys its MDS, which pulls the target image on the host as part of the redeployment. The image download therefore happens while the filesystem is already offline, so the pull time is counted directly against filesystem unavailability and is felt by CephFS clients. Pulling a large image on a host that does not yet have it can take a while, needlessly extending the outage. Add an optional phase that, before any daemon is upgraded (and before any filesystem is failed), pulls the target image in parallel on every host in the upgrade scope, capped by upgrade_max_parallel_image_pulls (default 8) to avoid overwhelming the registry. The subsequent per-daemon pull then becomes a no-op, so MDS redeployment no longer waits on an image download while the filesystem is down. Hosts that already have the target image are skipped, and each pull is logged per host with progress. When the upgrade is scoped (--hosts/--services/--daemon-types), only hosts with a daemon in scope are pre-pulled. If the image cannot be pulled on any host, the upgrade is paused before any daemon is touched and the failing host(s) and reason are surfaced in the cluster status, so no daemon is left down while the issue (often a full disk) is resolved. Disabled by default; enable with the mgr/cephadm/upgrade_pre_pull_images option. Signed-off-by: Frédéric Nass <[email protected]>
Signed-off-by: Frédéric Nass <[email protected]>
Signed-off-by: Frédéric Nass <[email protected]>
10f5a31 to
dbc860c
Compare
|
Closing the pull request hence based on this one created an improved pulling |
On clusters with many hosts and a large container image (ceph upstream container image is 1.2GB in size), cephadm's on-demand image pulls (one per host, just before the first daemon on that host is upgraded) are performed serially as the upgrade progresses and add up to a significant share of the total upgrade time.
This is especially harmful when upgrading MDS daemons. The MDS upgrade fails (or scales down) the filesystem first, and only then redeploys its MDS, which pulls the target image on the host as part of the redeployment. The image download therefore happens while the filesystem is already offline, so the pull time is counted directly against filesystem unavailability and is felt by CephFS clients. Pulling a large image on a host that does not yet have it can take a while, needlessly extending the outage.
Add an optional phase that, before any daemon is upgraded (and before any filesystem is failed), pulls the target image in parallel on every host in the upgrade scope, capped by upgrade_max_parallel_image_pulls (default 8) to avoid overwhelming the registry. The subsequent per-daemon pull then becomes a no-op, so MDS redeployment no longer waits on an image download while the filesystem is down.
Hosts that already have the target image are skipped, and each pull is logged per host with progress. When the upgrade is scoped (--hosts/--services/--daemon-types), only hosts with a daemon in scope are pre-pulled. If the image cannot be pulled on any host, the upgrade is paused before any daemon is touched and the failing host(s) and reason are surfaced in the cluster status, so no daemon is left down while the issue (often a full disk) is resolved.
Successfully tested on a Reef v18.2.8 cluster, with the expected behavior.
Opt-in via the following setting:
ceph config set mgr mgr/cephadm/upgrade_pre_pull_images trueOptionally, tune the parallelism (default 8):
ceph config set mgr mgr/cephadm/upgrade_max_parallel_image_pulls 8Fixes: https://tracker.ceph.com/issues/77270
Assisted-by: Claude Opus 4.8 High
Expected behavior successfully validated in the lab on a live Ceph cluster.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.