Description of problem: When import packed archive DV, with storage API, specifying only the storage class (without access/volume mode), which storage profile includes block and RWX, the PVC created with filesystem instead of block access mode. Version-Release number of selected component (if applicable): 4.10 How reproducible: 100% Steps to Reproduce: 1. Create DV: --- apiVersion: cdi.kubevirt.io/v1beta1 kind: DataVolume metadata: name: unpack-compressed-dv spec: source: http: url: http://.....raw.xz storage: resources: requests: storage: 200Mi storageClassName: ocs-storagecluster-ceph-rbd contentType: archive Actual results: DV and PVC are pending because PVC created with Filesystem volume mode (instead of block) and RWX access mode. Expected results: PVC should be bound and import should fail with the error message: Unable to process data: Unable to transfer source data to target directory: unable to untar files from endpoint: exit status 2 Additional info: DV spec: spec: contentType: archive source: http: url: http://....raw.xz storage: resources: requests: storage: 200Mi storageClassName: ocs-storagecluster-ceph-rbd PVC spec: spec: accessModes: - ReadWriteMany resources: requests: storage: "221920847" storageClassName: ocs-storagecluster-ceph-rbd volumeMode: Filesystem ocs-storagecluster-ceph-rbd storage profile: spec: {} status: claimPropertySets: - accessModes: - ReadWriteMany volumeMode: Block provisioner: openshift-storage.rbd.csi.ceph.com storageClass: ocs-storagecluster-ceph-rbd PVC error message: failed to provision volume with StorageClass "ocs-storagecluster-ceph-rbd": rpc error: code = InvalidArgument desc = multi node access modes are only supported on rbd `block` type volumes
So in the DV I can see you are using contentType: archive. When unpacking archives onto storage we always require a Filesystem mode PV since a tar file can only be extracted onto a filesystem. There is an issue though. For ceph-rbd, RWX/Filesystem is not supported so if we choose to select a Filesystem mode with this storage class it must use RWO. Bartosz, can you check that the list of acceptable pvc profiles for the ceph-rbd provisioner is correct?
Moving back to POST until #2190 merges.
ON_QA for there being a build containing the fix
verified on 4.10.1
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 (Moderate: OpenShift Virtualization 4.10.1 Images security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:4668