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

ipaddress fact changed behaviour in FreeBSD, returns incorrect result with Puppet 5

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      1
    • Sprint:
      PR - 2019-06-12, PR - 2019-06-25
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      [Community support OS] Add primary network interface check for FreeBSD
    • QA Risk Assessment:
      Needs Assessment

      Description

      The ipaddress fact used to return the main IPv4 address of the system in FreeBSD. Pretty basic I guess, but with Puppet 5, it's broken.

      With Puppet5, if there are loopback interfaces (e.g. lo0, lo1) in addition to the usual Ethernet interface (e.g. em0, vmx0, etc), one of the loopback addresses is returned instead. This is obviously wrong and alters an expected behaviour that has been around since Puppet 3 or even before.

      Apologies that I cannot really pinpoint or patch the error, but the C++11 code is difficult to grasp. Doing puppet facts --debug yields nothing that could be of any help.

      Also, "facterversion": "3.13.2".

        Attachments

          Activity

            People

            Assignee:
            gabriel.nagy Gabriel Nagy
            Reporter:
            aduitsis Athanasios Douitsis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support