Bug 1918648

Summary: Subscription page doesn't show InstallPlan correctly
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: low Docs Contact:
Priority: low    
Version: 4.7CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:55:12 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:
Description Flags
Install plan not null none

Description Yadan Pei 2021-01-21 10:10:17 UTC
Description of problem:
Subscription page, InstallPlan shows a 'None' value even if there is an installplan for the subscription

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

How reproducible:

Steps to Reproduce:
1. subscribe etcd operator and wait it to be succeed
2. check subscription and installplan
$ oc get sub etcd -n default -o json | jq '.status.installPlan'
$ oc get sub etcd -n default -o json | jq '.status.installplan'
  "apiVersion": "operators.coreos.com/v1alpha1",
  "kind": "InstallPlan",
  "name": "install-dwvjp",
  "uuid": "7599059a-8b1c-44c3-9499-bfca07cd1e11"

3. Goes to Operators -> Installed Operators -> etcd operator -> click on Subscription tab -> check InstallPlan value

Actual results:
3. It shows 'None'

Expected results:
3. It should show correct IP name and a link to it

Additional info:
We are querying subscription.status.installPlan.name for subscription's installplan, but it has changed in 4.7, now it is subscription.status.installplan.name

export const installPlanForSubscription = (
  installPlans: InstallPlanKind[] = [],
  subscription: SubscriptionKind,
): InstallPlanKind =>
  installPlans.find((ip) => ip?.metadata?.name === subscription?.status?.installPlan?.name);

Comment 2 Siva Reddy 2021-01-27 01:37:58 UTC
Now the install plan value shows the correct value instead of null.

Screen shot attached.


Steps to verify:
 follows the steps in the description (https://bugzilla.redhat.com/show_bug.cgi?id=1918648#c0)

Comment 3 Siva Reddy 2021-01-27 01:38:28 UTC
Created attachment 1751081 [details]
Install plan not null

Comment 6 errata-xmlrpc 2021-02-24 15:55:12 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.