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

CrashLoopBackOff of amq-broker-init

XMLWordPrintable

    • False
    • None
    • False

      configuring an annotation IN NActiveMQArtemisSecurity as below causes CrashLoopBackOff of amq-broker-init-rhel

      apiVersion: broker.amq.io/v1alpha1
      kind: ActiveMQArtemisSecurity
      metadata:
        annotations:
          testannotation: '"pltf-amq (1)"' 

      the amq-broker-init container fails with:

      3 lines
      /bin/bash: -c: line 16: syntax error near unexpected token `('
      /bin/bash: -c: line 16: `    testannotation: '"pltf-amq (1)"'' 

      checking the operator log I can see:

      2022-04-01T12:36:29.681Z        INFO    controller_v2alpha5activemqartemis      The final init cmds to init     {"the cmd array": ["-c", "/opt/amq/bin/launch.sh && echo \"making dir /init_cfg_root/security/security\" && mkdir -p /init_cfg_root/security/security && echo \"typemeta:\n  kind: ActiveMQArtemisSecurity\n  apiversion: broker.amq.io/v1alpha1\nobjectmeta:\n  name: ex-prop\n  generatename: \"\"\n  namespace: test-broker\n  selflink: /apis/broker.amq.io/v1alpha1/namespaces/test-broker/activemqartemissecurities/ex-prop\n  uid: acc2cf49-f1ca-4b98-980d-a3ef75a35846\n  resourceversion: \"869345\"\n  generation: 1\n  creationtimestamp: \"2022-04-01T12:35:49Z\"\n  deletiontimestamp: null\n  deletiongraceperiodseconds: null\n  labels: {}\n  annotations:\n    testannotation: '\"pltf-amq (1)\"'\n  ownerreferences: []\n  initializers: null\n  finalizers: []\n  clustername: \"\"\nspec:\n  loginmodules:\n    propertiesloginmodules:\n    - name: prop-module\n      users:\n      - name: bob\n        password: mysecret\n        roles:\n        - root\n    guestloginmodules: []\n    keycloakloginmodules: []\n  securitydomains:\n    brokerdomain:\n      name: activemq\n      loginmodules:\n      - name: prop-module\n        flag: sufficient\n        debug: null\n        reload: null\n    consoledomain:\n      name: null\n      loginmodules: []\n  securitysettings:\n    broker: []\n    management:\n      hawtioroles: []\n      connector:\n        host: null\n        port: null\n        rmiregistryport: null\n        jmxrealm: null\n        objectname: null\n        authenticatortype: null\n        secured: null\n        keystoreprovider: null\n        keystorepath: null\n        keystorepassword: null\n        truststoreprovider: null\n        truststorepath: null\n        truststorepassword: null\n        passwordcodec: null\n      authorisation:\n        allowedlist: []\n        defaultaccess: []\n        roleaccess: []\n  applytocrnames: []\nstatus: {}\n\" > /init_cfg_root/security/security/security-config.yaml && /opt/amq-broker/script/cfg/config-security.sh && /opt/amq-broker/script/default.sh"]} 

       

      As far i can see seems that a double quote :
      testannotation: '\"pltf-amq (1)\"'\n 

      cut the echo string.

              gtully@redhat.com Gary Tully
              rhn-support-mgolfari Matteo Golfarini (Inactive)
              Mikhail Krutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: