Bug 1854152

Summary: Error "Required value" for field "spec.kafka.listeners" with default Kafka CR for AMQ Streams
Product: OpenShift Container Platform Reporter: Bruno Andrade <bandrade>
Component: ISV OperatorsAssignee: tonyc
Status: CLOSED DUPLICATE QA Contact: Bruno Andrade <bandrade>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, jiazha, sd-ecosystem
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-20 15:21:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruno Andrade 2020-07-06 15:17:57 UTC
Description of problem:

When it's used UI to create a Kafka instance, the default CR suggestion does not work. It returns an error: "Required value" for field "spec.kafka.listeners". Here is the current CR:

apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
  name: my-cluster
  labels: {}
  namespace: amq-streams
spec:
  kafka:
    config:
      offsets.topic.replication.factor: 3
      transaction.state.log.replication.factor: 3
      transaction.state.log.min.isr: 2
      log.message.format.version: '2.5'
    version: 2.5.0
    storage:
      type: ephemeral
    replicas: 3
  zookeeper:
    storage:
      type: ephemeral
    replicas: 3

The workaround is to add the required value as shown below:
apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
  name: my-cluster
  labels: {}
  namespace: amq-streams
spec:
  kafka:
    config:
      offsets.topic.replication.factor: 3
      transaction.state.log.replication.factor: 3
      transaction.state.log.min.isr: 2
      log.message.format.version: '2.5'
    listeners:
      plain: {}
    version: 2.5.0
    storage:
      type: ephemeral
    replicas: 3
  zookeeper:
    storage:
      type: ephemeral
    replicas: 3

    listeners:
      plain: {}


Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-07-04-234602
AMQ Streams 1.5.0

How reproducible:
Always

Steps to Reproduce:
1. Install AMQ Streams Operator
2. Create Kafka instance with default values


Actual results:
Kafka instance is failing due to a required field

Expected results:
Kafka should work with the default suggested CR

Comment 1 Bruno Andrade 2020-07-20 15:21:37 UTC

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