Bug 1500859

Summary: Incorrect project count in My Projects
Product: OpenShift Container Platform Reporter: Mike Fiedler <mifiedle>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Fiedler <mifiedle>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.7.0CC: aos-bugs, jokerman, mifiedle, mmccomas, yapei
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-31 15:00:56 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 Mike Fiedler 2017-10-11 15:27:36 UTC
Description of problem:

Seeing inconsistent, but usually incorrect, project counts in My Projects

Cluster #1 - a cluster with 209 total projects.   A user with cluster-reader access to all projects gets  "5 of 46 projects" in My Projects.   Clicking View All correctly displays all 209 projects

Cluster #2 - a normal user creates 138 projects.   My Projects shows "5 of 106".   View All again shows all 138.


Version-Release number of selected component (if applicable):  v3.7.0-0.143.2


How reproducible:  Always, so far.   2 attempts.


Steps to Reproduce:
1.  Install a 1 master/1 infra/2 compute cluster in AWS with AllowAll authentication
2.  From master:  oc adm policy add-cluster-role-to-user cluster-reader anyuser
3.  From master:  for i in {0..199}; do oc new-project test$i; done
4.  Login as anyuser on the console

(Can also repeat this as a normal user as well - same result)

Actual results:

Project count in My Project incorrect

Expected results:

Project count correct.
Additional info:

Comment 1 Samuel Padgett 2017-10-11 16:44:00 UTC
Some projects with duplicate creation timestamps were being hidden.

Comment 3 Samuel Padgett 2017-10-11 21:13:47 UTC
The catalog change was picked up in the version bump in this PR:

https://github.com/openshift/origin-web-console/pull/2235

Comment 5 Yadan Pei 2017-10-31 06:33:58 UTC
Hi Mike,

Could you please help verify the bug? Thank you!

Comment 6 Mike Fiedler 2017-10-31 14:50:38 UTC
Verified on 3.7.0-0.188.0

Used steps in description.  Project count is correct.   All projects appear in View All