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

Storage labels are missing in kube_persistentvolumeclaim_labels metric

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • CNV v4.15.3
    • CNV v4.16.0, CNV v4.15.0
    • Storage Platform
    • None
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • ---
    • ---
    • No

      Description of problem:

      This metric missing the following storage labels:
      
      
      * label_restore_kubevirt_io_source_vm_name
      * label_restore_kubevirt_io_source_vm_namespace
      
      In addition, it harms other metrics that based on it, the vmsnapshots ones.
      
      

      Version-Release number of selected component (if applicable):

      4.16

      How reproducible:

      Always

      Steps to Reproduce:

      1. create a VM snapshot, and VMrestore.
      
      2. run the query: [cloud-user@ocp-psi-executor-xl resources]$ oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus -- curl -s http://127.0.0.1:9090/api/v1/query?query=kube_persistentvolumeclaim_labels{label_restore_kubevirt_io_source_vm_name!='', label_restore_kubevirt_io_source_vm_namespace!=''}  | jq .
      
      3. results in: command terminated with exit code 3
        

      Actual results:

      exit code 3 - which means that those labels not exist.

      Expected results:

      Should get a non empty result.

              agilboa@redhat.com Arnon Gilboa
              rh-ee-hmeir Harel Meir
              Dalia Frank Dalia Frank
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: