Bug 2042027
| Summary: | Incorrect feedback for "oc label pods --all" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Anna Savina <asavina> | ||||
| Component: | oc | Assignee: | Maciej Szulik <maszulik> | ||||
| oc sub component: | oc | QA Contact: | zhou ying <yinzhou> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | medium | ||||||
| Priority: | medium | CC: | mfojtik | ||||
| Version: | 4.10 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | 4.11.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-08-10 10:43:03 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: | |||||||
| Attachments: |
|
||||||
|
Description
Anna Savina
2022-01-18 17:27:20 UTC
I've commented on the PR which introduced this problem https://github.com/kubernetes/kubernetes/pull/104372/files#r787728591 This will be fixed in k8s 1.24, see https://github.com/kubernetes/kubernetes/pull/107657 1.24 landed in https://github.com/openshift/oc/pull/1092 [root@localhost ~]# oc get pods NAME READY STATUS RESTARTS AGE hello-openshift 1/1 Running 0 3s hello-openshift2 1/1 Running 0 2m56s [root@localhost ~]# oc label pods hello-openshift status=unhealthy pod/hello-openshift labeled [root@localhost ~]# oc label pods --all status=healthy --overwrite=true pod/hello-openshift labeled pod/hello-openshift2 labeled [root@localhost ~]# oc get pod --show-labels NAME READY STATUS RESTARTS AGE LABELS hello-openshift 1/1 Running 0 50s status=healthy hello-openshift2 1/1 Running 0 3m43s status=healthy [root@localhost ~]# oc version --client Client Version: 4.11.0-0.nightly-2022-05-26-013101 Kustomize Version: v4.5.4 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 |