Bug 2247667

Summary: [4.12] Host assisted clone hangs because some provisioners don't allow mounting block PVC read only
Product: Container Native Virtualization (CNV) Reporter: Adam Litke <alitke>
Component: StorageAssignee: Alex Kalenyuk <akalenyu>
Status: CLOSED MIGRATED QA Contact: dalia <dafrank>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: akalenyu, dafrank, ngavrilo
Target Milestone: ---   
Target Release: 4.12.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.12.9-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2247657 Environment:
Last Closed: 2023-12-14 16:16:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2247657    
Bug Blocks: 2247666    

Comment 1 dalia 2023-11-23 16:57:09 UTC
verified on cnv 4.12.9

Steps:
1. update storage profile to use  host assisted clone in case needed:
   spec:
     cloneStrategy: copy
2. create source pvc with block volume mode and RWO
3. clone the source PVC
4. oc get *-sourc-pod -oyaml:
     ...
  volumes:
  - name: cdi-data-vol
    persistentVolumeClaim:
      claimName: source-dv

can see that we don't have readOnly: true