Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: use ImageID where possible, add ParentID to prevent confusion #4273

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from

Conversation

nixpanic
Copy link
Member

librbd.OpenImageById() works if the image is in the trash, so it makes
it possible to get the parent of the image.

When a new volume is not created yet, the ImageID should not be set to
the ID of the snapshot.

In some places the ImageID is used as the ID of the parent. That is very
confusing and prone to errors. Instead, fetch the right ImageID where
possible, and set ParentID for referencing to parent images.


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 unrelated
    failure (please report the failure too!)

@nixpanic
Copy link
Member Author

/test ci/centos/mini-e2e/k8s-1.28

@nixpanic
Copy link
Member Author

/test ci/centos/mini-e2e/k8s-1.28

@nixpanic nixpanic marked this pull request as ready for review November 27, 2023 14:10
@nixpanic nixpanic requested a review from a team November 27, 2023 14:11
@nixpanic
Copy link
Member Author

/test ci/centos/mini-e2e/k8s-1.28

`librbd.OpenImageById()` works if the image is in the trash, so it makes
it possible to get the parent of the image.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
When a new volume is not created yet, the ImageID should not be set to
the ID of the snapshot.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
In some places the ImageID is used as the ID of the parent. That is very
confusing and prone to errors. Instead, fetch the right ImageID where
possible, and set ParentID for referencing to parent images.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>
If the RBD-image is deleted already, the DeleteVolume CSI procedure is
expected to report success (as it should be idempotent). In case the
returned error indicates "RBD image not found", the error is ignored and
the DeleteVolume procedure continues.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
@nixpanic
Copy link
Member Author

/test ci/centos/mini-e2e/k8s-1.28

@nixpanic nixpanic added the keepalive This label can be used to disable stale bot activiity in the repo label Dec 21, 2023
@nixpanic
Copy link
Member Author

/test ci/centos/mini-e2e/k8s-1.30

Copy link
Contributor

mergify bot commented Apr 15, 2024

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup component/rbd Issues related to RBD keepalive This label can be used to disable stale bot activiity in the repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant