-
Story
-
Resolution: Unresolved
-
Major
-
None
-
CNV v4.20.0
-
None
OCI deployment automation is not setting any default StorageClass.That is affecting some tests but also the proper deployment of OpenShift Virtualization, as the storage components require this default StorageClass to fully deploy the OpenShift Virtualization solution.
In other words, without default storageClass, we'll have:
$ oc get pvc -n openshift-virtualization-os-images No resources found in openshift-virtualization-os-images namespace.
Therefore, the automation should set the default SC prior to the installation. The pseudo-code can be something like below:
if $(oc get infrastructures.config.openshift.io/cluster -o json | jq .spec.platformSpec.external.platformName) == "oci"; then # default_sc="oci-bv-uhp" oc patch storageclass oci-bv-uhp -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}' oc patch storageclass oci-bv-uhp -p '{"metadata": {"annotations": {"storageclass.kubevirt.io/is-default-virt-class": "true"}}}' fi
This issue has been detected because there are several testcases in observability that are not working:
- tests.observability.metrics.test_vms_metrics.TestVmSnapshotPersistentVolumeClaimLabels.test_metric_kubevirt_vmsnapshot_persistentvolumeclaim_labels
- tests.observability.metrics.test_cdi_metrics.test_metric_kubevirt_cdi_storageprofile_info
- tests.observability.metrics.test_vms_metrics.TestVmDiskAllocatedSizeLinux.test_metric_kubevirt_vm_disk_allocated_size_bytes
- is caused by
-
CNV-43316 QE run IUO & Observability tier2 and get them passing on OCI bare metal
-
- Closed
-