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

[hypershift]Should alert when pod has a PodDisruptionBudge(minAvailable=1 disruptionsAllowed 0)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.14.0
    • HyperShift
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • Rejected
    • None
    • Customer Facing
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      Should alert when pod has a PodDisruptionBudge(minAvailable=1 disruptionsAllowed 0)
      

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

      4.13.0-0.nightly-2023-04-21-084440
      

      How reproducible:

      always

      Steps to Reproduce:

      1 ) Create pod and PodDisruptionBudget on hypershift hosted cluster:
      `oc new-app --image=quay.io/openshifttest/hello-openshift:1.2.0`
      `oc create poddisruptionbudget test51876 --min-available=1 --selector=deployment\=hello-openshift`
      2) Scale down the deploy to replicas=0;
      3) Check the alert from openshift-monitoring
      `export token=oc create token prometheus-k8s -n openshift-monitoring`
      `oc -n openshift-monitoring exec -c prometheus prometheus-k8s-0 -- curl -k -H "Authorization: Bearer $token" 'https://prometheus-k8s.openshift-monitoring.svc:9091/api/v1/query?query=ALERTS%7Balertname%3D%22PodDisruptionBudgetAtLimit%22%7D'`
      

      Actual results:

      3. Can’t get alert from the prometheus;
      

      Expected results:

      3. Should get alert from the prometheus.

       

              agarcial@redhat.com Alberto Garcia Lamela
              yinzhou@redhat.com Ying Zhou
              Ying Zhou
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: