Bug 1586015

Summary: "oc get groups -L labelname" does not show label values
Product: OpenShift Container Platform Reporter: Brian Dooley <bdooley>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: low Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, dmoessne, jokerman, mfojtik, mmccomas
Target Milestone: ---Keywords: UpcomingRelease
Target Release: 3.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-11 05:38:22 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 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