Bug 2053622 - PDB warning alert when CR replica count is set to zero
Summary: PDB warning alert when CR replica count is set to zero
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-controller-manager
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Filip Krepinsky
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-11 16:17 UTC by aharchin
Modified: 2022-08-24 09:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
PodDisruptionBudgetAtLimit Warning alert will not fire anymore when there is no application / replica count is zero.
Clone Of:
Environment:
Last Closed: 2022-08-10 10:49:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-kube-controller-manager-operator pull 630 0 None open Bug 2053622: PodDisruptionBudgetAtLimit should not alert when no app/pods exist 2022-05-25 22:15:18 UTC
Red Hat Knowledge Base (Solution) 6967672 0 None None None 2022-07-14 11:23:51 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:50:06 UTC

Description aharchin 2022-02-11 16:17:43 UTC
Description of problem:

PodDisruptionBudgetAtLimit Warning alert when CR replica count is zero.

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

How reproducible: Everytime


Steps to Reproduce:
1. oc new-project test

2. oc new-app httpd

3. oc create -f pdb

$ cat pdb.yaml

~~~
apiVersion: policy/v1beta1 
kind: PodDisruptionBudget
metadata:
  name: my-pdb
spec:
  maxUnavailable: 1
  selector:  
    matchLabels:
      deployment: httpd
~~~

$ oc get pdb
NAME     MIN AVAILABLE   MAX UNAVAILABLE   ALLOWED DISRUPTIONS   AGE
my-pdb   N/A             0                 0                     3h27m


4. oc scale deployment httpd --replicas=0

5. Wait for some time alert will be triggered at the console.

Actual results: unexpected warning alert


Expected results: As we are intentionally dropping down the replicas it should not generate an alert.

Comment 2 Filip Krepinsky 2022-04-04 21:53:25 UTC
I’m adding UpcomingSprint, because I was occupied by fixing bugs with higher priority/severity, developing new features with higher priority, or developing new features to improve stability at a macro level. I will revisit this bug next sprint.

Comment 4 Filip Krepinsky 2022-05-25 22:18:15 UTC
Thanks, yes I think it makes sense to not fire an alert if there is no application to disrupt (the alert triggers even if there is no deployment)

Comment 7 zhou ying 2022-06-06 08:44:02 UTC
can't see this alter with latest payload : 4.11.0-0.nightly-2022-06-04-014713

Comment 10 Filip Krepinsky 2022-08-03 16:09:15 UTC
We can backport to 4.10. But for 4.9 depends on how critical is this for the customer?

Comment 12 Filip Krepinsky 2022-08-09 17:45:02 UTC
I see. Opened a prerequisite backport https://bugzilla.redhat.com/show_bug.cgi?id=2116983 to start backporting this fix to 4.10 soon

Comment 13 errata-xmlrpc 2022-08-10 10:49:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069

Comment 14 Filip Krepinsky 2022-08-23 18:46:25 UTC
prerequisites merged, I have opened a backport to 4.10 in jira https://issues.redhat.com/browse/OCPBUGS-466

Comment 15 Filip Krepinsky 2022-08-24 09:30:29 UTC
merged - should be in the next 4.10 release


Note You need to log in before you can comment on or make changes to this bug.