Public bug reported: 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/ ** Affects: cloud-init Importance: Undecided Status: New -- 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: New 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp