Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-67125

[IUO-Observability][QE]Mark oci-bv-uhp as default SC before deploying CNV on OCI setups

XMLWordPrintable

    • Quality / Stability / Reliability
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • 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

              rlobillo Ramón Lobillo
              rlobillo Ramón Lobillo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: