Bug 1825845 - The installed operator cannot be upgraded after the cluster upgraded to 4.4 from 4.3
Summary: The installed operator cannot be upgraded after the cluster upgraded to 4.4 f...
Keywords:
Status: CLOSED DUPLICATE of bug 1825349
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.4
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: 4.4.0
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On: 1825088
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-20 11:56 UTC by Jian Zhang
Modified: 2020-04-20 17:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-20 17:32:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jian Zhang 2020-04-20 11:56:44 UTC
+++ This bug was initially created as a clone of Bug #1825088 +++

Description of problem:
The installed operator cannot be upgraded due to the lack of 'generation' field of the InstallPlan after the cluster upgraded to 4.4 from 4.3, errors as follows:

E0416 16:32:18.613181       1 queueinformer_operator.go:290] sync {"update" "openshift-logging/install-tmllk"} failed: error updating InstallPlan status: InstallPlan.operators.coreos.com "install-tmllk" is invalid: spec.generation: Required value

mac:~ jianzhang$ oc get ip -n openshift-logging install-tmllk  -o=jsonpath='{.spec}'
map[approval:Automatic approved:true clusterServiceVersionNames:[clusterlogging.4.3.10-202004010435]]




Version-Release number of selected component (if applicable):
4.4.0-0.nightly-2020-04-16-094508

OLM version:
$oc exec catalog-operator-56b67964ff-cchtq  -- olm --version
OLM version: 0.14.2
git commit: 2248cc6bea92a03b450e773b84ef8fa924c9c1c9

How reproducible:
This cluster. 

Steps to Reproduce:
1, Install OCP 4.3
2. Deploy cluster-logging from redhat-operators 
3, Upgrade the OCP 4.3 to 4.4
4. Create a OperatorSource to use QE app registry.
mac:~ jianzhang$ oc get operatorsource -n openshift-marketplace qe-app-registry  -o yaml
apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"operators.coreos.com/v1","kind":"OperatorSource","metadata":{"annotations":{},"name":"qe-app-registry","namespace":"openshift-marketplace"},"spec":{"authorizationToken":{"secretName":"qesecret"},"endpoint":"https://quay.io/cnr","registryNamespace":"openshift-qe-optional-operators","type":"appregistry"}}
  creationTimestamp: "2020-04-16T06:50:36Z"
  finalizers:
  - finalizer.operatorsources.operators.coreos.com
  generation: 75
  name: qe-app-registry
  namespace: openshift-marketplace
  resourceVersion: "675372"
  selfLink: /apis/operators.coreos.com/v1/namespaces/openshift-marketplace/operatorsources/qe-app-registry
  uid: 9389b6aa-7fae-11ea-8773-02505d469966
spec:
  authorizationToken:
    secretName: qesecret
  endpoint: https://quay.io/cnr
  registryNamespace: openshift-qe-optional-operators
  type: appregistry
status:
  currentPhase:
    lastTransitionTime: "2020-04-17T01:01:33Z"
    lastUpdateTime: "2020-04-17T01:01:33Z"
    phase:
      message: The object has been successfully reconciled
      name: Succeeded
  packages: openshifttemplateservicebroker,metering-ocp,nfd,ptp-operator,elasticsearch-operator,cluster-logging,local-storage-operator,sriov-network-operator,clusterresourceoverride,cluster-kube-descheduler-operator,openshiftansibleservicebroker
  
3. Check the csv if upgraded successfully.


Actual results:
# the csv wasn't upgraded to 4.4.0
oc get csv
NAME                                         DISPLAY                  VERSION               REPLACES   PHASE
clusterlogging.4.3.10-202004010435           Cluster Logging          4.3.10-202004010435              Succeeded
elasticsearch-operator.4.3.10-202003311428   Elasticsearch Operator   4.3.10-202003311428              Succeeded

Expected result
# the csv is upgraded to 4.4.0-202004150031
oc get csv
NAME                                         DISPLAY                  VERSION               REPLACES   PHASE
clusterlogging.4.4.0-202004150031           Cluster Logging          4.4.0-202004150031              Succeeded
elasticsearch-operator.4.4.0-202004150031   Elasticsearch Operator   4.4.0-202004150031              Succeeded

Addtional info:

Comment 1 Stephen Cuppett 2020-04-20 17:32:44 UTC

*** This bug has been marked as a duplicate of bug 1825349 ***


Note You need to log in before you can comment on or make changes to this bug.