Jiri Denemark 241c22a9a5 virnetdevbridge: Ignore EEXIST when adding an entry to fdb
When updating entries in a bridge forwarding database (i.e., when
macTableManager='libvirt' is configured for the bridge), we may end up
in a situation when the entry we want to add is already present. Let's
just ignore the error in such a case.

This fixes an error to resume a domain when fdb entries were not
properly removed when the domain was paused:

    virsh # resume test
    error: Failed to resume domain test
    error: error adding fdb entry for vnet2: File exists

For some reason, fdb entries are only removed when libvirt explicitly
stops CPUs, but nothing happens when we just get STOP event from QEMU.
An alternative approach would be to make sure we always remove the
entries regardless on why a domain was paused (e.g., during migration),
but that would be a significantly more disruptive change with possible
side effects.

https://bugzilla.redhat.com/show_bug.cgi?id=1603155

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
2021-05-03 11:12:58 +02:00
..
2021-03-22 12:44:18 +01:00
2021-03-22 12:44:18 +01:00
2021-04-15 15:42:21 +02:00
2021-03-02 09:50:19 +01:00
2021-04-21 14:18:51 +02:00
2020-10-06 12:31:34 +02:00
2021-04-13 17:00:38 +02:00
2021-04-15 15:42:21 +02:00
2021-03-02 09:50:19 +01:00
2021-04-13 17:00:38 +02:00
2021-04-15 15:42:21 +02:00
2020-10-06 12:31:34 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00