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

cloud fact does not detect Azure with NetworkManager

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2019-10-02, NW - 2019-10-16
    • Method Found:
      Customer Feedback
    • CS Priority:
      Reviewed
    • Zendesk Ticket IDs:
      36058
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      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
    • QA Risk Assessment:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support