Bug 1877891

Summary: Addition of unaccessible helm repo (via CR) cause all helm charts to disappear
Product: OpenShift Container Platform Reporter: morstad
Component: Dev ConsoleAssignee: Predrag Knezevic <pknezevi>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.6CC: aballant, aos-bugs, fgiloux, kangell, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.6.0-0.nightly-2020-09-03-152603 Cluster ID: dc380fcc-216b-4b2a-a3ee-a9c3063bda60 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Last Closed: 2020-10-27 16:39:40 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:
Attachments:
Description Flags
Addition of unaccessible helm repo (via CR)does not cause all helm charts to disappear-1
none
Addition of unaccessible helm repo (via CR)does not cause all helm charts to disappear-2
none
Addition of unaccessible helm repo (via CR)does not cause all helm charts to disappear-3 none

Description morstad 2020-09-10 16:49:52 UTC
Description of problem:

If create HelmChartRepository CR with url pointing to index which don't have access to, all helm charts are removed from view.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Add CR for redhat charts repo : https://redhat-developer.github.io/redhat-helm-charts 
2. Notice helm charts in dev console
3. Add CR for chart repo which is unacceptable

Actual results:
No Helm charts are displayed

Expected results:
Helm charts from accessible helm repos are displayed

Additional info:

Comment 2 Frederic Giloux 2020-09-18 09:22:45 UTC
I was able to reproduce with 4.6.0-fc.5.

Error message in the web console:
Uncaught error 
Object { promise: {…}, reason: Error }
main-chunk-2740776163008ab419f0.min.js:1
    onunhandledrejection main-chunk-2740776163008ab419f0.min.js:1
    t vendors~main-chunk-20c0dcf0f05702796467.min.js:151400
    exports vendors~main-chunk-20c0dcf0f05702796467.min.js:151400
    D vendors~main-chunk-20c0dcf0f05702796467.min.js:151400
    exports vendors~main-chunk-20c0dcf0f05702796467.min.js:82548
    <anonymous> vendors~main-chunk-20c0dcf0f05702796467.min.js:82548
    y vendors~main-chunk-20c0dcf0f05702796467.min.js:82548
    b vendors~main-chunk-20c0dcf0f05702796467.min.js:82548
Error while fetching an original source: TypeError: NetworkError when attempting to fetch resource.
Source URL: webpack:///main-chunk-2740776163008ab419f0.min.js

Comment 6 spathak@redhat.com 2020-10-12 12:23:06 UTC
Created attachment 1720950 [details]
Addition of unaccessible helm repo (via CR)does not cause all helm charts to disappear-1

Comment 7 spathak@redhat.com 2020-10-12 12:23:50 UTC
Created attachment 1720951 [details]
Addition of unaccessible helm repo (via CR)does not cause all helm charts to disappear-2

Comment 8 spathak@redhat.com 2020-10-12 12:24:24 UTC
Created attachment 1720952 [details]
Addition of unaccessible helm repo (via CR)does not cause all helm charts to disappear-3

Comment 9 spathak@redhat.com 2020-10-12 12:25:10 UTC
Verified on build version: 4.6.0-0.nightly-2020-10-03-051134
Browser version: chrome 84

Comment 11 errata-xmlrpc 2020-10-27 16:39:40 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 (OpenShift Container Platform 4.6 GA Images), 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-2020:4196