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
VR CR failing to decode CSI identifier (string underflow) for static PV #102
Comments
@lvsimon1 cephcsi does not support any operation except mount/unmounting for static volumes https://github.com/ceph/ceph-csi/blob/devel/docs/static-pvc.md |
Ok, perhaps you can help me with what I was trying to do originally, which is - how to "specify" the name of a dynamically created image, such that it can be "known" by a geographically separated mirror and hence mounted by a claim automatically? I'm trying to create a failover but without specifiying the name of the image as it is created, I'm unsure how I can code the claim to be made on the other system. |
As you are creating the Dynamic PVC which internally creates an RBD image with some unique name. During Failover you need to use some tool like velero etc to back up the kubernetes object from the primary cluster and restore the same kubernetes objects on the other cluster. and also the admin can choose to manually backup all the `YAML object from one cluster and restore it to another cluster. |
@lvsimon1 see this helps with Rook and cephcsi failover/failback rook/rook#8411 |
Ok - I'll take a look at Velero then. See I'm currently mirroring (journal based) my image (statically created) and I just wanted to automate the promotion of the secondary image to primary when the primary should fail. I was hoping the volume replication controller would achieve that. I was planning to use KubeFed to start the consumer objects on the secondary cluster if the primary cluster should fail. So the promotion of the secondary image to primary was the only missing element. |
I'm not sure Velero is what I'm looking for since I am journal based rbd mirroring the data. It seems like Velero is based around doing snapshot backups instead. I also am in need of a solution which can be completely automated and switch between the clusters as fast as possible (hence the continuing mirroring between the clusters). |
no issues on the volume replication side here. the main problem is with the cephcsi as it does not support replication operations on the statically created RBD image. |
Understood - but just so I may understand a little better. Would you suggest the following?: Do you think that process would work? |
Ok - I think I've convinced myself that the answer to my previous question is basically yes. (or alternatively I could manually copy the PV/PVC over and it seemed to work. thanks, |
VolumeReplication CR seems to fail to decode CSI identifier (string underflow) for statically created persistent volumes/claims.
ceph-rook version: 1.6 (using ceph 16.2.5, csi driver v3.3.0, volumereplication-operator v0.1.0)
Steps to replicate error:
2: Create persistent volume resource to make use of the image in kubernetes: (yaml file below)
kubectl get volumereplication rbd-vr -o yaml
The text was updated successfully, but these errors were encountered: