Bug 1871736

Summary: [UI] Cloning of pvcs with block volume mode is not working
Product: OpenShift Container Platform Reporter: Elena Bondarenko <ebondare>
Component: Console Storage PluginAssignee: Kanika Murarka <kmurarka>
Status: CLOSED ERRATA QA Contact: Elena Bondarenko <ebondare>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, ebenahar, nberry, nthomas, ocs-bugs
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:31:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Events log of rbd pvc's clone with the error none

Description Elena Bondarenko 2020-08-24 07:19:52 UTC
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):

4.6.0-0.nightly-2020-08-23-214712
ocs-operator.v4.6.0-535.ci


How reproducible:

100%

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


Actual results:

Cloning of the pvc fails


Expected results:

Pvc is cloned successfully

Comment 2 Elena Bondarenko 2020-08-26 11:14:34 UTC
Created attachment 1712671 [details]
Events log of rbd pvc's clone with the error

Comment 5 Elena Bondarenko 2020-09-21 11:53:37 UTC
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.

Comment 8 errata-xmlrpc 2020-10-27 16:31:21 UTC
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.

https://access.redhat.com/errata/RHBA-2020:4196