Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
FACT 3.y
-
Night's Watch
-
3
-
NW - 2021-09-22
-
Needs Assessment
-
Bug Fix
-
-
Needs Assessment
Description
On some AIX LPARS we get the following warnings when running facter (also when Puppet is resolving facts):
2021-03-03 17:09:43.233892 WARN puppetlabs.facter - mismatched processor frequencies found; facter will only report one of them
2021-03-03 17:09:43.237845 WARN puppetlabs.facter - mismatched processor frequencies found; facter will only report one of them
This warning is due to the fact, after a hardware migration, the old processor entries are still present in the AIX ODM database.
From this output, you can see all processor resources. Only the Active ones are in used, the Defined ones are the old ones:
lsdev -Cc processor
proc0 Available 00-00 Processor
proc2 Defined 00-02 Processor
proc4 Defined 00-04 Processor
proc8 Available 00-08 Processor
As you can see from the following output, processor frequencies between the Defined (old hardware) procs and Available (current hardware procs) are different, and this is expected:
lsattr -El proc0
frequency 3724000000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 8 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER8 Processor type False
lsattr -El proc2
frequency 4704000000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 2 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER6 Processor type False
lsattr -El proc4
frequency 3108000000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 4 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER7 Processor type False
lsattr -El proc8
frequency 3724000000 Processor Speed False
smt_enabled true Processor SMT enabled False
smt_threads 8 Processor SMT threads False
state enable Processor state False
type PowerPC_POWER8 Processor type False
In facter, please consider only the Available procs for any facts related to CPU (like frequency), as only Available ones are relevant.
The following IBM link basically says that Defined proc resources have to be ignored. And, from my point of view it is not the role of Facter to show up warnings when sysadmins did not clean up the leftover of a migration.
Link:
https://www.ibm.com/support/pages/ibm-aix-lsdev-cc-processor-output-defined-vs-available-state
Please kindly ignore proc resources in Defined state for all facts
Thanks