Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
Platform OS
-
Platform OS Kanban
-
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