Bug 1975392
| Summary: | Console and downloads pods should have more specific anti-affinity label selectors | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Samuel Padgett <spadgett> |
| Component: | Management Console | Assignee: | Jakub Hadvig <jhadvig> |
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.8 | CC: | aos-bugs, jokerman, yapei |
| Target Milestone: | --- | ||
| Target Release: | 4.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
Version: 4.9.0-0.nightly-2021-06-22-193627
Cluster ID: 0b2af0aa-9f64-4e6c-82f3-07898d29db50
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
|
|
| Last Closed: | 2021-10-18 17:36:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Samuel Padgett
2021-06-23 15:08:30 UTC
Still valid. PR up and in merge process. $ oc get deployment console -o json | jq .spec.template.spec.affinity
{
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchExpressions": [
{
"key": "component",
"operator": "In",
"values": [
"ui"
]
}
]
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
}
$ oc get deployment downloads -o json | jq .spec.template.spec.affinity
{
"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector": {
"matchExpressions": [
{
"key": "component",
"operator": "In",
"values": [
"downloads"
]
}
]
},
"topologyKey": "kubernetes.io/hostname"
}
]
}
}
$ oc get pods --show-labels
NAME READY STATUS RESTARTS AGE LABELS
console-7f9574c678-rjxqr 1/1 Running 0 3h32m app=console,component=ui,pod-template-hash=7f9574c678
console-7f9574c678-z8kc4 1/1 Running 0 3h32m app=console,component=ui,pod-template-hash=7f9574c678
downloads-7d9df5cb76-s7fs4 1/1 Running 0 3h34m app=console,component=downloads,pod-template-hash=7d9df5cb76
downloads-7d9df5cb76-zmhmp 1/1 Running 0 3h34m app=console,component=downloads,pod-template-hash=7d9df5cb76
download and console pods now have more specific labels "component=downloads/ui", console and downloads deployment have more precise anti-affinity rules
Verified on 4.9.0-0.nightly-2021-07-18-155939
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.9.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-2021:3759 |