-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.0.2
-
Labels:None
When testing latest snapshots for ALEC 1.0.2 with Sentinel 25.0.0, I found that the provided name for the edges topic is not taken from the configuration file, and the default is always enforced.
Here is the configuration I used:
[sentinel@alec-0 ~]$ cat /opt/sentinel/etc/org.opennms.alec.datasource.opennms.kafka.cfg # Make sure to configure the topics on OpenNMS the same way eventSinkTopic=OpenNMS.Sink.Events inventoryTopic=OpenNMS-alec-inventory nodeTopic=OpenNMS-nodes alarmTopic=OpenNMS-alarms edgesTopic=OpenNMS-topology-edges alarmFeedbackTopic=OpenNMS-alarms-feedback
But, here is what I found on /opt/sentinel/data/log/karaf.log:
[sentinel@alec-0 ~]$ grep "Subscribed to pattern" /opt/sentinel/data/log/karaf.log 2019-10-16T12:32:45,880 | INFO | alec-datasource-1d96943f-ae22-441b-9027-af82e3d7c7ea-StreamThread-1 | KafkaConsumer | 134 - org.apache.servicemix.bundles.kafka-clients - 2.3.0.1 | [Consumer clientId=alec-datasource-1d96943f-ae22-441b-9027-af82e3d7c7ea-StreamThread-1-consumer, groupId=alec-datasource] Subscribed to pattern: 'OpenNMS-alarms|OpenNMS-alarms-feedback|OpenNMS-alec-inventory|OpenNMS-nodes|edges'
As you can see all the custom names were taken except for edges.