mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Don't set netdev offline in container cleanup
During container cleanup there is a race where the kernel may have destroyed the veth device before we try to set it offline. This causes log error messages. Given that we're about to delete the device entirely, setting it offline is pointless. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
f371400262
commit
f5eae57086
@ -193,7 +193,6 @@ static void virLXCProcessCleanup(virLXCDriverPtr driver,
|
||||
virDomainNetDefPtr iface = vm->def->nets[i];
|
||||
vport = virDomainNetGetActualVirtPortProfile(iface);
|
||||
if (iface->ifname) {
|
||||
ignore_value(virNetDevSetOnline(iface->ifname, false));
|
||||
if (vport &&
|
||||
vport->virtPortType == VIR_NETDEV_VPORT_PROFILE_OPENVSWITCH)
|
||||
ignore_value(virNetDevOpenvswitchRemovePort(
|
||||
|
Loading…
Reference in New Issue
Block a user