On 7/19/2020 16:09, Andrei Borzenkov wrote:
19.07.2020 21:56, Moby пишет:
I just upgraded a Leap 15.1 machine to 15.2. I am using NetworkManager to manage networking on that machine.
Prior to the upgrade, I was able to see DHCP lease information in /var/lib/NetworkManager/dhclient*.lease files.
After the upgrade, I see /var/lib/NetworkManager/internal*lease file, but it contains just the IP address and no other information that was obtained via DHCP.
I see that I can obtain all the DHCP information via nmcli device show. My question is where is this information stored? Or is all the information kept in memory now by NetworkManager and only the address is written to the internal*lease file (this seems hard to believe, I would think NetworkManager would want to store the leased IP and, at a minimum, DNS and gateway information as well).
In 15.2 NM defaults to internal dhcp client based on systemd-network library. For all I can tell, lease file should contain full information but it does not.
I see the same (truncated lease file in NM) on Tumbleweed. systemd-networkd (which is using the same underlying library, just different lease file location) stores full information (on the same system) using apparently the same function. So it appears NetworkManager specific problem.
You may want to open bug report. In the mean time you may consider switching NM to use dhclient if this information is vital for you.
The installation of NetworkManager is pretty much out of the box, no custom dhcp client etc. is configured to be used by NetworkManager.
Thank you in advance for your help,
--Moby
Thanks Andrei. the information is not vital as I can modify my code to use the output from nmcli show device and parse that. I was hoping not to have to do that but it is not a showstopper (and probably a better idea as the persistent store for NM's internal DHCP client may change yet again). Are you aware of a list or forum about NetworkManager where I can ask this? If not, I will open a bugreport just to get an answer.
Thanks again, --Moby -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org