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

ActiveMQArtemisAddress CR don't update the filterString

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.9.2.OPR.1.GA
    • AMQ 7.9.0.GA
    • operator
    • None
    • False
    • False
    • Hide

      1. Create an ArtemisAddress:

      oc create -f - <<EOF
      apiVersion: broker.amq.io/v2alpha3
      kind: ActiveMQArtemisAddress
      metadata:
      name: ex-aaoaddress
      spec:
      addressName: myAddress0
      queueName: myQueue0
      queueConfiguration:
      autoCreateAddress: true
      durable: true
      enabled: true
      filterString: color = 'blue'
      routingType: multicast
      EOF
      
      $ curl -s -u admin:admin 'http://ex-aao-wconsj-0-svc-rte-amq-broker-79.apps-crc.testing/console/jolokia/read/org.apache.activemq.artemis:broker=!"amq-broker!",component=addresses,address=!"myAddress0!",subcomponent=queues,routing-type=!"multicast!",queue=!"myQueue0!"' | jq .value.Filter
      "color = 'blue'"
      

      2. Update the CR ActiveMQArtemisAddress

      oc apply -f - <<EOF
      apiVersion: broker.amq.io/v2alpha3
      kind: ActiveMQArtemisAddress
      metadata:
      name: ex-aaoaddress
      spec:
      addressName: myAddress0
      queueName: myQueue0
      queueConfiguration:
      autoCreateAddress: true
      durable: true
      enabled: true
      filterString: color = 'yellow'
      routingType: multicast
      EOF
      

      the resource is correctly updated

      $oc get activemqartemisaddress ex-aaoaddress -o yaml | yq .spec.queueConfiguration.filterString
      "color = 'yellow'"
      

      but the filter still have the previous value

      $ curl -s -u admin:admin 'http://ex-aao-wconsj-0-svc-rte-amq-broker-79.apps-crc.testing/console/jolokia/read/org.apache.activemq.artemis:broker=!"amq-broker!",component=addresses,address=!"myAddress0!",subcomponent=queues,routing-type=!"multicast!",queue=!"myQueue0!"' | jq .value.Filter
      "color = 'blue'"
      
      Show
      1. Create an ArtemisAddress: oc create -f - <<EOF apiVersion: broker.amq.io/v2alpha3 kind: ActiveMQArtemisAddress metadata: name: ex-aaoaddress spec: addressName: myAddress0 queueName: myQueue0 queueConfiguration: autoCreateAddress: true durable: true enabled: true filterString: color = 'blue' routingType: multicast EOF $ curl -s -u admin:admin 'http://ex-aao-wconsj-0-svc-rte-amq-broker-79.apps-crc.testing/console/jolokia/read/org.apache.activemq.artemis:broker=! "amq-broker!" ,component=addresses,address=! "myAddress0!" ,subcomponent=queues,routing-type=! "multicast!" ,queue=! "myQueue0!" ' | jq .value.Filter "color = 'blue' " 2. Update the CR ActiveMQArtemisAddress oc apply -f - <<EOF apiVersion: broker.amq.io/v2alpha3 kind: ActiveMQArtemisAddress metadata: name: ex-aaoaddress spec: addressName: myAddress0 queueName: myQueue0 queueConfiguration: autoCreateAddress: true durable: true enabled: true filterString: color = 'yellow' routingType: multicast EOF the resource is correctly updated $oc get activemqartemisaddress ex-aaoaddress -o yaml | yq .spec.queueConfiguration.filterString "color = 'yellow' " but the filter still have the previous value $ curl -s -u admin:admin 'http://ex-aao-wconsj-0-svc-rte-amq-broker-79.apps-crc.testing/console/jolokia/read/org.apache.activemq.artemis:broker=! "amq-broker!" ,component=addresses,address=! "myAddress0!" ,subcomponent=queues,routing-type=! "multicast!" ,queue=! "myQueue0!" ' | jq .value.Filter "color = 'blue' "

      When we create an address using CR ActiveMQArtemisAddress the filter is set correctly, However when we update the CR, the filter is not updated.

            gaohoward Howard Gao
            rhn-support-mgolfari Matteo Golfarini (Inactive)
            Mikhail Krutov Mikhail Krutov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: