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

Operator cannot access broker status when console is secured with pem cert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • AMQ 7.12.1.OPR.1.GA
    • None
    • operator
    • None

      *Describe the bug*
      If the console is sslEnabled with a certificate from cert-manager (i.e. pem format cert) the operator cannot update the status and the Conditions shows UnableToRetrieveStatus reason. for example
      ```

      • lastTransitionTime: "2024-06-19T04:02:30Z"
        message: 'Get "http://HMwwfpiz:***@artemis-broker-ss-0.artemis-broker-hdls-svc.default.svc.cluster.local:8161/console/jolokia/read/org.apache.activemq.artemis:broker=%22amq-broker%22/Status":
        net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x03\x00\x02\x02P"'
        reason: UnableToRetrieveStatus
        status: Unknown
        type: BrokerPropertiesApplied
      • lastTransitionTime: "2024-06-19T04:02:41Z"
        message: 'Get "http://HMwwfpiz:***@artemis-broker-ss-0.artemis-broker-hdls-svc.default.svc.cluster.local:8161/console/jolokia/read/org.apache.activemq.artemis:broker=%22amq-broker%22/Status":
        net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x03\x00\x02\x02P"'
        reason: UnableToRetrieveStatus
        status: Unknown
        type: BrokerVersionAligned
        ```
        The reason is that when using pem cert the jolokia couldn't get correct protocols and uses 'http' protocol. It should use 'https' protocol.

      > [!TIP]
      > Vote this issue reacting with :+1: or :-1:

            gaohoward Howard Gao
            rh-messaging-ci Messaging CI
            Tiago Bueno Tiago Bueno
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: