-
Notifications
You must be signed in to change notification settings - Fork 546
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: include trashed parent images while calculating the clone depth #4029
base: devel
Are you sure you want to change the base?
Commits on Dec 1, 2023
-
rbd: use
librbd.OpenImageById()
ifrbdVol.ImageID
is set`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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f83da27 - Browse repository at this point
Copy the full SHA f83da27View commit details -
rbd: prevent presetting the ImageID of a new volume
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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b78dcd5 - Browse repository at this point
Copy the full SHA b78dcd5View commit details -
rbd: set/get correct ImageID in more places
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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e1cd7a5 - Browse repository at this point
Copy the full SHA e1cd7a5View commit details -
rbd: skip flattening if an image in trash
Signed-off-by: Niels de Vos <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9ac559c - Browse repository at this point
Copy the full SHA 9ac559cView commit details -
rbd: the DeleteVolume CSI procedure should succeed on deleted images
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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a9d723 - Browse repository at this point
Copy the full SHA 2a9d723View commit details -
rbd: include trashed parent images while calculating the clone depth
The `getCloneDepth()` function did not account for images that are in the trash. A trashed image can only be opened by the image-id, and not by name anymore. Closes: ceph#4013 Signed-off-by: Niels de Vos <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f18c571 - Browse repository at this point
Copy the full SHA f18c571View commit details -
rbd: pass a max-depth to
getCloneDepth()
The `getCloneDepth()` function does not need to traverse the whole chain of parents when a certain max-limit is configured. The traversing can be aborted once the hard-limit is reached. This makes the procedure a little more efficient, as unnecessary traversing is prevented. Signed-off-by: Niels de Vos <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b8a5675 - Browse repository at this point
Copy the full SHA b8a5675View commit details -
rbd: return CSI expected errors while flattening a snapshot or volume
By returned `ABORTED` or `PRECONDITION_FAILED` in the right places, the CO will retry with the same arguments until the snapshot is `ReadyToUse`. This causes restoring a volume from a snapshot to be delayed, until the snapshot can be used. Signed-off-by: Niels de Vos <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a29bea6 - Browse repository at this point
Copy the full SHA a29bea6View commit details