[ovs-discuss] host networking, Open vSwitch and boot order

Tim Spriggs tims at uahirise.org
Tue Aug 28 18:45:48 UTC 2012


On Tue, Aug 28, 2012 at 8:21 AM, Gurucharan Shetty <gshetty at nicira.com> wrote:
> On Mon, Aug 27, 2012 at 4:43 PM, Tim Spriggs <tims at uahirise.org> wrote:
>>
>> On Thu, Aug 23, 2012 at 6:56 PM, Gurucharan Shetty <gshetty at nicira.com>
>> wrote:
>> >
>> > Does this help for your use case?
>> > http://openvswitch.org/pipermail/dev/2012-May/016972.html
>> >
>> > The scripts are all there. But, someone needs to call it.
>> >
>> > ifup --allow=ovs $list_of_bridges
>>
>> Interesting. I haven't applied this to my system but if I am
>> understanding it correctly, this actually configures OVS on boot via
>> /etc/network/interfaces. I'm still not convinced it would work since
>> /etc/init.d/networking is called before openvswitch is running.
>
> It would work if you call the "--allow=ovs" command in
> /etc/init.d/openvswitch-switch.
> But it is probably a problem if you have some dependent directories mounted
> through network and you want have all network interfaces through OVS.
>
>> I like
>> the idea of configuring openvswitch in this manner however it would
>> kill any ability to make permanent changes via the ovs-* commands
>> which is a paradigm shift from what I have gathered from the
>> documentation.
>
> This is true. During every boot/shutdown, interfaces are created and
> destroyed.
>
>
>>
>> Maybe I am wrong but it seems like the expected
>> workflow is something on the order of:
>>
>> 0) Install OVS
>> 1) Configure OVS resources (using: ovs-vsctl ...)
>> 2) Configure /etc/network/interfaces to generically reference OVS
>> resources
>> 3) Cross fingers and reboot
>>
>> The above would modify it to:
>>
>> 0) Install OVS
>> 1) Configure /etc/network/interfaces to configure OVS
>> 2) Cross fingers and reboot
>>
>> Thus eliminating any direct interaction with OVS.
>
> If I understand you correctly, you would like it if the permanent nature of
> changes
> done through ovs-vsctl manually after a boot should remain through boot
> cycles.
> And when new bridges are created, you go and look up /etc/network/interfaces
> for any
> post creation commands. I am not aware of any way you can do this right now.
>

That's exactly right. I guess I will architect my system differently then.

Thanks for the help!

-Tim



More information about the discuss mailing list