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

Facter 4 outputs several facts with different precision than Facter 3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 4.1.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2021-03-31
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Facter no longer rounds values for MB facts for example memorrysize_mb.
    • QA Risk Assessment:
      Needs Assessment

      Description

      While running puppet facts diff on several operating systems (see in document below the os for each fact), I got the following output:

      {
        "memory.swap.capacity": {
          "new_value": "0.00%",
          "old_value": "0%"
        },
        "swapsize_mb": {
          "new_value": 980.0,
          "old_value": 979.99609375
        },
        "memorysize_mb": {
          "new_value": 7953.32,
          "old_value": 7953.3203125
        },
        "swapfree_mb": {
          "new_value": 501.29,
          "old_value": 501.28515625
        },
        "load_averages.1m": {
          "new_value": 1.21214,
          "old_value": 1.1436767578125
        },
        "load_averages.5m": {
          "new_value": 1.37865,
          "old_value": 1.3682098388671875
        },
        "load_averages.15m": {
          "new_value": 1.34709,
          "old_value": 1.3434600830078125
        },
        "memoryfree_mb": {
          "new_value": 4021.88,
          "old_value": 4023.265625
        }
      }
      

      Note: EXCLUDE_LIST from https://github.com/puppetlabs/puppet/blob/6.x/lib/puppet/face/facts.rb#L5 needs to be manually emptied to see above results.
      More info: https://docs.google.com/document/d/1QlX_mv17fZ4eVZa9zHxvTRVJ5sq88aj3GjUC6lVFiz0/edit#heading=h.gnnvlmulav1v

        Attachments

          Activity

            People

            Assignee:
            mihai.buzgau Mihai Buzgau
            Reporter:
            luchian.nemes Luchian Nemes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support