esnet / netshell

Kernel and companion software that support ENOS applications (NOT ACTIVELY MAINTAINED)
Other
6 stars 1 forks source link

netshell-controller / netshell-odl-mdsal activator race condition #31

Closed bmah888 closed 8 years ago

bmah888 commented 8 years ago

The activator for netshell-controller depends on the activator for netshell-odl-mdsal already having been run. In some cases there is a race condition on the two activators, with the result that netshell-controller is unable to install a callback handler to process PACKET_IN events, and the multi-point VPN can't learn about new hosts via their broadcast packets.

A workaround was the delay the startup of netshell-controller, but this doesn't seem to work all of the time, probably due to timing on different platforms. A real fix is to actually have the netshell-controller activator check the state of the operation requiring netshell-odl-mdsal to be sure that it actually completed correctly.

Tested fix in hand as I'm filing this issue.

bmah888 commented 8 years ago

Reopening to put this bug in the Done pipeline.

This bug is similar to #29, and a similar fix might be used to deal with that issue.