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

Workload Dashboard not gracefully handling the NaN values

    XMLWordPrintable

Details

    • No
    • False
    • Hide

      None

      Show
      None
    • Fixed issue with with stacked charts in Observe > Dashboards that caused the charts to disappear when one or more invalid queries were used.
    • Bug Fix
    • In Progress

    Description

      Description of problem:

      When a namespace has a Resource Quota applied to it the Workload Graphs in the Observe view does not renders properly.

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create a new project/namespace
      2. Apply the following Resource Quota (just a sample) to it
      ```
      kind: ResourceQuota
      apiVersion: v1
      metadata:
        name: staging-workshop-quota
      spec:
        hard:
          limits.cpu: '3'
          limits.memory: 3Gi
          pods: '10'
      ```
      3. From the Developer Console, access the Observe View 3. From teh Dashboard list, select `Kubernetes / Compute Resources / Namespaces (Workloads)` Option 

      Actual results:

      The Graph is not rendered (see attached screenshot)

      Expected results:

      The Graph should render even with no data point

      Additional info:

      When you have a Resource Quota applied to the namespace you can try this query to see the `NaN` value returned.
      
      ```
      curl -G -s -k -H "Authorization: Bearer $(oc whoami -t)" 'https://thanos-querier-openshift-monitoring.apps.cluster-your cluster domain here/api/v1/query' --data-urlencode 'query=scalar(kube_resourcequota{cluster="", namespace="user9-staging", type="hard",resource="requests.memory"})'
      ```
      
      sample respose
      ```
      {"status":"success","data":{"resultType":"scalar","result":[1682600794.396,"NaN"]}}
      ```

      Attachments

        Activity

          People

            rh-ee-pyurkovi Peter Yurkovich
            rafael.soares Rafael Soares
            Junqi Zhao Junqi Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: