Bug 1751513
Summary: | Failed to update from a head of channel | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jian Zhang <jiazha> |
Component: | OLM | Assignee: | Vu Dinh <vdinh> |
OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | bandrade, chuo, dageoffr, jfan, nhale, scolange, vdinh |
Version: | 4.2.0 | Keywords: | Reopened |
Target Milestone: | --- | ||
Target Release: | 4.3.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: | 2020-01-23 11:05: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: |
Description
Jian Zhang
2019-09-12 05:56:54 UTC
In your package yaml here: https://github.com/jianzhangbjz/operator-registry/blob/olm-1055/manifests/etcd/etcd.package.yaml#L3-L4 You have the "head" of the singlenamespace-alpha channel set to 0.6.1: currentCSV: etcdoperator.v0.6.1 Since there are no newer operators in that channel, the installed operator remains at 0.6.1. Moving this to 4.3. Will continue to try and reproduce but even if this is valid, we dont feel its a release blocker. Will evaluate early in the 4.3 cycle and consider if a 4.2.z backport if valid. Hi, Vu Thanks for your explanation! I see now. I set the `skipRange` on the currentCSV etcdoperator.v0.9.4 in https://github.com/jianzhangbjz/operator-registry/blob/ocp42-olm-1055/manifests/etcd/etcdoperator.v0.9.4.clusterserviceversion.yaml#L8-L9 1, Create an image called "quay.io/jiazha/etcd-operator:skip-42" to consume these manifest. 2, Create a CatalogSource to consume this image. mac:~ jianzhang$ cat cs-42.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: test-operator namespace: openshift-marketplace spec: sourceType: grpc image: quay.io/jiazha/etcd-operator:skip-42 displayName: Jian Operators publisher: jian 3, Create a subscription to etcdoperator.v0.9.0. mac:~ jianzhang$ cat sub-42-skip.yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: generateName: etcd-skip- namespace: jian spec: source: test-operator sourceNamespace: openshift-marketplace name: etcd installPlanApproval: Manual startingCSV: etcdoperator.v0.9.0 channel: singlenamespace-alpha 4, Approval it. Now, we can see the next version is etcdoperator.v0.9.4, not etcdoperator.v0.9.2, LGTM. mac:~ jianzhang$ oc get sub NAME PACKAGE SOURCE CHANNEL etcd-skip-wbsxc etcd test-operator singlenamespace-alpha mac:~ jianzhang$ oc get ip NAME CSV APPROVAL APPROVED install-6sp7d etcdoperator.v0.9.4 Manual false install-mgb7w etcdoperator.v0.9.0 Manual true mac:~ jianzhang$ oc get csv NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.0 etcd 0.9.0 Succeeded 5, The etcdoperator.v0.9.2 has been skipped. LGTM, verify it. mac:~ jianzhang$ oc get ip NAME CSV APPROVAL APPROVED install-6sp7d etcdoperator.v0.9.4 Manual true install-mgb7w etcdoperator.v0.9.0 Manual true mac:~ jianzhang$ oc get csv NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4 etcd 0.9.4 etcdoperator.v0.9.0 Succeeded Cluster version is 4.3.0-0.nightly-2019-11-10-185106 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:0062 |