-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add a command to flatten RBD PVC #222
Comments
Please let me know if you have any comments. If there is no objection, I'll implement this feature. |
tagging @Madhu-1 @travisn @Rakshith-R |
Back from PTO and still catching up with things for now A side effect of doing this increases the storage consumption and breaks the chain of images.
RBD Image name and pool name might already be part of volumeAttributes we don't need to decode the volumeHandle |
In my opinion, it would not be a big problem because admins explicitly flatten their image rather than implicitly being done by ceph-csi or Rook. However, as I described in the discussion in ceph-csi, parent PVC's data will remain in the temporary rbd image after deleting the parent rbd image. This limitation should be documented, or the temporary rbd image should be removed on flattening.
Do you have any concern about braking the chain? If I recall correctly, rbd image still remember its parent image after flattening.
Indeed, thanks. |
the cleanup/steps to cleanup of the temporary image need to be handled properly as required.
Nothing we should be good
|
Thank you for your reply. One more question. It is OK to delete the temporary image from |
@satoru-takeuchi it should be safe to delete it as it will not be used anymore. we introduced temporary image to avoid i/o performance issue when accessing the image mounted to the PVC because we never flattened the mapped image, we always wanted to flatten the temporary image. In this case as we are trying to flatten the actual rbd image we are move the temporary image to trash and add a task to remove it from trash. |
@Madhu-1 Thank you very much! I'll implement this feature with considering the result of this discussion.
I finally understood why temporary image exists, haha. |
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
- Flatten an RBD image corrensponding to the target PVC - Remove the corresponding temporary RBD image Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Add flatten-rbd-pvc command to accomplish the following things: - Flatten an RBD image corrensponding to the target PVC. - Remove the temporary RBD image too. Closes: rook#222 Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
Is this a bug report or feature request?
What should the feature do:
Add a command to flatten RBD PVC.
What is use case behind this feature:
This feature will reduce the operation cost to flatten RBD PVC by hand like this.
volumeHandle
file of the PVvolumeHandle
fieldRelated issues and discussions:
RBD Async: Failed to mirrored Cloned PVC created from another PVC (PVC-PVC Clone) in ceph-csi
RBD Async: Failed to mirrored Cloned PVC created from snapshot (PVC from snapshot) in ceph-csi
How to achieve mirrirong cloned PVCs in ceph-csi
The text was updated successfully, but these errors were encountered: