Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9753

Minion intermittently connects to localhost instead of configured broker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.0.1
    • Fix Version/s: 21.0.2
    • Component/s: Minion
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      A number of the Minion related system tests have been flapping lately.

      In a few cases, the Minion container appears to be connecting to 127.0.0.1 instead of the linked container for both the OpenNMS MQ and HTTP services:

      2017-11-24T05:14:09,188 | WARN  | ActiveMQ Task-1  | FailoverTransport                | 96 - org.apache.activemq.activemq-osgi - 5.14.5 | Failed to connect to [tcp://127.0.0.1:61616] after: 10 attempt(s) continuing to retry.
      
      org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:8980 [/127.0.0.1] failed: Connection refused (Connection refused)
      

      Even if those have been set correctly in the org.opennms.minion.controller.cfg file:

      + echo 'location = MINION'
      + echo 'id = 00000000-0000-0000-0000-000000ddba11'
      + echo 'http-url = http://172.17.0.5:8980/opennms'
      + echo 'broker-url = failover:tcp://172.17.0.5:61616'
      

      I suspect this behavior is caused by the changes in NMS-9723, specifically:
      https://github.com/OpenNMS/opennms/commit/ab4fbccae0da5220030b7df66a9125bf2d94ff50#diff-279d13262bb2da1a96bae0e120b57408R17

      where we reference the same configuration PID from two bundles.

      This thread also implies that access the same configuration PID from two different bundles is not supported:
      http://camel.465427.n5.nabble.com/Accessing-osgi-blueprint-property-placeholder-across-multiple-bundles-tp5718494p5718521.html

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: