The PCEP provider we developed calls the deviceConnected() to tell the ONOS new devices, sometime it works, sometime it does not.
Yuta mentioned the below, the problem may be
There is a chance it has to do with this bug:
Behavior of leader selection was changed, and
there is now a period where there is "no master for a Device" even if a Node requested for mastership.
My guess of what's happening is:
1. PCEP Provider reported a Device,
2. Device subsystem on the Node requested for mastership.
3. Request to store Device was forwarded to the master Node (=which may not exist due to new behavior)
=> Request to store Device is ignored by ONOS