Bug 1741799
Summary: | The InstallPlan `source` field should NOT be empty | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jian Zhang <jiazha> |
Component: | OLM | Assignee: | Kevin Rizza <krizza> |
OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | bandrade, chezhang, chuo, jfan, jpeeler, scolange, xjiang |
Version: | 4.2.0 | ||
Target Milestone: | --- | ||
Target Release: | 4.2.0 | ||
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: | 2019-10-16 06:36:19 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: |
Description
Jian Zhang
2019-08-16 06:51:05 UTC
> The `source` means the `CatalogSource`. We should fill in relevant values in it.
This is an older part of the API when an installplan was used to install from a single catalog only. Now that we install from multiple catalogs, it doesn't make sense to reference a single catalogsource.
I think that a simpler solution would be to mark these fields as optional, so that they don't show up in the yaml if they're not set.
OK, remove the 'SOURCE' column and ignore the 'source'/'sourceNamespace' fields. LGTM, verify it. Details as below: Cluster version is 4.2.0-0.nightly-2019-08-29-041601 mac:~ jianzhang$ oc exec catalog-operator-6f8bbc4c7b-jfpxk -- olm --version OLM version: 0.11.0 git commit: 02c3e06da1630e53817cb5df4aaf6f270a05ba2e 1, Install OCP 4.2 2, Subscribe an operator, for example, etcd 3, Check its InstallPlan object. mac:~ jianzhang$ oc get sub -n openshift-operators NAME PACKAGE SOURCE CHANNEL etcd etcd community-operators clusterwide-alpha 1, The 'SOURCE' column has been removed. mac:~ jianzhang$ oc get ip -n openshift-operators NAME CSV APPROVAL APPROVED install-5cmqv etcdoperator.v0.9.4-clusterwide Automatic true mac:~ jianzhang$ oc get csv -n openshift-operators NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4-clusterwide etcd 0.9.4-clusterwide etcdoperator.v0.9.2-clusterwide Succeeded 2, The 'source'/'sourceNamespace' fields has been ignored. mac:~ jianzhang$ oc get ip -n openshift-operators install-5cmqv -o yaml ... spec: approval: Automatic approved: true clusterServiceVersionNames: - etcdoperator.v0.9.4-clusterwide status: catalogSources: - community-operators ... 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-2019:2922 |