Bug 2106944 - Affinity rule created in console deployment for single-replica infrastructure
Summary: Affinity rule created in console deployment for single-replica infrastructure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.z
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On: 2111037
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-13 22:55 UTC by OpenShift BugZilla Robot
Modified: 2022-09-21 14:10 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 14:10:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console-operator pull 664 0 None open [release-4.10] Bug 2106944: InfrastructureTopology must be driving console affinity rule creation 2022-09-08 08:51:06 UTC
Red Hat Product Errata RHBA-2022:6532 0 None None None 2022-09-21 14:10:57 UTC

Description OpenShift BugZilla Robot 2022-07-13 22:55:48 UTC
+++ This bug was initially created as a clone of Bug #2093852 +++

Description of problem:
Console operator erroneously creates console deployment with an affinity rule when running in a cluster with HA control plane (ControlPlaneTopology=="HighlyAvailable"/"External") and non-HA infrastructure plane (InfrastructureTopology=="SingleReplica").

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


How reproducible:
To reproduce the issue, create an OCP cluster with 3 control plane nodes and 1 worker node. Console deployment will have non-empty affinity clause, even though the number of console replicas is 1:
```
kind: Deployment
apiVersion: apps/v1
...
  name: console
  ...
spec:
  replicas: 1
  ...
  template:
    ...
    spec:
      ...
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchExpressions:
                  - key: component
                    operator: In
                    values:
                      - ui
              topologyKey: kubernetes.io/hostname
...
````

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
This issue causes console deployment updates to stall because new console replica will not start on the same single worker node due to the anti-affinity rule.

--- Additional comment from jhadvig on 2022-06-06 08:34:42 UTC ---

Created from https://github.com/openshift/console-operator/issues/656

Comment 5 errata-xmlrpc 2022-09-21 14:10:53 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 (OpenShift Container Platform 4.10.33 bug fix 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/RHBA-2022:6532


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