Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
3
-
NW - 2019-10-02, NW - 2019-10-16
-
Customer Feedback
-
Reviewed
-
36058
-
1
-
Bug Fix
-
-
Needs Assessment
Description
EL7 using NetworkManager on Azure does not report the cloud fact, even though it should.
On EL7 platforms using NetworkManager the dhclient lease file is not in the location where Facter is looking for it /var/lib/dhcp/dhclient.eth0.leases from https://github.com/puppetlabs/facter/blob/master/lib/inc/internal/facts/linux/virtualization_resolver.hpp#L37
If NetworkManager is in use the file instead needs to be looked for in /var/lib/NetworkManager/dhclient-<uuid>-eth0.lease. The code would need to search both locations for matches similarly to here: https://github.com/puppetlabs/facter/blob/master/lib/src/facts/bsd/networking_resolver.cc#L136-L169
Thank you.