Bug 1985795

Summary: OCPonRHV: pvc stuck on pending status when using preallocated storage domain
Product: OpenShift Container Platform Reporter: michal <mgold>
Component: StorageAssignee: Gal Zaidman <gzaidman>
Storage sub component: oVirt CSI Driver QA Contact: michal <mgold>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, gzaidman, jokerman, lleistne, mburman, mfojtik, pelauter
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2013945 (view as bug list) Environment:
Last Closed: 2021-10-18 17:41:09 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 2013945    

Comment 1 Gal Zaidman 2021-07-26 08:54:38 UTC
This is caused by internal logic in the CSI driver, we hard coded the Image format:
https://github.com/openshift/ovirt-csi-driver/blob/master/pkg/service/controller.go#L79


It should be:
NFSx+Preallocated=Raw
SAN+Preallocated = Raw
SAN+Sparse = QCOW2
NFS+Sparse = Raw

Comment 2 michal 2021-08-17 08:25:08 UTC
OCP: 4.9.0-0.nightly-2021-08-07-175228
rhv:
4.4.7-5

check this matrix:
NFSx+Preallocated=Raw
SAN+Preallocated = Raw
SAN+Sparse = QCOW2
NFS+Sparse = Raw

Sparse = define thinprovision = true in sc

check format of disk with engine Api

Comment 5 errata-xmlrpc 2021-10-18 17:41:09 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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-2021:3759