Bug 1586015 - "oc get groups -L labelname" does not show label values
Summary: "oc get groups -L labelname" does not show label values
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.11.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-05 10:17 UTC by Brian Dooley
Modified: 2023-09-14 04:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-11 05:38:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0636 0 None None None 2019-04-11 05:38:28 UTC

Description Brian Dooley 2018-06-05 10:17:09 UTC
Description of problem:
when executing "oc get groups" with the -L option, the label values are not shown.

Version-Release number of selected component (if applicable):
$ oc version
oc v3.9.0+191fece
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth

Server https://ocp-api.wccl-lab1.intapp.eu:8443
openshift v3.9.27
kubernetes v1.9.1+a0ce1bc657

How reproducible:
reproducable

Steps to Reproduce:

1. Create a testgroup with the following yaml:
apiVersion: user.openshift.io/v1
kind: Group
metadata:
  name: TESTGROUP
  labels:
    testlabel: testvalue
users:
- JA32225

2. execute the command:
$ oc get group TESTGROUP -L testlabel

Actual results:
NAME        USERS     TESTLABEL
TESTGROUP   JA32225


Expected results:
NAME        USERS     TESTLABEL
TESTGROUP   JA32225    testvalue


Additional info:
the label is correctly applier, with the -l option we are able to filter:
$ oc get group -l testlabel=testvalue
NAME        USERS
TESTGROUP   JA32225

Comment 2 Juan Vallejo 2018-09-24 22:05:52 UTC
This has been fixed as of oc v3.11.

Comment 6 Maciej Szulik 2019-02-27 21:54:46 UTC
This was fixed in 3.11 and setting target release to such and moving to qa.

Comment 7 zhou ying 2019-02-28 05:16:00 UTC
Confirmed with latest ocp 3.11 , the issue has fixed:

[root@ip-172-18-5-241 ~]# oc get group TESTGROUP -L testlabel
NAME        USERS     TESTLABEL
TESTGROUP   zhouy     testvalue

[root@ip-172-18-5-241 ~]# oc version
oc v3.11.82
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Comment 9 errata-xmlrpc 2019-04-11 05:38:22 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, 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-2019:0636

Comment 10 Red Hat Bugzilla 2023-09-14 04:29:26 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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