+++ This bug was initially created as a clone of Bug #1845539 +++ Description of problem: Upgrades to 4.5 require an 4.4 installation of cluster-logging-operator and elasticsearch-operator. Version-Release number of selected component (if applicable): 4.5.0 How reproducible: - Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The skipRange is wrong. It should be olm.skipRange: ">=4.4.0-0 <4.5.0" in clusterserviceversion.yaml. channels: - currentCSV: clusterlogging.4.2.34-202006110619 name: '4.2' - currentCSV: clusterlogging.4.1.45-202005160309 name: preview - currentCSV: clusterlogging.4.3.25-202006081335 name: '4.3' - currentCSV: clusterlogging.4.2.34-202006110619-s390x name: 4.2-s390x - currentCSV: clusterlogging.4.4.0-202006080610 name: '4.4' - currentCSV: clusterlogging.4.5.0-202006101338 name: '4.5' defaultChannel: '4.5' packageName: cluster-logging
I have tested the CLO and EO upgrade from 4.4 to 4.5. Moving this bug to verified as the upgrades are successful. Below are the testing results: Before upgrade: $ oc get sub -n openshift-logging NAME PACKAGE SOURCE CHANNEL cluster-logging cluster-logging qe-app-registry 4.4 $ oc get sub -n openshift-operators-redhat NAME PACKAGE SOURCE CHANNEL elasticsearch-operator elasticsearch-operator qe-app-registry 4.4 $ oc get csv -n openshift-logging NAME DISPLAY VERSION REPLACES PHASE clusterlogging.4.4.0-202006080610 Cluster Logging 4.4.0-202006080610 Succeeded elasticsearch-operator.4.4.0-202006080610 Elasticsearch Operator 4.4.0-202006080610 Succeeded After upgrade: $ oc get sub -n openshift-logging NAME PACKAGE SOURCE CHANNEL cluster-logging cluster-logging qe-app-registry 4.5 $ oc get sub -n openshift-operators-redhat NAME PACKAGE SOURCE CHANNEL elasticsearch-operator elasticsearch-operator qe-app-registry 4.5 $ oc get csv -n openshift-logging NAME DISPLAY VERSION REPLACES PHASE clusterlogging.4.5.0-202006101338 Cluster Logging 4.5.0-202006101338 clusterlogging.4.4.0-202006080610 Succeeded elasticsearch-operator.4.5.0-202006101717 Elasticsearch Operator 4.5.0-202006101717 elasticsearch-operator.4.4.0-202006080610 Succeeded $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.5.0-0.nightly-2020-06-11-183238 True False 18h Cluster version is 4.5.0-0.nightly-2020-06-11-183238
@Anping The -0 is just a build timestamp and it should not be part of the version check at all. Semver doesn't know anything about build timestamps or so like. If the installation does not proceed please re-eval/contact OLM team.
Verified on clusterlogging-4.5.0-202006180838 and elasticsearch-operator 4.5.0-202006180838
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:2409