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

Bug 1836177

Summary: Wrong sample CR shown for OLM managed CR
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, jokerman, jonjacks, xiaocwan
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Create link on the operator details -> resource instance list page for cluster-scope resources was incorrect. Consequence: Link lead to the incorrect resource creation page. Fix: Update the create link to point to the correct page. Result: Correct resource page and sample data is shown when creating a cluster-scoped resource from the operand details -> resource instance list page.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:39:24 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
Verification screenshot none

Description Jan Safranek 2020-05-15 10:45:01 UTC
"Create EBS CSI Driver" shows a wrong CR sample:

Steps to Reproduce:
1. Install AWS EBS CSI driver operator through OLM
(this may be hard, because it's scheduled to be released in 4.5, so the default OperatorHub does not have it yet)

CRD + CSV: https://github.com/openshift/aws-ebs-csi-driver-operator/tree/master/bundle/manifests

2. Click: "Installed Operators" -> "EBS CSI Driver" in "Provided API column" -> "Create EBS CSI Driver"

Actual results:

This template shows up:
apiVersion: csi.openshift.io/v1alpha1
kind: AWSEBSDriver
metadata:
  name: example
spec: {}

Expected results:

Template from CSV:
apiVersion: csi.openshift.io/v1alpha1
kind: AWSEBSDriver
metadata:
  name: cluster
  labels: {}
spec:
  logLevel: Normal
  managementState: Managed
  operatorLogLevel: Normal


Additional info:
I get the correct sample when I go through "Installed Operators" -> "AWS EBS CSI Operator" -> "(+) Create Instance".

I checked a random operator (Local Storage), it offers the same sample for both ways how to create the CR. The main difference is that the AWSEBSDriver CRs are not namespaced, while LocalVolumes are.

Comment 1 Jan Safranek 2020-05-18 08:10:11 UTC
Simple way how to make AWS EBS operator available in OperatorHub: https://bugzilla.redhat.com/show_bug.cgi?id=1828958#c5

Comment 4 XiaochuanWang 2020-05-25 03:08:39 UTC
Created attachment 1691675 [details]
Verification screenshot

Comment 5 XiaochuanWang 2020-05-25 03:09:53 UTC
The default YAML content of Create AWSEBSDriver view is as expected.
Please refer to the screenshot.
Verified on 4.5.0-0.nightly-2020-05-24-191212

Comment 6 errata-xmlrpc 2020-07-13 17:39:24 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, 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:2409