Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14507

Autodiscover Kafka broker doesn't work on OCP 4.5

XMLWordPrintable

    • % %
    • build2
    • Hide
      • Install Strimzi operator via OperatorHub
      • Once the Strimzi operator is ready, create Kafka instance via the Strimzi operator
      • Wait till all Kafka pods are ready
        NAME                                          READY   STATUS    RESTARTS   AGE
        my-cluster-entity-operator-594f4754dd-htsqz   3/3     Running   0          59s
        my-cluster-kafka-0                            2/2     Running   0          92s
        my-cluster-kafka-1                            2/2     Running   0          92s
        my-cluster-kafka-2                            2/2     Running   0          92s
        my-cluster-zookeeper-0                        1/1     Running   0          2m16s
        my-cluster-zookeeper-1                        1/1     Running   0          2m16s
        my-cluster-zookeeper-2                        1/1     Running   0          2m16s
        
      • Install Fuse online to the same namespace (I have used fuse online install script to install latest 7.7)
        bash install_ocp.sh --setup
        bash install_ocp.sh --grant developer
        bash install_ocp.sh
        
      • Install Fuse online to the same namespace (I have used fuse online install script to install latest 7.7)documentation
        oc create clusterrole kafkas.kafka.strimzi.io-view --verb=get,list --resource=kafkas --resource=crd
        oc adm policy add-cluster-role-to-user kafkas.kafka.strimzi.io-view -z syndesis-server
        
      • After that, wait 1-2 minutes due to ENTESB-13113 and go to the Fuse Online UI.
      • Create Kafka connector (Connections>Create Conenction>Kafka Message Broker)
      • Click on Kafka Broker URIs dropdown and you should see available brokers (works on 4.4, doesn't work on 4.5)
      • When you look to the `syndesis-meta` pod on OCP 4.5, you will see the following message
        2020-08-19 12:02:41.913  WARN 1 --- [  XNIO-1 task-1] i.s.c.kafka.KafkaMetaDataRetrieval       : Couldn't auto discover any broker
        
      Show
      Install Strimzi operator via OperatorHub Once the Strimzi operator is ready, create Kafka instance via the Strimzi operator Wait till all Kafka pods are ready NAME READY STATUS RESTARTS AGE my-cluster-entity- operator -594f4754dd-htsqz 3/3 Running 0 59s my-cluster-kafka-0 2/2 Running 0 92s my-cluster-kafka-1 2/2 Running 0 92s my-cluster-kafka-2 2/2 Running 0 92s my-cluster-zookeeper-0 1/1 Running 0 2m16s my-cluster-zookeeper-1 1/1 Running 0 2m16s my-cluster-zookeeper-2 1/1 Running 0 2m16s Install Fuse online to the same namespace (I have used fuse online install script to install latest 7.7) bash install_ocp.sh --setup bash install_ocp.sh --grant developer bash install_ocp.sh Install Fuse online to the same namespace (I have used fuse online install script to install latest 7.7) documentation oc create clusterrole kafkas.kafka.strimzi.io-view --verb=get,list --resource=kafkas --resource=crd oc adm policy add-cluster-role-to-user kafkas.kafka.strimzi.io-view -z syndesis-server After that, wait 1-2 minutes due to ENTESB-13113 and go to the Fuse Online UI. Create Kafka connector (Connections>Create Conenction>Kafka Message Broker) Click on Kafka Broker URIs dropdown and you should see available brokers (works on 4.4, doesn't work on 4.5) When you look to the `syndesis-meta` pod on OCP 4.5, you will see the following message 2020-08-19 12:02:41.913 WARN 1 --- [ XNIO-1 task-1] i.s.c.kafka.KafkaMetaDataRetrieval : Couldn't auto discover any broker

      When the Syndesis is running on OCP 4.5, it is not able to auto-discover a Kafka broker. When I want to create Kafka connection and I click on Kafka Broker URIs dropdown, i don't see any instance and in the syndesis-meta pod is following message:

      2020-08-19 12:02:41.913  WARN 1 --- [  XNIO-1 task-1] i.s.c.kafka.KafkaMetaDataRetrieval       : Couldn't auto discover any broker
      

      When I try this use case (from Steps to Reproduce) on OCP 4.4, everything works (The broker is discovered by Fuse Online).

      Reproducible on CRC as well.
      CRC 1.12.0 => OCP 4.4.8 (autodiscovery works)
      CRC 1.14.0 => OCP 4.5.4 (autodiscovery doesn't work)

              cmiranda@redhat.com Claudio Miranda
              mkralik@redhat.com Matej Kralik
              Matej Kralik Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: