Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-4959

Adresses and queues are no longer created with Operator 0.19

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • AMQ 7.8.0.GA, AMQ 7.8.0.CR4
    • operator
    • None
    • False
    • False
    • Undefined
    • Hide
      1. Create a broker with the following CR:
      oc create -f - <<EOF
      apiVersion: broker.amq.io/v2alpha4
      kind: ActiveMQArtemis
      metadata:
       name: broker
      spec:
       deploymentPlan:
         size: 1
         image: registry.redhat.io/amq7/amq-broker:7.8
         requireLogin: false
         messageMigration: true
         persistenceEnabled: true
         journalType: aio
         #initImage: image-registry.openshift-image-registry.svc:5000/crv/amq-broker-init
       adminUser: admin
       adminPassword: admin
       addressSettings:
         applyRule: merge_all
         addressSetting:
         - match: '#'
           autoCreateAddresses: false
           autoCreateQueue: false
           maxDeliveryAttempts: -1
           redeliveryDelay: 0
           deadLetterAddress: jms.queue.ExpiryQueue
           defaultGroupRebalance: true
         - match: myQueue1
           redeliveryDelay: 5000
           maxRedeliveryDelay: 50000
           redeliveryDelayMultiplier: 2
       console:
         expose: true
       acceptors:
       - name: all
         protocols: all
         port: 61616
         sslEnabled: false
         expose: true
         anycastPrefix: jms.queue.
         multicastPrefix: jms.topic.
      EOF
      

      #Create ADRESS with the following CR:

      oc create -f - <<EOF
      apiVersion: broker.amq.io/v2alpha2
      kind: ActiveMQArtemisAddress
      metadata:
        name: ex-aaoaddress
      spec:
        addressName: myQueue0
        queueName: myQueue0
        routingType: anycast
      EOF
      
      1. Check the creation of the address in the broker:
      export POD=broker-ss-0
      export AMQ_USER=admin
      export AMQ_PASSWORD=admin
      
      oc exec -i $POD -- /home/jboss/amq-broker/bin/artemis address show --url tcp://$POD:61616 --user $AMQ_USER --password $AMQ_PASSWORD
      
      Show
      Create a broker with the following CR: oc create -f - <<EOF apiVersion: broker.amq.io/v2alpha4 kind: ActiveMQArtemis metadata: name: broker spec: deploymentPlan: size: 1 image: registry.redhat.io/amq7/amq-broker:7.8 requireLogin: false messageMigration: true persistenceEnabled: true journalType: aio #initImage: image-registry.openshift-image-registry.svc:5000/crv/amq-broker-init adminUser: admin adminPassword: admin addressSettings: applyRule: merge_all addressSetting: - match: '#' autoCreateAddresses: false autoCreateQueue: false maxDeliveryAttempts: -1 redeliveryDelay: 0 deadLetterAddress: jms.queue.ExpiryQueue defaultGroupRebalance: true - match: myQueue1 redeliveryDelay: 5000 maxRedeliveryDelay: 50000 redeliveryDelayMultiplier: 2 console: expose: true acceptors: - name: all protocols: all port: 61616 sslEnabled: false expose: true anycastPrefix: jms.queue. multicastPrefix: jms.topic. EOF #Create ADRESS with the following CR: oc create -f - <<EOF apiVersion: broker.amq.io/v2alpha2 kind: ActiveMQArtemisAddress metadata: name: ex-aaoaddress spec: addressName: myQueue0 queueName: myQueue0 routingType: anycast EOF Check the creation of the address in the broker: export POD=broker-ss-0 export AMQ_USER=admin export AMQ_PASSWORD=admin oc exec -i $POD -- /home/jboss/amq-broker/bin/artemis address show --url tcp://$POD:61616 --user $AMQ_USER --password $AMQ_PASSWORD

      Adresses and queues are no longer created with Operator 0.19.

      It seems adding `adressSettings` to the activemqartemis CR avoid to create addresses.

              gaohoward Howard Gao
              rhn-support-aboucham Abel Bouchama
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: