Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-38554

Failed to query the network metrics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.17
    • Release
    • None
    • Critical
    • Yes
    • CNF Network Sprint 258
    • 1
    • Approved
    • False
    • Hide

      None

      Show
      None

      Description of problem:
      2 metric tests failed
       https://github.com/openshift/network-metrics-daemon

      • Failure [305.087 seconds]
      NetworkMetricsDaemon
      /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:41
        Network interface metrics
        /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:47
          should have the correct network_name and value on top of default pod network [It]
          /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:92
      
          Timed out after 300.000s.
          Unexpected error:
              <*errors.errorString | 0xc000cb4f30>: 
              no results
              {s: "no results"}
          occurred
      
          /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:369
      
      ------------------------------
      • Failure [325.240 seconds]
      NetworkMetricsDaemon
      /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:41
        Network Name metric
        /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:144
          should return the same values for the new query as the standard query [It]
          /var/lib/jenkins/workspace/ocp-cnf-core-tests/network-metrics-daemon/test/network-metrics-daemon/network_metrics_daemon.go:285
      
          Timed out after 300.001s.
          Unexpected error:
              <*errors.errorString | 0xc00070af50>: 
              no results
              {s: "no results"}
          occurred 

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

      4.17.0-ec.3

      How reproducible:

      100%

      Steps to Reproduce:
      1.

      $ oc exec prometheus-k8s-0 -n openshift-monitoring -- curl http://localhost:9090/api/v1/query?query=container_network_receive_bytes_total%7Bnamespace%3D%22metrictest%22%2Cpod%3D%22metricpod%22%2C+interface%3D%22eth0%22%7D {"status":"success","data":{"resultType":"vector","result":[]}}

      2.
      3.
      Actual results:

      sh-5.1$ curl http://localhost:9090/api/v1/query?query=container_network_receive_bytes_total%7Bnamespace%3D%22metrictest%22%2Cpod%3D%22metricpod%22%2C+interface%3D%22eth0%22%7D
      {"status":"success","data":{"resultType":"vector","result":[]}} 

      Expected results:

      sh-4.4$ curl http://localhost:9090/api/v1/query?query=container_network_receive_bytes_total%7Bnamespace%3D%22metrictest%22%2Cpod%3D%22metricpod%22%2C+interface%3D%22eth0%22%7D {"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"container_network_receive_bytes_total","container":"POD","endpoint":"https-metrics","id":"/kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-podc7d1ccd1_cadb_47ba_b354_76c2ded00d5f.slice/crio-bcc1e86424b24377741e888404eb5013bbc95111ffab24767343f5a73e6fc9db","instance":"10.46.186.71:10250","interface":"eth0","job":"kubelet","metrics_path":"/metrics/cadvisor","name":"k8s_POD_metricpod_metrictest_c7d1ccd1-cadb-47ba-b354-76c2ded00d5f_0","namespace":"metrictest","node":"worker-0","pod":"metricpod","service":"kubelet"},"value":[1722448938.209,"746"]}]}}

      Additional info:

            jdelft Joep van Delft
            rhn-cnf-elevin Evgeny Levin
            Evgeny Levin Evgeny Levin
            Carlos Goncalves, Evgeny Levin
            Carlos Goncalves
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: