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

PTP CI: Configured prometheus rate time window does not match cadvisor scrap interval

XMLWordPrintable

    • No
    • CNF RAN Sprint 249, CNF RAN Sprint 250
    • 2
    • False
    • Hide

      None

      Show
      None

      The ci test scripts failed the test if configured prometheus rate time window is less than 2 times of cadvisor scrape interval. However the cadvisor scrape interval can vary from cluster to cluster and is not controlled by the ptp rest scripts. The rate time window should be adjusted according to the actual reading of cadvisor scrape interval in the cluster to avoid this failure.

        INFO   [Feb 15 14:41:22.746][ptp.go: 165] Configured rate timeWindow: 1m0s, cadvisor scrape interval: 60 secs.
        << Captured StdOut/StdErr Output  [FAILED] configured time window (1m0s) is lower than twice the cadvisor scraping interval (60 secs)
        Expected
            <int>: 60
        to be >=
            <int>: 120
        In [It] at: /Users/jacding/workspace/openshift/ptp-operator/test/conformance/parallel/ptp.go:169 @ 02/15/24 14:41:22.747

              jacding@redhat.com Jack Ding
              jacding@redhat.com Jack Ding
              Bonnie Block Bonnie Block
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: