Bug 1854152 - Error "Required value" for field "spec.kafka.listeners" with default Kafka CR for AMQ Streams
Summary: Error "Required value" for field "spec.kafka.listeners" with default Kafka CR...
Keywords:
Status: CLOSED DUPLICATE of bug 1847921
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ISV Operators
Version: 4.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.6.0
Assignee: tonyc
QA Contact: Bruno Andrade
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-06 15:17 UTC by Bruno Andrade
Modified: 2020-07-20 15:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-20 15:21:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github strimzi strimzi-kafka-operator issues 3344 0 None closed [Bug] Error "Required value" for field "spec.kafka.listeners" with default Kafka CR 2021-01-13 13:29:09 UTC

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 ***


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