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

[facter] memory fact sometimes fails on AIX

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • FACT 3.11.4
    • None
    • Bug Fix
    • Fix for an occasional AIX error around the `memory` fact.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support