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

fix test_id:4146 Prometheus Endpoints should include VMI phase metrics for all running VMs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • CNV v4.22.z
    • CNV v4.22.0
    • CNV Virt-Cluster
    • None
    • None

      test_id:4146 is currently passing incorrectly (False Positive) because it attempts to query the kubevirt_vmi_info metric from the virt-handler endpoint.

      Root Cause: The kubevirt_vmi_info metric is exclusively reported by virt-controller, not virt-handler. Consequently:

      • The metrics query returns an empty result set.
      • The test logic ranges over the empty results.
      • The test completes successfully without ever executing its assertions.

      Suggested Fix: Update the test to query the virt-controller endpoint, or delete the test since we cover that in unit tests of the virt-controller metric collector.

              rh-ee-dsionov Daniel Sionov
              rh-ee-dsionov Daniel Sionov
              Kedar Bidarkar Kedar Bidarkar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: