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

[facter] memory fact sometimes fails on AIX

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 3.11.4
    • Component/s: None
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix for an occasional AIX error around the `memory` fact.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Overview

      The memory fact resolves to an error on some AIX 7.1 machines/

      Expected result

      The memory fact should be present

      Actual result

      Error encountered in puppet facts --trace:

      ^[[0;36mDebug: Facter: resolving memory facts.^[[0m
      ^[[1;31mError: Facter: Facter.value uncaught exception: No such device or address^[[0m
      

      Trace output attached to bug report

      Customer impact

      Customer attempting to access data from memory structured fact to collate data in custom fact for export to other system results in error:

        xxx_info = Hash[
          "physicalmemory"  => Facter.value(:memory)['system']['total'],
         ...
        ]
       
      ^[[1;31mError: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/xxx_info.rb: undefined method `[]' for nil:NilClass
      

      Customer must alter code to workaround this by skipping data collection from memory fact when it is not present, resulting in additional code to maintain and incomplete data being collated in the external system

        Attachments

          Activity

            People

            • Assignee:
              scott.mcclellan Scott McClellan
              Reporter:
              geoff.williams Geoff Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support