Bug 1983933

Summary: [oVirt] CSI expansion should work in offline mode
Product: OpenShift Container Platform Reporter: Gal Zaidman <gzaidman>
Component: StorageAssignee: Gal Zaidman <gzaidman>
Storage sub component: oVirt CSI Driver QA Contact: Gal Zaidman <gzaidman>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, mburman, mgold
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: Environment:
Last Closed: 2021-10-18 17:40:26 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: 1983930    
Bug Blocks: 1953674    

Description Gal Zaidman 2021-07-20 08:28:47 UTC
Description of problem:

In Openshift 4.9 we added the csi-resizer.
Currently, the resizer doesn't work in OFFLINE mode due to an implementation based on DiskAttachments and the fact that the NodeStage Cap needs fixing[1].
Once BZ[1] is done we should port to implementation based on Disk objects to support OFFLINE expansion.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1983930
Version-Release number of selected component (if applicable):

How to test:
make sure test case:
"External Storage [Driver: csi.ovirt.org] [Testpattern: Dynamic PV (default fs)(allowExpansion)] volume-expand Verify if offline PVC expansion works"
passes

Comment 2 michal 2021-08-06 10:17:45 UTC
if I create pvc without pod and resize of pvc works, is it enough to check?

Comment 3 Gal Zaidman 2021-08-08 07:18:38 UTC
(In reply to michal from comment #2)
> if I create pvc without pod and resize of pvc works, is it enough to check?

yes, also in CSI tests I see this is working so we have a pretty good coverage

Comment 4 michal 2021-08-08 07:26:59 UTC
step to reproduce:
1) Create PVC and don't create any pod 
2) resize storage of PVC
3) Check that size of storage update
actual:
size updated successfully.

Comment 7 errata-xmlrpc 2021-10-18 17:40:26 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