hpe-storage / co-deployments

HPE storage platforms deployment declarations for container orchestrators
https://scod.hpedev.io
Apache License 2.0
11 stars 45 forks source link

HPE CSI Driver RWX Clon #307

Open jebello opened 2 years ago

jebello commented 2 years ago

Is it possible to create a RWX-Clone of a RWX-PVC with HPE CSI Driver? I have tried but I get the error: Warning ProvisioningFailed 26s (x6 over 57s) csi.hpe.com_3139eee1-8f33-4096-87b8-0c1c4ece4c16_61ee127a-6fc6-4321-b98d-60c70e3c4e12 failed to provision volume with StorageClass "default-primera-storageclass": rpc error: code = Internal desc = Failed to create NFS provisioned volume pvc-6704b0ae-9580-4928-b184-2e1e3cf63efd, err cannot fetch source claim testhpe-rwx for requested clone, err persistentvolumeclaims "testhpe-rwx" not found, rollback status: success Normal ExternalProvisioning 4s (x6 over 57s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "csi.hpe.com" or manually created by system administrator

datamattsson commented 2 years ago

@jebello it's a bit clunky today and by you filing this issue, I don't think we have this documented in sensible way. The NFS server needs to be provisioned in the same namespace as the requesting PVC for this to work. In this blog, we highlight that fact: https://developer.hpe.com/blog/introducing-an-nfs-server-provisioner-for-the-hpe-csi-driver-for-kuberne/ (in the "User control of the NFS server" section).

Let us know how it works out.