Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-4547

Cannot update Kogito operator using OLM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • 1.3.0.Final
    • Operator
    • None
    • False
    • False
    • Undefined
    • Hide

      Build and push Kogito operator bundle based on 1.3.x branch.
      Create and push Kogito operator catalog based on community catalog, add built bundle:

      opm index add --bundles <bundle image>  --from-index registry.redhat.io/redhat/community-operator-index:latest  --tag <catalog image> -c podman
      

      Create Catalog source:

      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      metadata:
        name: custom-kogito-catalog
        namespace: openshift-marketplace
      spec:
        sourceType: grpc
        image: <catalog image>
      

      Create `test` namespace.
      Create OperatorGroup:

      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        name: test
        namespace: test
      spec:
        targetNamespaces:
          - test
      

      Create Kogito operator 1.2.0 subscription with automatic update to 1.3.0:

      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: test
        namespace: test
      spec:
        channel: alpha
        name: kogito-operator
        source: custom-kogito-catalog
        sourceNamespace: openshift-marketplace
        installPlanApproval: Automatic
        startingCSV: kogito-operator.v1.2.0
      

      Inspect InstallPlan CRs, InstallPlan responsible for update fails with error in description.

      Show
      Build and push Kogito operator bundle based on 1.3.x branch. Create and push Kogito operator catalog based on community catalog, add built bundle: opm index add --bundles <bundle image> --from-index registry.redhat.io/redhat/community-operator-index:latest --tag <catalog image> -c podman Create Catalog source: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: custom-kogito-catalog namespace: openshift-marketplace spec: sourceType: grpc image: <catalog image> Create `test` namespace. Create OperatorGroup: apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: name: test namespace: test spec: targetNamespaces: - test Create Kogito operator 1.2.0 subscription with automatic update to 1.3.0: apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: test namespace: test spec: channel: alpha name: kogito-operator source: custom-kogito-catalog sourceNamespace: openshift-marketplace installPlanApproval: Automatic startingCSV: kogito-operator.v1.2.0 Inspect InstallPlan CRs, InstallPlan responsible for update fails with error in description.
    • ---
    • ---
    • 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8)

      When OLM tries to update Kogito operator to 1.3 the install plan fails with error:

              error updating service:
              kogito-operator-controller-manager-metrics-service: Service
              "kogito-operator-controller-manager-metrics-service" is invalid:
              [metadata.resourceVersion: Invalid value: "": must be specified for an
              update, spec.clusterIP: Invalid value: "": field is immutable]
      

            tarkhand Tarun Khandelwal (Inactive)
            ksuta Karel Suta
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: