Ask Your Question
0

unable to connect to puppet master in RhoS (6.6) from RHOS(7.1)

asked 2017-06-27 05:51:52 -0500

kanchan gravatar image

updated 2017-06-28 00:17:14 -0500

joshc gravatar image

When trying to test agent from RHOS (7.7) puppet agent --test i get this output

Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve local facts: undefined method `to_a' for "ens160":String
Error: Failed to apply catalog: Could not retrieve local facts: undefined method `to_a' for "ens160":String

could you please suggest how should i begin analysing it..It wl be learning for me as well..I ma new to puppet

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-28 03:35:02 -0500

kanchan gravatar image

updated 2017-06-28 14:20:43 -0500

DarylW gravatar image

error:

Error: Could not retrieve local facts: undefined method `to_a' for "ens160":String
/var/lib/puppet/lib/facter/default_gateway.rb:46:in `block (2 levels) in <top (required)>'
/var/lib/puppet/lib/facter/default_gateway.rb:46:in `collect!'
/var/lib/puppet/lib/facter/default_gateway.rb:46:in `block in <top (required)>'
/var/lib/puppet/lib/facter/default_gateway.rb:31:in `each_line'
/var/lib/puppet/lib/facter/default_gateway.rb:31:in `<top (required)>'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:130:in `load'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:130:in `kernel_load'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:115:in `load_file'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:49:in `block (2 levels) in load_all'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:47:in `each'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:47:in `block in load_all'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:45:in `each'
/usr/share/ruby/vendor_ruby/facter/util/loader.rb:45:in `load_all'
/usr/share/ruby/vendor_ruby/facter/util/collection.rb:104:in `load_all'
/usr/share/ruby/vendor_ruby/facter.rb:126:in `to_hash'
/usr/share/ruby/vendor_ruby/puppet/indirector/facts/facter.rb:23:in `find'
/usr/share/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/share/ruby/vendor_ruby/puppet/configurer/fact_handler.rb:15:in `find_facts'
/usr/share/ruby/vendor_ruby/puppet/configurer/fact_handler.rb:31:in `facts_for_uploading'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:97:in `get_facts'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:199:in `run_internal'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:134:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/context.rb:64:in `override'
/usr/share/ruby/vendor_ruby/puppet.rb:246:in `override'
/usr/share/ruby/vendor_ruby/puppet/configurer.rb:133:in `run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:47:in `block (4 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/agent/locker.rb:20:in `lock'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:47:in `block (3 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:117:in `with_client'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:44:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:82:in `run_in_fork'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:43:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:179:in `call'
/usr/share/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/usr/share/ruby/vendor_ruby/puppet/agent.rb:41:in `run'
/usr/share/ruby/vendor_ruby/puppet/application/agent.rb:361:in `onetime'
/usr/share/ruby/vendor_ruby/puppet/application/agent.rb:327:in `run_command'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block (2 levels) in run'
/usr/share/ruby/vendor_ruby/puppet/application.rb:507:in `plugin_hook'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `block in run'
/usr/share/ruby/vendor_ruby/puppet/util.rb:496:in `exit_on_fail'
/usr/share/ruby/vendor_ruby/puppet/application.rb:381:in `run'
/usr/share/ruby/vendor_ruby/puppet/util/command_line.rb:146:in `run'
/usr/share/ruby/vendor_ruby ...
(more)
edit flag offensive delete link more

Comments

also in the agent server wher ei am facing this issue..i can see in /etc/init.d no puppet daemon is created..but in another agent server where we can actually with the existing puppet master..i can see a puppet daemon process is present in /etc/init.d

kanchan gravatar imagekanchan ( 2017-06-28 04:09:42 -0500 )edit

is the error dur to mismatch in the version between puppetagent and puppet master puppetmaster-3.6.2 puppetagent -3.84 or it is due to mismatch in ruby version installed between the two servers?? pls ssuggest

kanchan gravatar imagekanchan ( 2017-06-28 06:35:14 -0500 )edit
0

answered 2017-06-28 00:17:37 -0500

joshc gravatar image

Can you run the agent with puppet agent -t--debug --trace and post the stacktrace?

edit flag offensive delete link more

Comments

also the puppetegent has ruby version 2.0 installed in it whereas the master server has ruby version 1.8.7

kanchan gravatar imagekanchan ( 2017-06-28 03:39:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-06-27 05:51:52 -0500

Seen: 47 times

Last updated: Jun 28