Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1542326

Summary: [RFE] Ability to disable listing projects when logging into a cluster from command line.
Product: OpenShift Container Platform Reporter: Mahesh Taru <mtaru>
Component: RFEAssignee: Michal Fojtik <mfojtik>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: medium    
Version: 3.7.1CC: aos-bugs, byount, erich, jokerman, jvallejo, mfojtik, mmccomas, mtaru, wsun, xtian, xxia
Target Milestone: ---Keywords: RFE
Target Release: 3.9.0Flags: mtaru: needinfo-
mtaru: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-21 16:36:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Feature
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Chris Kim 2018-02-20 21:02:35 UTC
Proposed change for upstream here: https://github.com/openshift/origin/pull/18684

Comment 3 openshift-github-bot 2018-02-22 13:34:29 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/812537668af07e8396961a85b83bee9efd731936
Prevent login spam on large clusters

Added conditional to project list that will suppress project
list output on login if the list is greater than 50.

Bug 1542326

Comment 4 Juan Vallejo 2018-02-22 19:05:10 UTC
Origin PR: https://github.com/openshift/origin/pull/18706

`oc login` will now avoid listing any projects if the user has access to more than 50.

Comment 5 Xingxing Xia 2018-03-06 09:17:26 UTC
Verified in oc v3.9.2, when user has access to projects <=50, `oc login` lists all projects. When >50, it shows:

$ oc login https://MASTER
...
Username: xxia-2
Password: 
Login successful.

You have access to 51 projects, the list has been suppressed. You can list all projects with 'oc projects'

Using project "xxia-bug-test-00".