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

Parameters with dots handled incorrectly in BMP feature config

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 27.0.0
    • 26.1.2
    • Telemetry
    • Security Level: Default (Default Security Scheme)

    Description

      When BMP is configured to use Kafka persistence, the parameters which contain "." are not parsed properly from the adapter properties. The config below should result in parameter map entries of "kafka.bootstrap.servers" and "kafka.batch.size" for adapter 3. However, PropertyTree splits on "." and creates subtrees which are not handled properly in getMap().

       

      name = BMP
      adapters.1.name = BMP-PeerStatus-Adapter
      adapters.1.class-name = org.opennms.netmgt.telemetry.protocols.bmp.adapter.BmpPeerStatusAdapter
      adapters.2.name = BMP-Telemetry-Adapter
      adapters.2.class-name = org.opennms.netmgt.telemetry.protocols.bmp.adapter.BmpTelemetryAdapter
      adapters.3.name = BMP-OpenBMP-Integration-Adapter
      adapters.3.class-name = org.opennms.netmgt.telemetry.protocols.bmp.adapter.openbmp.BmpIntegrationAdapter
      adapters.3.parameters.kafka.bootstrap.servers = example.com:9092
      adapters.3.parameters.kafka.batch.size = 5
      

      See:

      from(Map) and getMap() in features/telemetry/distributed/common/src/main/java/org/opennms/netmgt/telemetry/distributed/common/PropertyTree.java

      createBean() in features/telemetry/protocols/bmp/adapter/src/main/java/org/opennms/netmgt/telemetry/protocols/bmp/adapter/openbmp/BmpIntegrationAdapterFactory.java

      getParameterMap() in features/telemetry/distributed/common/src/main/java/org/opennms/netmgt/telemetry/distributed/common/MapBasedAdapterDef.java

       

      Attachments

        Activity

          People

            zoe Zoë Knox
            zoe Zoë Knox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: