[lxc-devel] [lxc/lxc] 954e36: network: Adds short sleep between veth setup and n...

Christian Brauner noreply at github.com
Sun Mar 8 19:43:11 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 954e36b490b9b961641cf030817d10dba2a4ddea
      https://github.com/lxc/lxc/commit/954e36b490b9b961641cf030817d10dba2a4ddea
  Author: Thomas Parrott <thomas.parrott at canonical.com>
  Date:   2020-03-08 (Sun, 08 Mar 2020)

  Changed paths:
    M src/lxc/network.c

  Log Message:
  -----------
  network: Adds short sleep between veth setup and neighbour proxy add

There is an intermittent issue, experienced on at least Ubuntu 18.04 (5.3.0-40-generic) and Alpine 3.11 (5.4.12-1-virt) when using the router network interface type that causes the IP proxy neighbour entries on the host side of the veth pair to not be created.

The `ip neigh add proxy` command returns without an error, however by the time the network up hook has started the IP neighbour proxy entries are no longer there (if they ever were).

I've also tested this using netlink rather than the ip command to add and both are equally affected.

Adding a short sleep between setting up the veth pair and adding the proxy entries appears to fix it.

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>


  Commit: d31059efa647cb7e2857a2224124b0d879b2fb12
      https://github.com/lxc/lxc/commit/d31059efa647cb7e2857a2224124b0d879b2fb12
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2020-03-08 (Sun, 08 Mar 2020)

  Changed paths:
    M src/lxc/network.c

  Log Message:
  -----------
  Merge pull request #3278 from tomponline/tp-proxy-sleep

network: Adds short sleep between veth setup and neighbour proxy add


Compare: https://github.com/lxc/lxc/compare/e901a7a15cc6...d31059efa647


More information about the lxc-devel mailing list