[lxc-devel] [lxc/lxc] 84bf56: hooks: dhclient hook improvements

GitHub noreply at github.com
Wed Dec 20 01:48:06 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 84bf5645ed0b0c4380ca0a05c148e4c833d1383c
      https://github.com/lxc/lxc/commit/84bf5645ed0b0c4380ca0a05c148e4c833d1383c
  Author: Jonathan Calmels <jcalmels at nvidia.com>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M .gitignore
    M configure.ac
    M hooks/Makefile.am
    R hooks/dhclient-start.in
    R hooks/dhclient-stop.in
    A hooks/dhclient.in

  Log Message:
  -----------
  hooks: dhclient hook improvements

- Merge dhclient-start and dhclient-stop into a single hook.
- Wait for a lease before returning from the hook.
- Generate a logfile when LXC log level is either DEBUG or TRACE.
- Rely on namespace file descriptors for the stop hook.
- Use settings from /<sysconf>/lxc/dhclient.conf if available.
- Attempt to cleanup if dhclient fails to shutdown properly.

Signed-off-by: Jonathan Calmels <jcalmels at nvidia.com>


  Commit: bbb8e190f1102e8c012533b706d56ace53f5cd79
      https://github.com/lxc/lxc/commit/bbb8e190f1102e8c012533b706d56ace53f5cd79
  Author: Jonathan Calmels <jcalmels at nvidia.com>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M config/init/common/lxc-net.in

  Log Message:
  -----------
  lxc-net: add LXC_DHCP_PING boolean option

Excerpt from dnsmasq(8):
By default, the DHCP server will attempt to ensure that an address in not
in use before allocating it to a host. It does this by sending an ICMP echo
request (aka "ping") to the address in question. If it gets a reply, then the
address must already be in use, and another is tried. This flag disables this check.

This is useful if one expects all the containers to get an IP address
from the LXC authoritative DHCP server and wants to speed up the process
of getting a lease.

Signed-off-by: Jonathan Calmels <jcalmels at nvidia.com>


  Commit: 1689c7cf9078b1f4ed7e66e96c7f22af444497e6
      https://github.com/lxc/lxc/commit/1689c7cf9078b1f4ed7e66e96c7f22af444497e6
  Author: Jonathan Calmels <jcalmels at nvidia.com>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M config/templates/Makefile.am
    A config/templates/oci.common.conf.in
    M configure.ac
    M templates/lxc-oci.in

  Log Message:
  -----------
  lxc-oci: read configuration from oci.common.conf if available

Signed-off-by: Jonathan Calmels <jcalmels at nvidia.com>


  Commit: 9a962dc622b9473e7791ba81936c60ef62e09a8c
      https://github.com/lxc/lxc/commit/9a962dc622b9473e7791ba81936c60ef62e09a8c
  Author: Jonathan Calmels <jcalmels at nvidia.com>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M templates/lxc-oci.in

  Log Message:
  -----------
  lxc-oci: add DHCP option leveraging dhclient hooks

Signed-off-by: Jonathan Calmels <jcalmels at nvidia.com>


  Commit: d1de8ddad1cdf403fe71f84efb231d4b5ad49716
      https://github.com/lxc/lxc/commit/d1de8ddad1cdf403fe71f84efb231d4b5ad49716
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-12-20 (Wed, 20 Dec 2017)

  Changed paths:
    M .gitignore
    M config/init/common/lxc-net.in
    M config/templates/Makefile.am
    A config/templates/oci.common.conf.in
    M configure.ac
    M hooks/Makefile.am
    R hooks/dhclient-start.in
    R hooks/dhclient-stop.in
    A hooks/dhclient.in
    M templates/lxc-oci.in

  Log Message:
  -----------
  Merge pull request #2013 from 3XX0/oci-dhcp-improvements

Improve the dhclient hook for OCI compat


Compare: https://github.com/lxc/lxc/compare/90f20db15fdf...d1de8ddad1cd


More information about the lxc-devel mailing list