[ovs-dev] [PATCH] debian: Don't recreate bridges during manual restart.
Gurucharan Shetty
shettyg at nicira.com
Thu Nov 21 15:57:20 UTC 2013
On Wed, Nov 20, 2013 at 3:26 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Wed, Nov 20, 2013 at 01:52:59PM -0800, Gurucharan Shetty wrote:
>> Open vSwitch bridges and ports can be configured through
>> the /etc/network/interfaces script. During system startup,
>> Open vSwitch startup script reads the interfaces file
>> and creates the bridges and ports. During system shutdown,
>> the bridges and ports are removed.
>>
>> The same behavior also can occur with a manual 'restart' of
>> Open vswitch (ex: service openvswitch-switch restart).
>> This behavior has come across as undesirable in some cases.
>> ex: When some one manually creates interfaces through ovs-vsctl
>> and then restarts Open vSwitch, that interface is lost.
>>
>> This commit changes the startup script such that, interfaces
>> are created and deleted through the startup script only when
>> RUNLEVEL environment variable is set. This behavior will be
>> consistent with the OVS RHEL ifcfg-* scripts too.
>>
>> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
>
> I guess that RHEL does it in toplevel scripts? I don't see any existing
> mentions of RUNLEVEL in our tree.
Correct. I was trying to say that in case of RHEL, creation and
destruction of bridges only happens during system startup/shutdown and
not during every Open vSwitch restarts.
And that with this change, we will only create and destroy bridges
during system startup/shutdown in debian too.
>
> Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev
mailing list