Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2004

cloud fact does not detect Azure with NetworkManager

    XMLWordPrintable

Details

    • Night's Watch
    • 3
    • NW - 2019-10-02, NW - 2019-10-16
    • Customer Feedback
    • Reviewed
    • 36058
    • 1
    • Bug Fix
    • Hide
      In previous releases, Facter did not report the `cloud` fact on Azure. This issue is now fixed.

      azure fact will be detected by searching azure specific dhcp option in any lease file from /var/lib/dhcp and /var/lib/NetworkManager directories
      Show
      In previous releases, Facter did not report the `cloud` fact on Azure. This issue is now fixed. azure fact will be detected by searching azure specific dhcp option in any lease file from /var/lib/dhcp and /var/lib/NetworkManager directories
    • 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.

      Attachments

        Issue Links

          Activity

            People

              ciprian.badescu Ciprian Badescu
              seanmil Sean Millichamp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support