Comment 1 for bug 1979674

Revision history for this message
Lukas Märdian (slyon) wrote : Re: Netplan ignores renderer in 22.04 Desktop

Thank you for the detailed bug report! Netplan does not ignore the renderer. But rather it is only searching for dhlcient leases and ignores lease files from NetworkManager's internal DHCP client.

This can be seen by the error message: No such file or directory: '/var/lib/NetworkManager/dhclient-d6b936ad-d73f-4898-a826-edbb61d6155a-eth0.lease'
This error disappears when you switch your NetworkManager.conf to using dhclient:
    [main]
    dhcp=dhclient

We need to teach netplan to search for "NetworkManger/internal-" as well as "NetworkManager/dhclient-" leases.

I've drafted a potential fix for this here:
https://github.com/canonical/netplan/pull/284