Bug 1501785

Summary: Always show loading in Catalog when there is no imagestreams nor templates in 'openshift' namespace
Product: OKD Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: David Taylor <dtaylor>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jforrest, mmccomas, rhamilto, spadgett, yapei
Target Milestone: ---   
Target Release: 3.x   
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: 2018-03-20 21:07:44 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 Yadan Pei 2017-10-13 08:17:30 UTC
Description of problem:
The catalog in home page keeps loading when there is no imagestreams and templates under 'openshift' namespace

Version-Release number of selected component (if applicable):
oc v3.7.0-alpha.1+3b758ea-1079

How reproducible:
Always

Steps to Reproduce:
1.Launch openshift without imagestreams and templates under namespace 'openshift' 
2.Login to web console


Actual results:
2.After successful login, user will be on home page. The catalog will keep loading 

Expected results:
2.Should show some useful infomation, such as 0 items or print message telling there is no imagestreams nor templates

Additional info:

Comment 1 Samuel Padgett 2017-10-13 11:35:55 UTC
Dave, you can test with

oc login -u system:admin
oc delete templates --all -n openshift
oc delete imagestreams --all -n openshift

Comment 2 David Taylor 2017-11-09 14:43:58 UTC
Sam, I 'oc cluster up --version=latest' -without the '--service-catalog=true'; and deleted the templates and imagestreams.  When launching console, the catalog just shows a spinner.

Comment 3 Robb Hamilton 2017-11-28 17:38:57 UTC
PR to resolve: https://github.com/openshift/origin-web-console/pull/2493

Comment 4 Yadan Pei 2018-01-24 02:10:30 UTC
Now it shows "There are no catalog items." on Catalog when there is no imagestreams nor templates

Move to VERIFIED, checked on 

OpenShift Master:
    v3.9.0-alpha.3+b41d1da-127
Kubernetes Master:
    v1.9.1+a0ce1bc657
OpenShift Web Console:
    v3.9.0-alpha.3+e0775be-20