← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2006784] Re: dhcp lookups depend on end-of-life dhclient

 

NixOS is not supported by upstream cloud-init. Please contact your
distro maintainers for a fix.

Regarding ISC's client support, this is a real issue and plans for a
replacement are under way.

** Changed in: cloud-init
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/2006784

Title:
  dhcp lookups depend on end-of-life dhclient

Status in cloud-init:
  Invalid

Bug description:
  When using DataSourceHetzner, there is a required dhcp lookup. This
  digs down to a function named `maybe_perform_dhcp_discovery` which
  breaks when a `which dhclient` does not return a binary. This raises a
  `NoDHCPLeaseMissingDhclientError`.

  I have only tested this under NixOS, as its one of the first
  distributions to have have removed `dhclient` from its the package
  tree following the deprecation by ISC's to the package.

  DHCP lookups should be changed to support a non-deprecated dhcp
  library.

  
  Cloud-provider: Hetzner

  Cloud-init config:

  ```
  system_info:
    distro: nixos
    network:
      renderers: [networkd]
  users:
   - root

  disable_root: false
  preserve_hostname: false

  cloud_init_modules:
   - set_hostname
   - update_hostname
   - update_etc_hosts
  cloud_config_modules: []
  cloud_final_modules: []

  datasource_list:
   - DataSourceHetzner
  ```

  Source where error is raised from:
  https://github.com/canonical/cloud-init/blob/b3978cbd6c68c883f5ab02630d8d7fcb220b270c/cloudinit/net/dhcp.py#L69

  End-of-life notice from ISC at 02 Jul 2021:
  https://www.isc.org/blogs/dhcp-client-relay-eom/

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/2006784/+subscriptions



References