-
Notifications
You must be signed in to change notification settings - Fork 554
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 Async: Failed to mirrored Cloned PVC created from snapshot (PVC from snapshot) #2427
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation. |
@Madhu-1 this is marked against the 3.5.0 release, so please revisit the state. |
@Madhu-1 I have some questions.
Q1. Does "snapshot" mean VolumeSnapshot resource and the corresponding clone image? |
Yes
yes but it depends if the snapshot is not deleted and and its also replicated we can replicate cloned PVC as well.
Yes we are working on this feature to support mirroring of cloned PVC as well. |
Thank you for your answer. I understood.
IIRC, we also need to enable mirrorings of intermediate clone images ("csi-snap-XXX" or "csi-vol-XXX-temp"). |
Yes that correct but its hard to maintain such chain as PVC and Volume Snapshot are independent one, we will try to document such drawbacks , @Rakshith-R is working on this one (we might get the support of it in next 1 or 2 release) |
@Madhu-1 We are trying to mirror a cloned RBD image from one cluster to another one. As you commented above, we enabled mirroring for all of the parent image, the temporary ( When we create a cloned image by a PVC-sourced PVC, ceph-csi first creates a temporary snapshot of the sourced image. Then, it deletes the snapshot after creating the cloned image from it.
We verified that RBD mirroring succeeds if we enabled mirroring without deleting the temporary snapshot by directly executing rbd command. Therefore, it seems that RBD mirroring for the cloned image fails because ceph-csi deletes the temporary snapshot. Will this be a limitation of ceph-csi? Or, is ceph-csi going to provide a workaround for this problem? |
i don't think deleting the snapshot is the problem but deleting the clone image created for volume snapshot is the problem. @ushitora-anqou Currently it's a limitation with cephcsi but we have a plan to work on it in a few releases. @Rakshith-R can you please add more details? |
I am yet to do testing on this, but I'll add more details soon. |
If by temporary snapshot you mean kubernetes snapshot, PVC-PVC clone is recommend to overcome this. |
@Rakshith-R Sorry. We actually created a cloned PVC from another PVC (#2426).
The "temporary snapshot" means the "random snap name" in this document. We believe that the current implementation of ceph-csi deletes the temporary snapshot, so it does not allow us to create a cloned PVC from another PVC. |
The temporary snapshot is deleted after the cloning process. @ushitora-anqou |
@Rakshith-R Sorry, in our last comment I replied with the wrong information. I was able to create a cloned PVC from another PVC, but was unable to mirror the RDB image associated with the cloned PVC. The steps I took were as follows:
The result of running
When I checked the RBD mirror daemon, I found the following logs, so I thought that the mirroring was not successful because the snapshot needed to create *-temp had been deleted.
|
I found that this issue is about mirroring cloned PVC from VolumeSnapshot and my posts are about mirroring cloned PVC from PVC. I'll create a POC patch to fix my case and attached this in #2426. |
Failed to mirror PVC created from a snapshot
Steps to Reproduce
Create a PVC
Create a snapshot of PVC
Create a PVC from snapshot
Create VolumeReplication to Enable Replication
Note:- if we flatten the image before mirroring than the image can be mirrored
The text was updated successfully, but these errors were encountered: