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

Bug 1885228

Summary: Create Instance of Prometheus from operator returns blank page for non cluster-admin users
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, jlee, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Prometheus swagger definition contained a $ref property which could not be resolved. Consequence: A runtime error occurred on the Prometheus operand creation form Fix: Add 'definitions' property to schema returned by the 'definitionFor' helper function so that '$ref' can be resolved Result: Prometheus schema '$ref' resolves and no runtime error occurs
Story Points: ---
Clone Of: 1884613 Environment:
Last Closed: 2020-11-24 12:42:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1885239    
Bug Blocks:    

Description Jon Jackson 2020-10-05 13:30:35 UTC
+++ This bug was initially created as a clone of Bug #1884613 +++

Description of problem:
Normal user cannot create prometheus instances from the web console.


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


How reproducible:
Always 

Steps to Reproduce:
OpenShift 4.5.6~4.5.11
1. Install Prometheus Operator from operator hub
2. Login to user account with non cluster-admin access in the project
3. Try to create an instance of prometheus CRD's in the web console (prometheus, servicemonitor, etc.)
4. Blank screen returned

Actual results:
Blank screen returned

Expected results:
It should show prometheus instance information.

Additional info:

The blank screen looks exactly the same from this bugzilla ticket(https://bugzilla.redhat.com/show_bug.cgi?id=1883679)

--- Additional comment from Jon Jackson on 2020-10-02 14:37:48 EDT ---

This is unrelated to https://bugzilla.redhat.com/show_bug.cgi?id=1883679.

This is caused by unresolved $ref properties in the Prometheus swagger definition. Fix pending.

Comment 1 Jon Jackson 2020-10-23 15:10:28 UTC
PR pending

Comment 3 Yadan Pei 2020-11-13 07:11:44 UTC
1. cluster admin user subscribe Prometheus Operator to user namespace
2. project admin user logins and create the resources operator had defined, such as Prometheus, Service Monitor, no errors and resources are created successfully

Verified on 4.5.0-0.nightly-2020-11-13-045120

Comment 6 errata-xmlrpc 2020-11-24 12:42:10 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 (Moderate: OpenShift Container Platform 4.5.20 bug fix and golang security update), 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/RHSA-2020:5118