On Thu, Jun 5, 2014 at 7:41 AM, Alison Chan <[email protected]> wrote:
> Hello,
>
> I'm trying to write an init script for OpenWrt that will regenerate
> OpenVswitch configuration every boot based on a uci config file. The
> first step to this is regenerating it every boot based on some
> variables in the init script. However, when I add these variables into
> the init script, it blocks the boot process and never proceeds past
> the SYS led slow blinking.
>
> I've been working with OpenFlow and OVS for a while, but I'm pretty
> new to OpenWrt and init scripts.
>
> Does anyone have any ideas?
I had a quick glance and I have a couple of comments ( I am not
familiar with OpenWrt).

1. ovsdb-server was started with "--remote=db:Open_vSwitch,manager_options "
I do not know the ovs version that you are using but this option
wouldn't work with the OVS versions after May 2013.
You will likely need it to be:
"--remote=db:Open_vSwitch,Open_vSwitch,manager_options"

2. Because you say it hangs, one possible explanation is that
ovsdb-server did not start and all your ovs-vsctl commands are
blocking.
Please add a "--timeout=5" option for your ovs-vsctl commands.

A way to debug is to make the startup script not get invoked during
startup and then run command at a time to see which one is the
problem.
>
> Cheers,
> --
> Alison Chan
> [email protected]
> SMS: +1 909 278 7753
> Fax: +1 206 203 2793
>
> _______________________________________________
> discuss mailing list
> [email protected]
> http://openvswitch.org/mailman/listinfo/discuss
>
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to