Bug 1828954 - Creating new CR instance shows "Not found" for cluster-scoped CRs
Summary: Creating new CR instance shows "Not found" for cluster-scoped CRs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-28 16:22 UTC by Jan Safranek
Modified: 2020-07-13 17:32 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, creating a cluster-scoped operand from the "Installed Operator" page could result in an error on submit. The form correctly creates the cluster-scoped resource.
Clone Of:
Environment:
Last Closed: 2020-07-13 17:32:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot with the error (459.33 KB, image/png)
2020-04-28 16:22 UTC, Jan Safranek
no flags Details
Created instance (179.33 KB, image/png)
2020-04-30 02:47 UTC, XiaochuanWang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 5234 0 None closed Bug 1828954: Handle cluster-scoped operands in the OperandForm 2020-06-24 01:27:14 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:32:40 UTC

Description Jan Safranek 2020-04-28 16:22:49 UTC
Created attachment 1682549 [details]
screenshot with the error

Version-Release number of selected component (if applicable):
Server Version: 4.5.0-0.nightly-2020-04-28-084038


How reproducible:
Always

Steps to Reproduce:
1. Install AWS EBS CSI driver operator via OLM.
Here's link to current CSV and CRD:
https://github.com/openshift/aws-ebs-csi-driver-operator/blob/0537eaf70662e05ca091b6a8102f41411a3410d1/bundle/manifests/aws-ebs-csi-driver-operator.clusterserviceversion.yaml#L1

https://github.com/openshift/aws-ebs-csi-driver-operator/blob/0537eaf70662e05ca091b6a8102f41411a3410d1/bundle/manifests/aws-csi-driver.crd.yaml#L12

Notice Scope: Cluster in the CRD.

2. On "Operator details" page, click Create Instance


3. On the create instance page, click Create in the Form view
Full URL of the page:
https://console-openshift-console.apps.jsafrane-2212.devcluster.openshift.com/k8s/ns/openshift-aws-ebs-csi-driver-operator/clusterserviceversions/aws-ebs-csi-driver-operator.v4.5.0/csi.openshift.io~v1alpha1~AWSEBSDriver/~new


Actual results:

    Error
    Fix the above errors:
        * Not Found
(see attached picture)

Expected results:

CR is created.

Additional info:

In browser console I can see these two messages:

Failed to load resource: the server responded with a status of 404 (Not Found)
https://console-openshift-console.apps.jsafrane-2212.devcluster.openshift.com/api/kubernetes/apis/csi.openshift.io/v1alpha1/namespaces/openshift-aws-ebs-csi-driver-operator/awsebsdrivers


POST https://console-openshift-console.apps.jsafrane-2212.devcluster.openshift.com/api/kubernetes/apis/csi.openshift.io/v1alpha1/namespaces/openshift-aws-ebs-csi-driver-operator/awsebsdrivers 404 (Not Found)


But the CR is not namespaced!
curl .../apis/csi.openshift.io/v1alpha1/awsebsdrivers works (and returns an empty AWSEBSDriverList). I did not test POST.

Comment 1 Jan Safranek 2020-04-28 16:25:19 UTC
For the record: YAML view on the same page works.

Comment 4 XiaochuanWang 2020-04-30 02:47:11 UTC
Created attachment 1683163 [details]
Created instance

Comment 5 XiaochuanWang 2020-04-30 03:14:32 UTC
Operator instance could be successfully created by the creation form (see the screenshot)
Verified on 4.5.0-0.nightly-2020-04-29-223453

Comment 6 errata-xmlrpc 2020-07-13 17:32:22 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


Note You need to log in before you can comment on or make changes to this bug.