Jira (FACT-3188) Error on on Solaris non-global zone after upgrading to PE2021.7.2

0 views
Skip to first unread message

Charmaine Pritchett (Jira)

unread,
Feb 27, 2023, 1:52:01 AM2/27/23
to puppe...@googlegroups.com
Charmaine Pritchett updated an issue
 
Facter / Bug FACT-3188
Error on on Solaris non-global zone after upgrading to PE2021.7.2
Change By: Charmaine Pritchett
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 51151
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Selvakumar Azhagarsami (Jira)

unread,
Feb 27, 2023, 1:52:02 AM2/27/23
to puppe...@googlegroups.com
Selvakumar Azhagarsami created an issue
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2023/02/26 10:51 PM
Priority: Normal Normal
Reporter: Selvakumar Azhagarsami

Puppet Version: 2021.7.2

Agent OS: Solaris 11

After the agent upgrades a non-global zone, I get the following during a puppet agent run:

puppet agent -vt
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Error: Facter: undefined method `each' for nil:NilClass
Info: Caching catalog for <snip>
Info: Applying configuration version '1676959799'
Notice: Applied catalog in 18.23 seconds 

Running with debugging showed it was trying to run the following each time the error occurred.

^[[0;36mDebug: Facter: Executing command: route -n get default^[[0m
^[[1;31mError: Facter: undefined method `each' for nil:NilClass^[[0m
^[[0 

further checking It appears that `Facter 3` fully qualified the path: `/usr/sbin/route -n get default`

2023-02-24 11:12:36.775001 DEBUG leatherman.execution:93 - executing command: /usr/sbin/route -n get default
2023-02-24 11:12:36.777061 DEBUG | - route to: default
2023-02-24 11:12:36.777111 DEBUG | - destination: default
2023-02-24 11:12:36.777145 DEBUG | - mask: default
2023-02-24 11:12:36.777177 DEBUG | - gateway: 10.19.111.1
2023-02-24 11:12:36.777211 DEBUG | - interface: net0 

But `facter 4` doesn't

[2023-02-24 11:14:12.265507 ] DEBUG Facter::Core::Execution::Posix - Executing command: route -n get default 

Charmaine Pritchett (Jira)

unread,
Feb 27, 2023, 1:53:01 AM2/27/23
to puppe...@googlegroups.com

Selvakumar Azhagarsami (Jira)

unread,
Feb 27, 2023, 1:53:02 AM2/27/23
to puppe...@googlegroups.com

Selvakumar Azhagarsami (Jira)

unread,
Feb 27, 2023, 1:53:02 AM2/27/23
to puppe...@googlegroups.com

Selvakumar Azhagarsami (Jira)

unread,
Feb 27, 2023, 1:53:02 AM2/27/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Feb 27, 2023, 12:32:02 PM2/27/23
to puppe...@googlegroups.com
Josh Cooper commented on Bug FACT-3188
 
Re: Error on on Solaris non-global zone after upgrading to PE2021.7.2

ERROR Facter::Resolvers::Solaris::Networking - undefined method `each' for nil:NilClass
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/util/resolvers/networking/networking.rb:91:in `expand_primary_interface'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/util/resolvers/networking/networking.rb:39:in `expand_main_bindings'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/solaris/networking.rb:35:in `read_facts'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/solaris/networking.rb:15:in `block in post_resolve'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/solaris/networking.rb:15:in `fetch'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/solaris/networking.rb:15:in `post_resolve'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/base_resolver.rb:26:in `block in resolve'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/base_resolver.rb:24:in `synchronize'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/resolvers/base_resolver.rb:24:in `resolve'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/solaris/networking/interfaces.rb:10:in `call_the_resolver'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:16:in `block in create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/benchmarking/timer.rb:18:in `measure'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/core_fact.rb:15:in `create'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:75:in `core_fact'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:64:in `resolve_fact'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:54:in `block in resolve_sequentially'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:54:in `map!'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:54:in `resolve_sequentially'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact/internal/internal_fact_manager.rb:14:in `resolve_facts'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/core/fact_manager.rb:23:in `resolve_facts'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:521:in `resolve_facts_for_user_query'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:454:in `to_user_output'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli.rb:124:in `query'
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
/opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/cli/cli_launcher.rb:23:in `start'
/opt/puppetlabs/puppet/bin/facter:10:in `<main>'

Tony Vu (Jira)

unread,
Feb 28, 2023, 4:24:02 PM2/28/23
to puppe...@googlegroups.com

Selvakumar Azhagarsami (Jira)

unread,
Apr 21, 2023, 3:25:03 AM4/21/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 24, 2023, 2:31:01 PM4/24/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 24, 2023, 2:36:03 PM4/24/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
May 4, 2023, 2:00:03 PM5/4/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
May 10, 2023, 12:55:01 PM5/10/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
May 18, 2023, 3:44:01 PM5/18/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2023-06-07
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo

Michael Hashizume (Jira)

unread,
May 24, 2023, 1:32:01 PM5/24/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 1, 2023, 12:34:01 PM6/1/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 6, 2023, 7:09:01 PM6/6/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 7, 2023, 1:54:02 PM6/7/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Fix Version/s: FACT 4.4.1
Fix Version/s: FACT 4.4.2

Patrick Grant (Jira)

unread,
Jun 15, 2023, 10:29:03 AM6/15/23
to puppe...@googlegroups.com
Patrick Grant updated an issue
Change By: Patrick Grant
Zendesk Ticket Count: 1 2
Zendesk Ticket IDs: 51151 ,52278

Patrick Grant (Jira)

unread,
Jun 15, 2023, 10:31:34 AM6/15/23
to puppe...@googlegroups.com
Patrick Grant commented on Bug FACT-3188
 
Re: Error on on Solaris non-global zone after upgrading to PE2021.7.2

Another instance of this in https://puppetlabs.zendesk.com/agent/tickets/52278 from ANZ bank. Beforehand the facts would just come back empty but now the errors are flagging the customers monitoring so this will need to be addressed

Reply all
Reply to author
Forward
0 new messages