[lxc-devel] [lxc/lxc] 561005: conf: merge network namespace move & rename on shu...

GitHub noreply at github.com
Wed Nov 2 20:05:34 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 5610055a113f46a017bad687c40e7570da2a7035
      https://github.com/lxc/lxc/commit/5610055a113f46a017bad687c40e7570da2a7035
  Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/start.c

  Log Message:
  -----------
  conf: merge network namespace move & rename on shutdown

On shutdown we move physical network interfaces back to the
host namespace and rename them afterwards as well as in the
later lxc_network_delete() step. However, if the device had
a name which already exists in the host namespace then the
moving fails and so do the subsequent rename attempts. When
the namespace ceases to exist the devices finally end up
in the host namespace named 'dev<ID>' by the kernel.

In order to avoid this, we do the moving and renaming in a
single step (lxc_netdev_move_by_*()'s move & rename happen
in a single netlink transaction).

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>


  Commit: 0fa988d1ace81d9ea82728a6148511bacf95471d
      https://github.com/lxc/lxc/commit/0fa988d1ace81d9ea82728a6148511bacf95471d
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/start.c

  Log Message:
  -----------
  Merge pull request #1269 from Blub/phynet-rename-2

conf: merge network namespace move & rename on shutdown


Compare: https://github.com/lxc/lxc/compare/59f1c5ca63f7...0fa988d1ace8


More information about the lxc-devel mailing list