Skip to content

tempest: re-enable image dependency tests#2895

Merged
berendt merged 1 commit into
mainfrom
rl_revert_image_dep_exclusion
May 29, 2026
Merged

tempest: re-enable image dependency tests#2895
berendt merged 1 commit into
mainfrom
rl_revert_image_dep_exclusion

Conversation

@ideaship
Copy link
Copy Markdown
Contributor

Summary

Background

The tests were excluded because Glance returned HTTP 409 when deleting an image with active Nova ephemeral RBD clones. Root cause: the default Ceph compat level (luminous) uses RBD clone v1, where parent snapshots must remain protected as long as clones exist. glance_store's unprotect_snap() call raises ImageBusy before the trash_move() fallback is reached.

The fix is to raise the Ceph OSD map require-min-compat-client to mimic, which enables RBD clone v2 cluster-wide. Under clone v2 the protection lock is not used, unprotect_snap() succeeds, and deletion proceeds via trash_move().

Prerequisites — merge after both of these

Test plan

  • Both prerequisite PRs merged
  • CI run with all three changes shows both ImageDependencyTests passing
  • No regression in remaining tempest suite

Closes #2884

🤖 Generated with Claude Code

Reverts commit 621a279 (PR #2885), which excluded both
ImageDependencyTests as a workaround for the HTTP 409 failure caused by
the Glance/Ceph RBD clone v1 incompatibility.

The root cause is fixed by:
- osism/defaults#284 — adds ceph_require_min_compat_client default
- osism/container-image-ceph-ansible#690 — applies it via ceph-pools

Merge this commit after both of the above are in.

Related: #2884

AI-assisted: Claude Code
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship ideaship force-pushed the rl_revert_image_dep_exclusion branch from 73de952 to ca14645 Compare May 26, 2026 19:26
@ideaship ideaship marked this pull request as ready for review May 26, 2026 19:30
@ideaship ideaship requested a review from berendt May 26, 2026 19:30
@ideaship ideaship moved this from Ready to In review in Human Board May 28, 2026
@berendt berendt merged commit 4cb5120 into main May 29, 2026
2 checks passed
@berendt berendt deleted the rl_revert_image_dep_exclusion branch May 29, 2026 07:40
@github-project-automation github-project-automation Bot moved this from In review to Done in Human Board May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Failed tempest tests in tempest.api.image.v2

3 participants