Bug 1694571 - Got unexpected msg when create etcd-operator in singlenamespace in OperatorHub
Summary: Got unexpected msg when create etcd-operator in singlenamespace in OperatorHub
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.1.0
Hardware: x86_64
OS: Linux
Target Milestone: ---
: 4.1.0
Assignee: Alec Merdler
QA Contact: Yadan Pei
Depends On:
TreeView+ depends on / blocked
Reported: 2019-04-01 07:03 UTC by ge liu
Modified: 2019-05-06 13:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-04-23 02:18:09 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description ge liu 2019-04-01 07:03:18 UTC
Description of problem:

Setup ocp 4.0 cluster, login web console, and navigate to 'Operator Hub', select etcd-operator, in page "Create Operator Subscription", check 'singlenamespace-alpha' option in 'Update Channel' and check 'A specific namespace on the cluster' in 'Installation Mode', select a customer's namespace, such as:'ocp-test-boss', Currently, the button 'Subscribe' is blue and could be clicked, click 'Subscribe', the operation will succeed, the etcd-operator will be created successfull in the specified namespace. but if you haven't clicked the button 'Subscribe' right now, and after 5-10 seconds, the web page prompt msg: "Namespace does not support install modes for this Operator." and button 'Subscribe' will be grey.

Cluster version is 4.0.0-0.nightly-2019-03-28-030453
console commit: 7cddd5b3b4f1ba6b4f4e17993f6f00ed6b17dcbc

How reproducible:

Steps to Reproduce:
As description
Actual results:
As title.
Expected results:
There is not unexpected msg prompts.

Comment 1 Alec Merdler 2019-04-16 19:15:37 UTC
Confirmed this behavior, due to incorrect logic when checking the `targetNamespace` (https://github.com/openshift/console/blob/master/frontend/public/components/operator-hub/operator-hub-subscribe.tsx#L33)

Comment 2 Alec Merdler 2019-04-17 17:32:00 UTC

Comment 4 ge liu 2019-04-23 02:12:17 UTC
Verified in 4.1.0-0.nightly-2019-04-22-192604

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