Bug 2013969

Summary: oVIrt CSI driver fails on creating PVCs on hosted engine storage domain
Product: OpenShift Container Platform Reporter: Gal Zaidman <gzaidman>
Component: StorageAssignee: aos-storage-staff <aos-storage-staff>
Storage sub component: oVirt CSI Driver QA Contact: michal <mgold>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, mburman
Version: 4.8   
Target Milestone: ---   
Target Release: 4.10.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: 2022-03-10 16:19:35 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: 2014845    

Description Gal Zaidman 2021-10-14 08:17:44 UTC
Description of problem:

When you will try to create PVCs on a hosted engine storage domain the CSI will fail due to an error of not finding the storage domain.
After a small investigation, it appears that the problem is with the search string we pass to the oVirt API which on hosted engine storage domains should have a "name=STORAGE-DOMAIN-NAME".

Steps to Reproduce:
Try to install a cluster with the hosted engine storage domain as the OCP storage domain - the installation will fail on image registry and the CSI logs will contain errors on finding the storage domain.

OR

Have a running cluster on a hosted engine with a storage domain set to a non hosted engine storage domain, create a new storage class pointing to the hosted engine storage domain, try to create a PVC, it will fail and the CSI logs will contain errors on finding the storage domain.

Comment 3 michal 2021-11-08 16:14:27 UTC
rhv: 4.4.9.3
ocp: 4.10.0-0.nightly-2021-11-02-191632

steps:
1) create sc with hosted_storage domain
2) create PVC that use this sc
3) look at logs of PVC
4) run oc get PVC and verify that pvc created successfully without error

Comment 7 errata-xmlrpc 2022-03-10 16:19:35 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.10.3 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-2022:0056