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:54:30 +0000 (15:54 -0700)
commitfb9a39015716d47f8d922de9fc2478b25a5bf946
treea6774221909722e89d9f9fe3be75051b3f70cbed
parent783cd86f3c37b1b63280332f237115a90d1c773a
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