Description of problem:
When I try to clone a pvc with block volume mode, I get error "failed to provision volume with StorageClass "ocs-storagecluster-ceph-rbd": error getting handle for DataSource Type PersistentVolumeClaim by Name rbdpvc: the source PVC and destination PVCs must have the same volume mode for cloning. Source is Block, but new PVC requested Filesystem"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an rbd with storage class ocs-storagecluster-ceph-rbd and access mode rwx
2. Click Clone PVC in this pvc's actions menu
3. Click Clone on the confirmation modal
Cloning of the pvc fails
Pvc is cloned successfully
Created attachment 1712671 [details]
Events log of rbd pvc's clone with the error
I re-tested with 4.6.0-0.nightly-2020-09-21-030155, an rbd pvc with block volume mode was cloned successfully, the clone reached status Bound without any errors.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.