rbd: include trashed parents in clone depth checks - #6500
Conversation
a549f16 to
d4c7829
Compare
|
@Mergifyio rebase |
🛑 The pull request rule doesn't match anymoreDetailsThis action has been cancelled. |
d4c7829 to
58b68a6
Compare
There was a problem hiding this comment.
Pull request overview
Updates RBD clone-depth traversal to include trashed ancestors and flatten the correct snapshot-backed image.
Changes:
- Opens ancestor images by ID during depth checks.
- Flattens snapshot backing images during restores.
- Adds end-to-end coverage and polling helpers.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
internal/rbd/rbd_util.go |
Adds ID-based ancestry traversal. |
internal/rbd/controllerserver.go |
Targets snapshot backing images for flattening. |
e2e/rbd.go |
Tests trashed-parent clone-depth behavior. |
e2e/rbd_helper.go |
Adds trash and flatten polling helpers. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
|
https://jenkins-ceph-csi.apps.ocp.cloud.ci.centos.org/job/mini-e2e-operator_k8s-1.35/18/display/redirect After it passes, can you please move the testcase into helper function in another file + add more comments ? Thanks |
Okay. |
|
test passed from e2e log report. Failure seems to have nothing to do with it. |
38187da to
b6b805e
Compare
updated |
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
1 similar comment
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
b6b805e to
c7e0715
Compare
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
1 similar comment
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
c7e0715 to
faa12fa
Compare
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
1 similar comment
|
/test ci/centos/mini-e2e-operator/k8s-1.35 |
|
/queue |
|
@Mergifyio rebase |
🛑 The pull request rule doesn't match anymoreDetailsThis action has been cancelled. |
Open parent images by ID while walking clone ancestry so trashed parents can still be included in clone depth calculation. Keep ID-based opens scoped to this traversal path, and flatten snapshot-backed images instead of the source volume when restoring from snapshots. Signed-off-by: Yite Gu <guyite@bytedance.com>
Add an RBD e2e case that builds a snapshot restore chain with parents in trash and verifies that clone depth is still counted deeply enough to trigger flattening. Signed-off-by: Yite Gu <guyite@bytedance.com>
c92cadf to
59a6b37
Compare
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/k8s-e2e-external-storage/1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.35 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e-helm/k8s-1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.36 |
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
/test ci/centos/mini-e2e/k8s-1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.36 |
|
/test ci/centos/mini-e2e/k8s-1.36 |
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
Failed deploying minikube/rook. |
|
/retest ci/centos/mini-e2e/k8s-1.34 |
|
|
/retest ci/centos/mini-e2e/k8s-1.34 |
Open parent images by ID while walking clone ancestry so trashed
parents can still be included in clone depth calculation. Keep ID-based
opens scoped to this traversal path, and flatten snapshot-backed images
instead of the source volume when restoring from snapshots.
Describe what this PR does
Provide some context for the reviewer
Is there anything that requires special attention
Do you have any questions?
Is the change backward compatible?
Are there concerns around backward compatibility?
Provide any external context for the change, if any.
For example:
Related issues
Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.
Fixes: #issue_number
Future concerns
List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.
Checklist:
guidelines in the developer
guide.
Request
notes
updated with breaking and/or notable changes for the next major release.
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>: retest the<job-name>after unrelatedfailure (please report the failure too!)