[puppet-team-phoenix-public|https://perforce.slack.com/archives/C049M3SC73M/p1673869007041499] A Swisscom customer [50697|https://puppetlabs.zendesk.com/agent/tickets/50697] claims that on their Solaris server facter is failing to return expected results. 12 replies ----
For example: With Facter 4.2.5 (PE 2021.x), we face the following bug: Accessing fact ldom is OK: (0)MGMT(gDom)root@vdcf-mgmt-gd:~# facter ldom \{ domainchassis => "1249BDYDE1", domaincontrol => "oc-master-02-cd", domainname => "vdcf-mgmt-gd", domainrole => { control => "false", impl => "LDoms", io => "false", root => "false", service => "false" }, domainuuid => "edad1f61-ec07-efd1-f7da-fda1a9f35547" }
Accessing ldom.domainrole is also OK:
(0)MGMT(gDom)root@vdcf-mgmt-gd:~# facter ldom.domainrole \{ control => "false", impl => "LDoms", io => "false", root => "false", service => "false" }
However, Accessing subitems of ldom.control do not work:
(0)MGMT(gDom)root@vdcf-mgmt-gd:~# facter ldom.domainrole.impl
(0)MGMT(gDom)root@vdcf-mgmt-gd:~#
However, when running the same command in debug mode, we see the value was successfully resolved to LDoms:
(130)MGMT(gDom)root@vdcf-mgmt-gd:~# facter ldom.domainrole.impl --debug [2023-01-11 18:38:00.437408 ] INFO Facter - executed with command line: ldom.domainrole.impl --debug [2023-01-11 18:38:00.437982 ] DEBUG Facter - Facter version: 4.2.5 [2023-01-11 18:38:00.442361 ] DEBUG Facter::FactManager - Resolving facts sequentially [2023-01-11 18:38:00.442909 ] DEBUG Facter::FactLoader - Loading all internal facts [2023-01-11 18:38:00.443405 ] DEBUG Facter::FactLoader - Loading custom facts [2023-01-11 18:38:00.447715 ] DEBUG Facter::FactLoader - Loading external facts [2023-01-11 18:38:00.448624 ] DEBUG LegacyFacter::Util::DirectoryLoader - Fact file /opt/puppetlabs/facter/facts.d/application.txt was parsed but no key=>value data was returned [2023-01-11 18:38:00.454139 ] DEBUG Facter::QueryParser - List of resolvable facts: [#<Facter::SearchedFact:0x029d4c08 @name="ldom_domainrole_impl", @fact_class=Facts::Solaris::Ldom, @user_query="ldom.domainrole.impl", @type=:legacy, @file=nil>] [2023-01-11 18:38:00.454412 ] DEBUG Facts::Solaris::Ldom - Solving the ldom fact. [2023-01-11 18:38:00.454613 ] DEBUG Facter::Core::Execution::Posix - Executing command: /usr/sbin/virtinfo -a -p [2023-01-11 18:38:00.500065 ] DEBUG Facter::FactManager - fact "ldom_domainrole_impl" has resolved to: LDoms [2023-01-11 18:38:00.500617 ] DEBUG Facter::LegacyFactFormatter - Formatting for single user query [2023-01-11 18:38:00.500997 ] DEBUG Facter::LegacyFactFormatter - Remove quotes from value if it is a simple string
(0)MGMT(gDom)root@vdcf-mgmt-gd:~#
Facter version:
(0)MGMT(gDom)root@vdcf-mgmt-gd:~# facter --version 4.2.5
Solaris version/architecture as follows:
(0)MGMT(gDom)root@vdcf-mgmt-gd:~# facter os.release facter \{ full => "11.4", major => "11", minor => "4" } (0)MGMT(gDom)root@vdcf-mgmt-gd:~# facter hardwareisa sparc |
|
|