Bug 1803777

Summary: Installing older version of an operator with manual strategy breaks UI
Product: OpenShift Container Platform Reporter: Martin Gencur <mgencur>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.zCC: afield, aos-bugs, jokerman, nhale, spadgett
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-18 17:17:53 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
Install plan detail
none
Subscription detail
none
Subscription list after approving first installplan none

Description Martin Gencur 2020-02-17 12:41:14 UTC
Created attachment 1663508 [details]
Install plan detail

Description of problem:

When I try to install an older version of an operator, for example Service Mesh 1.0.6, it's not possible to approve it because after clicking on "1 requires approval" the OCP console returns an error page: "404: Page Not Found"
However, the installplan exists (checked via oc get installplan -n openshift-operators) and it's possible to approve it via CLI.

I'll attach screenshots.

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

OCP 4.3.1

How reproducible:

Steps to Reproduce:
1. Use the following subscription to install Service Mesh and apply it via CLI

apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: servicemeshoperator
  namespace: openshift-operators
spec:
  channel: "1.0"
  installPlanApproval: Manual
  name: servicemeshoperator
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  startingCSV: servicemeshoperator.v1.0.6

2. Go to UI: Operators -> Installed Operators (in openshift-operators namespace)
3. Click "1 requires approval"

Actual results:

Error page.

Expected results:

The page shows details of the installplan and I'm able to click "Approve"

Additional info:

Comment 1 Martin Gencur 2020-02-17 12:41:47 UTC
Created attachment 1663509 [details]
Subscription detail

Comment 2 Martin Gencur 2020-02-17 12:50:33 UTC
Created attachment 1663510 [details]
Subscription list after approving first installplan

Comment 3 Martin Gencur 2020-02-17 12:52:12 UTC
I also attached a screenshot of the subscription list after approving the first installplan via OC CLI. The first version of the operator is installed (I see the pods running) but the OLM says "Cannot update - Catalog source was removed"

Comment 5 Samuel Padgett 2020-02-18 17:17:53 UTC

*** This bug has been marked as a duplicate of bug 1783651 ***