Skip to content

qa/cephadm: derive container image from cephadm release - #68288

Merged
rkachach merged 1 commit into
ceph:mainfrom
lumir-sliva:qa/fix-cephadm-release-mismatch
Apr 10, 2026
Merged

rkachach merged 1 commit into
ceph:mainfrom
lumir-sliva:qa/fix-cephadm-release-mismatch

Conversation

@lumir-sliva

Copy link
Copy Markdown
Contributor

test_cephadm.sh hardcodes IMAGE_DEFAULT to ceph:main, which
breaks every stable branch whenever main is renamed to a new release.
The mismatch check in cephadm correctly rejects the container because
its release name doesn't match cephadm's own release. This has recurred
on every release transition — see
https://tracker.ceph.com/issues/70212 (squid vs tentacle) and
https://tracker.ceph.com/issues/70405 (quincy vs reef).

Instead of always pulling ceph:main, derive IMAGE_DEFAULT from the
installed cephadm's version output. On stable builds (release type
stable), use ceph:<release> so the container matches cephadm. On
dev builds (main branch), fall back to ceph:main as before. The
IMAGE_DEFAULT env var can still be set externally to override.

Fixes: https://tracker.ceph.com/issues/75821

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)
    • Includes unit test(s)
    • Includes integration test(s)
    • Includes bug reproducer
    • No tests

test_cephadm.sh hardcodes IMAGE_DEFAULT to ceph:main, which breaks
every stable branch whenever main is renamed to a new release. The
mismatch check in cephadm correctly rejects the container because its
release name doesn't match cephadm's own release. This has recurred on
every release transition (squid→tentacle, quincy→reef) without a fix.

Instead of always pulling ceph:main, derive IMAGE_DEFAULT from the
installed cephadm's version output. On stable builds (release type
"stable"), use ceph:<release> so the container matches cephadm. On dev
builds (main branch), fall back to ceph:main as before. The IMAGE_DEFAULT
env var can still be set externally to override.

Fixes: https://tracker.ceph.com/issues/75821
Signed-off-by: Lumir Sliva <[email protected]>
@lumir-sliva
lumir-sliva requested a review from a team as a code owner April 9, 2026 15:12
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

14 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

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.

@rkachach

rkachach commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

ok-to-test

@rkachach rkachach added the wip-rkachach-testing-2 rkachach testing label Apr 10, 2026
@ljflores
ljflores requested review from adk3798 and rkachach April 10, 2026 17:58
@ljflores

Copy link
Copy Markdown
Member

jenkins retest this please

@rkachach

rkachach commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

Teuthology test passed successfully: https://qa-proxy.ceph.com/teuthology/rkachach-2026-04-10_13:14:41-orch:cephadm-wip-rkachach-testing-2-2026-04-10-1212-distro-default-trial/143117/teuthology.log

2026-04-10T13:35:37.184 INFO:tasks.workunit.client.0.trial128.stderr:++ /usr/sbin/cephadm version
2026-04-10T13:35:37.265 INFO:tasks.workunit.client.0.trial128.stderr:+ _ver='cephadm version 21.0.0-397-gcd7e9a10 (cd7e9a10fae3a3c030804fa27457dadb027d2029) umbrella (dev)'
2026-04-10T13:35:37.265 INFO:tasks.workunit.client.0.trial128.stderr:++ echo 'cephadm version 21.0.0-397-gcd7e9a10 (cd7e9a10fae3a3c030804fa27457dadb027d2029) umbrella (dev)'
2026-04-10T13:35:37.265 INFO:tasks.workunit.client.0.trial128.stderr:++ awk '{print $5}'
2026-04-10T13:35:37.267 INFO:tasks.workunit.client.0.trial128.stderr:+ _release=umbrella
2026-04-10T13:35:37.268 INFO:tasks.workunit.client.0.trial128.stderr:++ echo 'cephadm version 21.0.0-397-gcd7e9a10 (cd7e9a10fae3a3c030804fa27457dadb027d2029) umbrella (dev)'
2026-04-10T13:35:37.268 INFO:tasks.workunit.client.0.trial128.stderr:++ awk '{gsub(/[()]/, "", $6); print $6}'
2026-04-10T13:35:37.270 INFO:tasks.workunit.client.0.trial128.stderr:+ _type=dev
2026-04-10T13:35:37.270 INFO:tasks.workunit.client.0.trial128.stderr:+ '[' -n umbrella ']'
2026-04-10T13:35:37.270 INFO:tasks.workunit.client.0.trial128.stderr:+ '[' dev '!=' dev ']'
2026-04-10T13:35:37.270 INFO:tasks.workunit.client.0.trial128.stderr:+ IMAGE_DEFAULT=quay.ceph.io/ceph-ci/ceph:main

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test api

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test rook e2e

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test dashboard

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test dashboard cephadm

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test dashboard

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test dashboard

@rkachach rkachach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rkachach
rkachach merged commit e999950 into ceph:main Apr 10, 2026
7 checks passed
@lumir-sliva
lumir-sliva deleted the qa/fix-cephadm-release-mismatch branch April 10, 2026 21:27
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