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

Cannot create ActiveMqArtemisAddress CRD, when the broker 'adminPassword' field has a special character

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • AMQ 7.8.1.GA, AMQ 7.8.2.GA
    • operator
    • None
    • False
    • False
    • User Experience
    • Hide
      • Reproduced in both 7.8.2 Operator installed with CLI
        and 7.8.1 Operator using OperatorHub
      • On 7.8.1 Operator using OperatorHub, there is no log message at the operator log , BUT the queue is not created either

      Steps:
      ----------
      1. Create namespace "testbug"
      2. Install operator
      3. Create ActivemqArtemis CRD instance with following YAML:
      apiVersion: broker.amq.io/v2alpha4
      kind: ActiveMQArtemis
      metadata:
      name: ex-aao
      namespace: testbug
      spec:
      adminPassword: tempor%al
      adminUser: admin
      console:
      expose: true
      deploymentPlan:
      image: placeholder
      jolokiaAgentEnabled: false
      journalType: nio
      managementRBACEnabled: true
      messageMigration: false
      persistenceEnabled: false
      requireLogin: true
      size: 1

      Broker should install successfully

      4. Create ActivemqArtemisAddress CRD instance with following YAML:
      apiVersion: broker.amq.io/v2alpha2
      kind: ActiveMQArtemisAddress
      metadata:
      name: my-queue
      namespace: testbug
      spec:
      addressName: MyQueue
      queueName: MyQueue
      removeFromBrokerOnDelete: true
      routingType: anycast

      Show
      Reproduced in both 7.8.2 Operator installed with CLI and 7.8.1 Operator using OperatorHub On 7.8.1 Operator using OperatorHub, there is no log message at the operator log , BUT the queue is not created either Steps: ---------- 1. Create namespace "testbug" 2. Install operator 3. Create ActivemqArtemis CRD instance with following YAML: apiVersion: broker.amq.io/v2alpha4 kind: ActiveMQArtemis metadata: name: ex-aao namespace: testbug spec: adminPassword: tempor%al adminUser: admin console: expose: true deploymentPlan: image: placeholder jolokiaAgentEnabled: false journalType: nio managementRBACEnabled: true messageMigration: false persistenceEnabled: false requireLogin: true size: 1 Broker should install successfully 4. Create ActivemqArtemisAddress CRD instance with following YAML: apiVersion: broker.amq.io/v2alpha2 kind: ActiveMQArtemisAddress metadata: name: my-queue namespace: testbug spec: addressName: MyQueue queueName: MyQueue removeFromBrokerOnDelete: true routingType: anycast

    Description

      If you create a broker using CRD ActivemqArtemis with the 'adminPassword' field value, containing a special character (for example: "tempor%al"), and later you try to create an ActivemqArtemisAdress CRD, the address is not created, and you obtain this error on operator log

      2021-09-20T15:38:30.859Z ERROR controller_v2alpha2activemqartemisaddress Creating ActiveMQArtemisAddress error for queue

      {"Request.Namespace": "testbug", "Request.Name": "my-queue", "error": "parse http://admin:tempor%al@10.217.0.56:8161/console/jolokia/exec/org.apache.activemq.artemis:broker=\\\"amq-broker\\\": invalid URL escape \"%al\""}

      github.com/go-logr/zapr.(*zapLogger).Error
      /remote-source/app/vendor/github.com/go-logr/zapr/zapr.go:128
      github.com/artemiscloud/activemq-artemis-operator/pkg/controller/broker/v2alpha2/activemqartemisaddress.createQueue
      /remote-source/app/pkg/controller/broker/v2alpha2/activemqartemisaddress/activemqartemisaddress_controller.go:195
      github.com/artemiscloud/activemq-artemis-operator/pkg/controller/broker/v2alpha2/activemqartemisaddress.(*ReconcileActiveMQArtemisAddress).Reconcile
      /remote-source/app/pkg/controller/broker/v2alpha2/activemqartemisaddress/activemqartemisaddress_controller.go:157
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1
      /remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158
      k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
      /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133
      k8s.io/apimachinery/pkg/util/wait.JitterUntil
      /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134
      k8s.io/apimachinery/pkg/util/wait.Until
      /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88

      Attachments

        Activity

          People

            gaohoward Howard Gao
            rhn-support-anarvaez Alfredo Narvaez
            Mikhail Krutov Mikhail Krutov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: