[LISPMAP-32] Notifications stopped working after controller switched to Lithium Notification Broker Created: 07/May/15  Updated: 19/Oct/17  Resolved: 13/May/15

Status: Resolved
Project: lispflowmapping
Component/s: General
Affects Version/s: Lithium
Fix Version/s: None

Type: Bug
Reporter: Lori Jakab Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All
URL: https://wiki.opendaylight.org/view/Weather#Switch_to_Lithium_Notification_Broker


External issue ID: 3148

 Description   

Patch https://git.opendaylight.org/gerrit/#/c/19303 switched to the use of "Lithium Notification Broker" by default. As a result all notifications in lispflowmapping stopped working. This means southbound events are not received by the core, RPCs don't work, and RESCONF events don't update the DAO.



 Comments   
Comment by Ed Warnicke [ 07/May/15 ]

Could you provide any stack traces or instructions for reproducing?

Comment by Lori Jakab [ 07/May/15 ]

I couldn't find any obvious stack trace related to this. However, there are no notifications received whenever something in the config datastore changes, for the subtree we register. RPCs don't work either. Both used to work.

  1. Steps to reproduce
  • Build the lispflowmapping project
  • Start the local karaf distribution ./distribution-karaf/target/assembly/bin/karaf
  • For testing RPCs, use the Postman collection mappingservice/implementation/src/main/resources/lfm_RPCs.json.postman_collection
  • For Testing RESTCONF, use mappingservice/implementation/src/main/resources/lfm_RESTCONF.json.postman_collection
    • In case of RESTCONF, when a key or mapping is added, it is stored to the old "DAO" datastore as well, after a change notification is received. This can be checked using "lisp:mappings" on the karaf console

If the lines added by https://git.opendaylight.org/gerrit/#/c/19303 to 01-md-sal.xml in distribution-karaf/target/assembly/etc/opendaylight/karaf/01-md-sal.xml are removed, you can observe the expected behavior for the above steps.

Comment by Ed Warnicke [ 07/May/15 ]

Building

Question... where in the code do you catch the Notifications?
(in case I need to attach a debugger )

Comment by Lori Jakab [ 07/May/15 ]

mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/mdsal/AuthenticationKeyDataListener.java and mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/mdsal/MappingDataListener.java

Comment by Tony Tkacik [ 07/May/15 ]

remote: https://git.opendaylight.org/gerrit/19829

Generated at Wed Feb 07 20:06:21 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.