]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: prevent infinite hang if ovs-vswitchd isn't running
authorLaine Stump <laine@laine.org>
Tue, 4 Sep 2012 19:26:29 +0000 (15:26 -0400)
committerLaine Stump <laine@laine.org>
Wed, 5 Sep 2012 18:35:04 +0000 (14:35 -0400)
commit98e732fc34a47ad9dfdb64aa4207623ee4c1ebcd
treef4950584857140184aed922d9b2331c87295e476
parent89810fc42360adf0e76507e0f8051f2ab2b116a3
network: prevent infinite hang if ovs-vswitchd isn't running

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=852984

If a network or interface is configured to use Open vSwitch, but
ovs-vswitchd (the Open vSwitch database service) isn't running, the
ovs-vsctl add-port/del-port commands will hang indefinitely rather
than returning an error. There is a --nowait option, but that appears
to have no effect on add-port and del-port commands, so instead we add
a --timeout=5 to the commands - they will retry for up to 5 seconds,
then fail if there is no response.
src/util/virnetdevopenvswitch.c