[lxc-devel] [lxc/lxc] ce5782: Tear down network devices during container halt

GitHub noreply at github.com
Thu Sep 3 16:58:54 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: ce5782df8fa0fada0396ec69f5fe05745cb942be
      https://github.com/lxc/lxc/commit/ce5782df8fa0fada0396ec69f5fe05745cb942be
  Author: Major Hayden <major at mhtx.net>
  Date:   2015-09-03 (Thu, 03 Sep 2015)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  Tear down network devices during container halt

On very busy systems, some virtual network devices won't be destroyed after a
container halts.  This patch uses the lxc_delete_network() method to ensure
that network devices attached to the container are destroyed when the
container halts.

Without the patch, some virtual network devices are left over on the system
and must be removed with `ip link del <device>`.  This caused containers
with lxc.network.veth.pair to not be able to start.  For containers using
randomly generated virtual network device names, the old devices will hang
around on the bridge with their original MAC address.

Signed-off-by: Major Hayden <major at mhtx.net>


  Commit: 2c5bcd3a53a1772e74a8991b592a170fcd65702e
      https://github.com/lxc/lxc/commit/2c5bcd3a53a1772e74a8991b592a170fcd65702e
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2015-09-03 (Thu, 03 Sep 2015)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  Merge pull request #649 from major/lxc-delete-network-test

Tear down network devices during container halt


Compare: https://github.com/lxc/lxc/compare/a2b27d2f8526...2c5bcd3a53a1


More information about the lxc-devel mailing list