bridge: Complete initial configuration even with empty database.
authorBen Pfaff <blp@nicira.com>
Thu, 11 Apr 2013 22:47:08 +0000 (15:47 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Apr 2013 22:52:59 +0000 (15:52 -0700)
commitff02e9a53779043455d4d442611be356637cb0e6
treec9e2f5f85a200b0ea215ec7f54c67ea598ff5313
parent1c85959e0c8a2c60d8b864d28dfcc7ab55c95a19
bridge: Complete initial configuration even with empty database.

If the database was empty, that is, it did not even contain an Open_vSwitch
top-level configuration record, at ovs-vswitchd startup time, then
OVS failed to detach and used 100% CPU.  This commit fixes the problem.

This problem was introduced by commit 63ff04e82623e765 (bridge: Only
complete daemonization after db commits initial config.).

This problem did not manifest if the initscripts supplied with Open vSwitch
were used, because those initscripts always initialize the database before
starting ovs-vswitchd, so this problem affects only users with hand-rolled
local OVS startup scripts.

Bug #16090.
Reported-by: Pravin Shelar <pshelar@nicira.com>
Tested-by: Pravin Shelar <pshelar@nicira.com>
Reported-by: Paul Ingram <paul@nicira.com>
Reported-by: Amre Shakimov <ashakimov@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ansis Atteka <aatteka@nicira.com>
AUTHORS
vswitchd/bridge.c