Bug 1783651

Summary: 404 Not Found when one opens install plan to approve [openshift-4.4]
Product: OpenShift Container Platform Reporter: Irina Gulina <igulina>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, bpeterse, hasha, jokerman, mgencur, nberry, ppitonak, zpeng
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the link to the InstallPlan resource from the Subscription overview was broken. This made it difficult to approve InstallPlans. The link now works correctly.
Story Points: ---
Clone Of:
: 1788246 (view as bug list) Environment:
Last Closed: 2020-05-13 21:55:21 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:
Bug Depends On:    
Bug Blocks: 1788246    
Attachments:
Description Flags
screenshot 1 for comment #0
none
screenshot 2 for comment #0 none

Description Irina Gulina 2019-12-14 12:03:48 UTC
Created attachment 1645156 [details]
screenshot 1 for comment #0

Description of problem:
In Subscription Overview tab, when one clicks URL titled '1 requires approval' and linked to https://console-openshift-console.apps.working.oc4/k8s/ns/openshift-cnv/installplans/<name of a given ip to approve>, 404 Not Found window is shown

Version-Release number of selected component (if applicable):
4.3.0-0.nightly-2019-12-12-021332

How reproducible:
always

Steps to Reproduce:
1. Install operator n-1 version from n channel, so it can be updated. Set Subscription to Manual
2. Click '1 requires approval' in 'Subscription' tab

Actual results:
404 Not Found. See the screenshots attached.

Expected results:
no 404

Additional info:
in CLI:
>> oc get ip -n openshift-cnv
NAME            CSV                                       APPROVAL   APPROVED
install-g76rv   kubevirt-hyperconverged-operator.v2.1.0   Manual     true
install-hh55s   kubevirt-hyperconverged-operator.v2.2.0   Manual     false
>> oc describe ip install-hh55s -n openshift-cnv | less
Name:         install-hh55s
Namespace:    openshift-cnv
Labels:       <none>
Annotations:  <none>
API Version:  operators.coreos.com/v1alpha1
Kind:         InstallPlan
Metadata:
  Creation Timestamp:  2019-12-14T10:47:49Z
  Generate Name:       install-
  Generation:          1
  Owner References:
    API Version:           operators.coreos.com/v1alpha1
    Block Owner Deletion:  false
    Controller:            false
    Kind:                  Subscription
    Name:                  hco-operatorhub
    UID:                   a53409c7-b970-4b8b-911e-e426dff09c45
  Resource Version:        1121115
  Self Link:               /apis/operators.coreos.com/v1alpha1/namespaces/openshift-cnv/installplans/install-hh55s
  UID:                     2c96d84e-24f6-437e-8737-e9842d0cbd92
Spec:
  Approval:  Manual
  Approved:  false
  Cluster Service Version Names:
    kubevirt-hyperconverged-operator.v2.2.0
Status:
  Catalog Sources:
    hco-catalogsource-config
  Phase:  RequiresApproval
  Plan:
<...>

Comment 1 Irina Gulina 2019-12-14 12:05:30 UTC
Created attachment 1645157 [details]
screenshot 2 for comment #0

Notice URL address in this screenshot, and ip name from CLI logs in comment #0

Comment 2 Irina Gulina 2019-12-14 16:33:28 UTC
Actually, there is no need to have two channels. Just install operator with one channel, and set Approval to Manual before clicking Subscribe. That 404 Not Found will be there.

Comment 4 shahan 2020-02-05 04:13:12 UTC
Install operator, set Subscription to Manual. click '1 requires approval' goes to normal page.
the url is : https://c**/k8s/ns/default/operators.coreos.com~v1alpha1~InstallPlan/install-jhwgk
4.4.0-0.ci-2020-02-05-023531

Comment 5 Samuel Padgett 2020-02-18 17:17:53 UTC
*** Bug 1803777 has been marked as a duplicate of this bug. ***

Comment 6 Samuel Padgett 2020-03-06 18:56:25 UTC
*** Bug 1807307 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2020-05-13 21:55:21 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:0581