libvirt/src/util
Chunhe Li 33445ce844 openvswitch: Delete port if it exists while adding a new one
If the openvswitch service is stopped, and is followed by destroying a
VM, the openvswitch bridge translates into a state where it doesn't
recover the port configuration. While it successfully fetches data
from the internal DB, since the corresponding virtual interface does
not exists anymore the whole recovery process fails leaving restarted
VM with inability to connect to the bridge. The following set of
commands will trigger the problem:

virsh start vm
service openvswitch-switch stop
virsh destroy vm
service openvswitch-switch start
virsh start vm

Signed-off-by: Chunhe Li <lichunhe@huawei.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2014-07-14 12:49:30 +02:00
..
iohelper.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
keymaps.csv
viralloc.c
viralloc.h util: unify extra asterisk in viralloc.h 2014-07-02 08:17:23 +02:00
virarch.c
virarch.h nodeinfo: Introduce @arch to linuxNodeInfoCPUPopulate 2014-06-20 15:46:52 +02:00
viratomic.c
viratomic.h
viraudit.c util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
viraudit.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
virauth.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virauth.h
virauthconfig.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virauthconfig.h
virbitmap.c Introduce virBitmapDataToString 2014-06-06 14:35:19 +02:00
virbitmap.h Introduce virBitmapDataToString 2014-06-06 14:35:19 +02:00
virbuffer.c Introduce virBufferCheckError 2014-07-03 10:41:15 +02:00
virbuffer.h Introduce virBufferCheckError 2014-07-03 10:41:15 +02:00
vircgroup.c util: cgroup: Fix build on non-cgroup platforms 2014-07-09 09:45:36 +02:00
vircgroup.h util: cgroup: Add helper to convert device mode to string 2014-07-08 14:34:05 +02:00
vircgrouppriv.h
virclosecallbacks.c hash: add common utility functions 2014-04-07 06:14:45 -06:00
virclosecallbacks.h
vircommand.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
vircommand.h Move virStorageBackendRun to vircommand 2014-03-20 18:04:50 +01:00
vircommandpriv.h
virconf.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
virconf.h
vircrypto.c
vircrypto.h
virdbus.c virdbus: Show method name in error message 2014-05-21 09:33:25 -04:00
virdbus.h virdbus: Make virDBusCall static 2014-05-06 11:22:13 -04:00
virdbuspriv.h Refactor dbus helper methods for method calls 2014-03-21 11:26:34 +00:00
virdnsmasq.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virdnsmasq.h
virebtables.c Convert ebtables code over to use firewall APIs 2014-04-25 15:44:09 +01:00
virebtables.h
virendian.h
virerror.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
virerror.h virdbus: Remove redundant error macro 2014-05-21 09:33:24 -04:00
virevent.c
virevent.h
vireventpoll.c virEventPollDispatchHandles: Honour array boundaries 2014-07-09 10:22:51 +02:00
vireventpoll.h
virfile.c Introduce virFileReadAllQuiet 2014-07-01 16:32:29 +02:00
virfile.h Introduce virFileReadAllQuiet 2014-07-01 16:32:29 +02:00
virfirewall.c virfirewall: fix build on freebsd 2014-04-30 08:51:29 +02:00
virfirewall.h Remove bogus ATTRIBUTE_NONNULL from virFirewallAddRuleFull 2014-04-28 14:27:40 +01:00
virfirewallpriv.h Introduce an object for managing firewall rulesets 2014-04-25 15:44:09 +01:00
virhash.c hash: add common utility functions 2014-04-07 06:14:45 -06:00
virhash.h hash: add common utility functions 2014-04-07 06:14:45 -06:00
virhashcode.c
virhashcode.h
virhook.c Use K&R style for curly braces in src/util/ 2014-03-20 17:16:18 +01:00
virhook.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
virhostdev.c Replace Pci with PCI throughout 2014-04-08 11:15:55 +01:00
virhostdev.h
viridentity.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
viridentity.h
virinitctl.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virinitctl.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
viriptables.c Convert bridge driver over to use new firewall APIs 2014-04-25 15:44:09 +01:00
viriptables.h Convert bridge driver over to use new firewall APIs 2014-04-25 15:44:09 +01:00
viriscsi.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
viriscsi.h util: Sanitize ATTRIBUTE_NONNULL use in viriscsi.h 2014-03-25 08:26:39 +01:00
virjson.c util: json: Add helpers for manipulating json arrays 2014-06-17 08:51:41 +02:00
virjson.h util: json: Add helpers for manipulating json arrays 2014-06-17 08:51:41 +02:00
virkeycode-mapgen.py
virkeycode.c
virkeycode.h
virkeyfile.c hash: add common utility functions 2014-04-07 06:14:45 -06:00
virkeyfile.h
virkmod.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virkmod.h
virlockspace.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virlockspace.h
virlog.c Coverity: Resolve a CHECKED_RETURN message 2014-03-25 17:13:27 -04:00
virlog.h
virmacaddr.c
virmacaddr.h
virnetdev.c Report one error less when getting net dev speed 2014-07-01 16:33:14 +02:00
virnetdev.h virnetdev: Introduce virNetDevGetLinkInfo 2014-06-11 09:57:39 +02:00
virnetdevbandwidth.c QoS: make tc filters match all traffic 2014-04-07 11:35:29 +02:00
virnetdevbandwidth.h
virnetdevbridge.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virnetdevbridge.h
virnetdevmacvlan.c Fix build wihout macvtap or virtualport 2014-05-06 09:14:05 +02:00
virnetdevmacvlan.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
virnetdevopenvswitch.c openvswitch: Delete port if it exists while adding a new one 2014-07-14 12:49:30 +02:00
virnetdevopenvswitch.h
virnetdevtap.c Report correct error in virNetDevTapCreate 2014-06-23 14:16:23 +02:00
virnetdevtap.h Move virBhyveTapGetRealDeviceName to virnetdevtap 2014-03-27 08:23:58 +04:00
virnetdevveth.c Use a static initializer for static mutexes 2014-04-08 13:46:29 +01:00
virnetdevveth.h
virnetdevvlan.c
virnetdevvlan.h
virnetdevvportprofile.c Fix build wihout macvtap or virtualport 2014-05-06 09:14:05 +02:00
virnetdevvportprofile.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
virnetlink.c util: refactor virNetlinkCommand to fix several bugs / style problems 2014-05-20 11:21:00 +03:00
virnetlink.h
virnodesuspend.c build: Don't use code with dbus_message_unref when built without dbus 2014-04-14 18:19:36 +02:00
virnodesuspend.h
virnuma.c virNumaGetPages: Don't fail on huge page-less systems 2014-06-24 11:50:32 +02:00
virnuma.h virNumaGetPageInfo: Take huge pages into account 2014-06-24 11:50:31 +02:00
virobject.c hash: add common utility functions 2014-04-07 06:14:45 -06:00
virobject.h hash: add common utility functions 2014-04-07 06:14:45 -06:00
virpci.c virpci: Introduce virPCIDeviceIsPCIExpress and friends 2014-06-16 17:40:49 +02:00
virpci.h virpci: Introduce virPCIDeviceIsPCIExpress and friends 2014-06-16 17:40:49 +02:00
virpidfile.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virpidfile.h
virportallocator.c virtportallocator: new function "virPortAllocatorSetUsed" 2014-06-24 14:17:55 +02:00
virportallocator.h virtportallocator: new function "virPortAllocatorSetUsed" 2014-06-24 14:17:55 +02:00
virprobe.h
virprocess.c util: fix a typo in virprocess.c and docs 2014-03-27 06:58:46 -06:00
virprocess.h
virrandom.c Use a static initializer for static mutexes 2014-04-08 13:46:29 +01:00
virrandom.h
virscsi.c Do not call closedir with NULL argument 2014-06-23 14:16:23 +02:00
virscsi.h
virseclabel.c virseclabel: Resolve Coverity FORWARD_NULL issue 2014-07-14 05:44:20 -04:00
virseclabel.h virSecurityDeviceLabelDef: substitute 'norelabel' with 'relabel' 2014-07-11 10:36:02 +02:00
virsexpr.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virsexpr.h
virsocketaddr.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virsocketaddr.h
virstatslinux.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
virstatslinux.h
virstorageencryption.c storage: encryption: Add deep copy function for storage encryption 2014-06-20 09:14:46 +02:00
virstorageencryption.h storage: encryption: Add deep copy function for storage encryption 2014-06-20 09:14:46 +02:00
virstoragefile.c util: storage: Fix build after 25924dec0f 2014-07-09 15:04:00 +02:00
virstoragefile.h util: storage: Fix build after 25924dec0f 2014-07-09 15:04:00 +02:00
virstring.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
virstring.h util: string: Add helper to free non-NULL terminated string arrays 2014-06-24 10:45:43 +02:00
virsysinfo.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
virsysinfo.h util: use typedefs for enums in "src/util/" directory 2014-05-05 14:30:01 -06:00
virsystemd.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
virsystemd.h Introduce --without-pm-utils to get rid of pm-is-supported dependency 2014-04-11 15:51:10 -06:00
virthread.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virthread.h Use a static initializer for static mutexes 2014-04-08 13:46:29 +01:00
virthreadpool.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virthreadpool.h
virtime.c util: fix virTimeLocalOffsetFromUTC DST processing 2014-05-29 10:37:49 +03:00
virtime.h util: new function virTimeLocalOffsetFromUTC 2014-05-26 13:51:05 +03:00
virtpm.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virtpm.h
virtypedparam.c Indent top-level labels by one space in src/util/ 2014-03-25 14:58:40 +01:00
virtypedparam.h
viruri.c Remove double OOM error reporting 2014-07-03 10:48:14 +02:00
viruri.h
virusb.c usb: Remove redundant comment 2014-07-03 10:41:15 +02:00
virusb.h
virutil.c Don't use SO_REUSEADDR on Win32 platforms 2014-04-29 11:30:32 +01:00
virutil.h Don't use SO_REUSEADDR on Win32 platforms 2014-04-29 11:30:32 +01:00
viruuid.c Use K&R style for curly braces in src/util/ 2014-03-20 17:16:18 +01:00
viruuid.h
virxml.c util: XML: Avoid forward function declaration 2014-07-09 10:09:00 +02:00
virxml.h