Bug 1923984 - Incorrect anti-affinity for UWM prometheus
Summary: Incorrect anti-affinity for UWM prometheus
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.7
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: 4.8.0
Assignee: Pawel Krupa
QA Contact: hongyan li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-02 11:24 UTC by Pawel Krupa
Modified: 2021-07-27 22:38 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:37:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 1044 0 None open Bug 1923984: Refactor jsonnet to include latest kube-prometheus 2021-02-21 13:48:26 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:38:06 UTC

Description Pawel Krupa 2021-02-02 11:24:19 UTC
Description of problem:
User Workload Prometheus has an incorrect pod anti-affinity rule. 

Bug was introduced in https://github.com/openshift/cluster-monitoring-operator/pull/1018

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

How reproducible:
Always


Steps to Reproduce:
1. Start a cluster with UWM
2. Check UWM prometheus STS
3.

Actual results:
PodAntiAffinity section references the in-cluster prometheus

Expected results:
PodAntiAffinity section references the UWM prometheus and not in-cluster one

Additional info:

Comment 6 hongyan li 2021-03-15 01:48:11 UTC
Test with payload  4.8.0-0.nightly-2021-03-14-134919

# oc -n openshift-user-workload-monitoring get sts prometheus-user-workload -oyaml
--
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: prometheus
                  operator: In
                  values:
                  - user-workload
              namespaces:
              - openshift-user-workload-monitoring

--

Comment 7 Martin Bukatovic 2021-03-15 09:04:48 UTC
*** Bug 1937466 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2021-07-27 22:37:35 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 (Moderate: OpenShift Container Platform 4.8.2 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-2021:2438


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