Bug 1989712

Summary: OLM fails with 'ResolutionFailed' found multiple channel heads due to deprecated inner channel entry
Product: OpenShift Container Platform Reporter: Ben Luddy <bluddy>
Component: OLMAssignee: Kevin Rizza <krizza>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: bluddy, jiazha, kliberti, krizza, rgopired, swoodman, tflannag
Version: 4.7Keywords: Reopened, Triaged
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1982294 Environment:
Last Closed: 2021-08-17 12:12:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1982294    
Bug Blocks: 1990627    

Comment 3 Jian Zhang 2021-08-06 03:54:40 UTC
1, Install an OCP cluster that contains the fixed PR.

[cloud-user@preserve-olm-env jian]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.0-0.nightly-2021-08-05-222615   True        False         4m      Cluster version is 4.7.0-0.nightly-2021-08-05-222615
[cloud-user@preserve-olm-env jian]$ oc -n openshift-operator-lifecycle-manager exec deploy/catalog-operator -- olm --version
OLM version: 0.17.0
git commit: b0453a0cbe16693a79593022c20274ee2cb22987

2, Create a CatalogSource that consumes an index image that contains the AMQ Stream v1.6.2.

[cloud-user@preserve-olm-env jian]$ cat cs-amq.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: amq-operators
  namespace: openshift-marketplace
spec:
  displayName: Jian Operators
  image: quay.io/olmqe/rh-index:amq
  priority: -100
  publisher: Jian
  sourceType: grpc
  updateStrategy:
    registryPoll:
      interval: 10m0s
[cloud-user@preserve-olm-env jian]$ oc create -f cs-amq.yaml 
catalogsource.operators.coreos.com/amq-operators created

[cloud-user@preserve-olm-env jian]$  oc get packagemanifest|grep Jian|grep amq
amq-streams                                          Jian Operators        45s
amq-broker                                           Jian Operators        45s
amq7-interconnect-operator                           Jian Operators        45s
amq-online                                           Jian Operators        45s
amq-broker-rhel8                                     Jian Operators        45s
amq-broker-lts                                       Jian Operators        45s

3, Subscribe to the amqstreams.v1.6.2.
[cloud-user@preserve-olm-env jian]$ oc get sub -n openshift-operators
NAME          PACKAGE       SOURCE          CHANNEL
amq-streams   amq-streams   amq-operators   amq-streams-1.6.x

[cloud-user@preserve-olm-env jian]$ oc get ip -n openshift-operators
NAME            CSV                 APPROVAL    APPROVED
install-r4rkx   amqstreams.v1.6.2   Automatic   true

[cloud-user@preserve-olm-env jian]$ oc get csv -n openshift-operators
NAME                DISPLAY                             VERSION   REPLACES            PHASE
amqstreams.v1.6.2   Red Hat Integration - AMQ Streams   1.6.2     amqstreams.v1.6.1   Succeeded

4, Upgrade it to AMQ Streams v1.7.2 by switching the channel to `stable`. no `multiple channel heads` error was found. Verify it.
[cloud-user@preserve-olm-env jian]$ oc get sub -n openshift-operators
NAME          PACKAGE       SOURCE          CHANNEL
amq-streams   amq-streams   amq-operators   stable
[cloud-user@preserve-olm-env jian]$ oc logs catalog-operator-654d9858d7-4cztt|grep "multiple channel heads"
[cloud-user@preserve-olm-env jian]$

Comment 6 errata-xmlrpc 2021-08-17 12:12:09 UTC
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 (OpenShift Container Platform 4.7.24 bug fix update), 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-2021:3032