-
Bug
-
Resolution: Done-Errata
-
Undefined
-
CNV v4.14.4
-
None
-
0.42
-
False
-
-
False
-
---
-
---
-
-
Storage Core Sprint 249
-
Medium
-
No
Description of problem:
DataSource condition doesn't update when PVC is not available
Version-Release number of selected component (if applicable):
CNV 4.14.4
How reproducible:
Always
Steps to Reproduce:
1. Run the tests test_automatic_update_for_system_cached_snapshot in cnv-tests
Actual results:
[cloud-user@ocp-psi-executor cnv-tests]$ oc get pvc -n openshift-virtualization-os-images NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE centos-stream8-56483b506433 Bound pvc-31ef6a43-d992-4698-aacf-c4d11b9590df 149Gi RWO hostpath-csi-basic 6d11h centos-stream9-ae6a6b0305a7 Bound pvc-b0a639de-1e49-4c8f-a24d-ede640611593 149Gi RWO hostpath-csi-basic 6d11h centos7-8ea5aa5fcbf1 Bound pvc-879b6d29-1b34-4002-baed-5470e8a633a8 149Gi RWO hostpath-csi-basic 6d11h fedora-bbc58d0576a2 Bound pvc-49086aa6-0c4c-4a2d-8c4d-0e955e1fbb35 149Gi RWO hostpath-csi-basic 6d11h rhel8-57e79c0c46b9 Bound pvc-a3abf3d1-670e-493e-a9ae-b384ecfedb40 149Gi RWO hostpath-csi-basic 6d11h [cloud-user@ocp-psi-executor cnv-tests]$ oc get das rhel9 -n openshift-virtualization-os-images -o yaml apiVersion: cdi.kubevirt.io/v1beta1 kind: DataSource metadata: annotations: operator-sdk/primary-resource: openshift-cnv/ssp-kubevirt-hyperconverged operator-sdk/primary-resource-type: SSP.ssp.kubevirt.io creationTimestamp: "2024-02-01T04:15:03Z" generation: 56 labels: app.kubernetes.io/component: templating app.kubernetes.io/managed-by: ssp-operator app.kubernetes.io/name: data-sources app.kubernetes.io/part-of: hyperconverged-cluster app.kubernetes.io/version: 4.14.3 instancetype.kubevirt.io/default-instancetype: u1.medium instancetype.kubevirt.io/default-preference: rhel.9 kubevirt.io/dynamic-credentials-support: "true" name: rhel9 namespace: openshift-virtualization-os-images resourceVersion: "7625246" uid: 81edb57e-47a2-447c-9adb-a73c0b98afd4 spec: source: pvc: name: rhel9 namespace: openshift-virtualization-os-images snapshot: name: rhel9-6c486c3e5f8c namespace: openshift-virtualization-os-images status: conditions: - lastHeartbeatTime: "2024-02-07T15:31:41Z" lastTransitionTime: "2024-02-07T15:31:41Z" message: DataSource is ready to be consumed reason: Ready status: "True" type: Ready source: snapshot: name: rhel9-6c486c3e5f8c namespace: openshift-virtualization-os-images
Expected results:
DataSource condition should be updated to False as PVC not found in the namespace
Additional info:
It is working on 4.15 above version
- links to
-
RHEA-2024:127487 OpenShift Virtualization 4.14.4 Images