Bug 2235151 - [4.14] repeating reconcile error when no default storage class
Summary: [4.14] repeating reconcile error when no default storage class
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.13.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.14.0
Assignee: Arnon Gilboa
QA Contact: Harel Meir
URL:
Whiteboard:
Depends On: 2232347
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-27 07:24 UTC by Arnon Gilboa
Modified: 2023-11-08 14:06 UTC (History)
6 users (show)

Fixed In Version: v4.14.0.rhel9-1747
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2232347
Environment:
Last Closed: 2023-11-08 14:06:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 2869 0 None Merged [release-v1.57] Do not fail DV reconcile if storage class is not found 2023-08-27 07:33:19 UTC
Red Hat Issue Tracker CNV-32683 0 None None None 2023-09-06 13:05:13 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:06:27 UTC

Comment 2 Harel Meir 2023-08-29 07:45:42 UTC
Verified on 4.14:

1. remove the default storageclass with:

   oc patch storageclass hostpath-csi-basic -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "false"}}}'

2. deleted a dv from NS=openshift-openshift-virtualization-os-images, with:

   oc delete dv centos-stream8-ad852c1cc2d2 $NS
   result: dv & pvc "centos-stream8-ad852c1cc2d2" deleted,
           and the DV is in phase pending: 
           NAME                          PHASE     PROGRESS   RESTARTS   AGE
           centos-stream8-ad852c1cc2d2                                   82s

3. set the default SC back to hostpath-csi-basic

And the import triggered:
[cloud-user@ocp-psi-executor-xl ~]$ oc get dv $NS
NAME                          PHASE              PROGRESS   RESTARTS   AGE
centos-stream8-ad852c1cc2d2   ImportInProgress   99.45%                3m30s

and eventually succeeded:
[cloud-user@ocp-psi-executor-xl ~]$ oc get pvc $NS
NAME                          STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS         AGE
centos-stream8-ad852c1cc2d2   Bound    pvc-ad0d912b-ecc9-4719-9382-93ee61f6dcdf   149Gi      RWO            hostpath-csi-basic   5m16s

#NOTE:
a senario of changing the default storageclass to OCS also succeeded for VolumeSnapshotCreation instead of PVC

Comment 4 errata-xmlrpc 2023-11-08 14:06:16 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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix 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-2023:6817


Note You need to log in before you can comment on or make changes to this bug.