Hi all,


I have an issue using ubus /netifd which I hope someone can help me with that.

I can see some incident that it looks like there is a race condition somewhere 
in ubus/netifd  .

I can reproduce the problem as described below:

In a good scenario :

I add some lines in /etc/config/network   to bring up  a pptp tunnel.
I run >>/etc/init.d/network  reload     --I can see the interface got created.

At the same time I am listening to ubus event by running:  >>ubus listen

On the creation I can see the following message from ubus:   
{ "ubus.object.add": { "id": -788079186, "path": "network.interface.2" } }

{ "network.interface": { "action": "ifup", "interface": "2" } }

I then remove the lines from  /etc/config/network  and  
>>/etc/init.d/network reload

I can see the interface is gone and I can see the messages from the ubus:

{ "network.interface": { "action": "ifdown", "interface": "2" } }
{ "ubus.object.remove": { "id": -788079186, "path": "network.interface.2" } }


In a bad scenario(after couple of tries):


I add some lines in /etc/network to bringup a pptp tunnel
then >> /etc/init.d/network  reload

This time  I only see :

{ "ubus.object.add": { "id": 680699142, "path": "network.interface.2" } }

As you can see there is no "ifup" at this time. From this moment  ubus never 
receive any notification.
I can see the interface got created but there is no way to remove it.

/etc/init.d/network    reload   will return with timeout error.


The only way to get out of this state is reboot.

I appreciate if someone can  give some help on this issue.

Thanks in advance,
Farid
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to