Hi All, I have entered the following statements to the /etc/puppet/ puppet.conf file on my puppet master server so reports will get forwarded to my puppet client that is also running the Puppet Dashboard. I made these entries exactly as the dashboard docs indicated, and I modified the external_node script to use the defined url instead of the localhost default. [main] node_terminus = exec external_nodes = /etc/puppet/bin/external_node reports = http, store reporturl = fedorahost.ocfl.net:3000/reports However, when I restart the puppet master daemon I get the errors below. Has anyone seen this problem before, and if so, can you possibly tell me how to fix it? When I comment out the entries I made in [main], the puppet master and puppet clients work perfectly. I believe that the connection refused and No route to host are spurious messages and not truly indicative of the problem. Jan 11 11:14:18 fedorahost1 puppet-master[2572]: Reopening log files Jan 11 11:14:18 fedorahost1 puppet-master[2572]: Starting Puppet master version 2.6.4 Jan 11 11:19:16 fedorahost1 puppet-master[2572]: Failed to find fedorahost.ocfl.net via exec: Execution of ''/etc/puppet/bin/ external_node fedorahost.ocfl.net'' returned 1: /usr/lib/ruby/1.8/net/ http.rb:560:in `initialize'': Connection refused - connect(2) (Errno::ECONNREFUSED)#012#011from /usr/lib/ruby/1.8/net/http.rb:560:in `open''#012#011from /usr/lib/ruby/1.8/net/http.rb:560:in `connect''#012#011from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout''#012#011from /usr/lib/ruby/1.8/timeout.rb:101:in `timeout''#012#011from /usr/lib/ruby/1.8/net/http.rb:560:in `connect''#012#011from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start''#012#011from /usr/lib/ruby/1.8/net/http.rb:542:in `start''#012#011from /usr/lib/ruby/1.8/net/http.rb:440:in `start''#012#011from /etc/puppet/bin/external_node:20 Jan 11 11:19:16 fedorahost1 puppet-master[2572]: Could not find node ''fedorahost.ocfl.net''; cannot compile Jan 11 11:19:16 fedorahost1 puppet-master[2572]: Report http failed: No route to host - connect(2) Thanks, Mike -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jan 11, 2011, at 12:13 PM, Mike wrote:> [main] > > node_terminus = exec > external_nodes = /etc/puppet/bin/external_node > reports = http, store > reporturl = fedorahost.ocfl.net:3000/reports > > However, when I restart the puppet master daemon I get the errors > below. Has anyone seen this problem before, and if so, can you > possibly tell me how to fix it? When I comment out the entries I made > in [main], the puppet master and puppet clients work perfectly. I > believe that the connection refused and No route to host are spurious > messages and not truly indicative of the problem.Load up a webbrowser and point it to http://fedorahost.ocfl.net:3000/ . You should get a webpage. I''m guessing that you don''t have Dashboard started. (Or possibly misconfigured) If Dashboard isn''t started, your webbrowser will tell you "connection refused" or "webpage not found" or something similar. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
<Michael.Itchue@ocfl.net>
2011-Jan-12 14:05 UTC
RE: [Puppet Users] Send Reports to Puppet Dashboard
Hello Patrick, I have the puppet-dashboard up and running and get the gui. What I am seeing there is that none of my clients(nodes) are reporting. When I click on nodes the dashboard lists all of my nodes but also states each has not reported. What I am trying to get working is that the puppet clients report to the dashboard. Thanks for the tips, and if you have another please send it to me. Mike -----Original Message----- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Patrick Sent: Tuesday, January 11, 2011 5:20 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Send Reports to Puppet Dashboard On Jan 11, 2011, at 12:13 PM, Mike wrote:> [main] > > node_terminus = exec > external_nodes = /etc/puppet/bin/external_node reports = http, store > reporturl = fedorahost.ocfl.net:3000/reports > > However, when I restart the puppet master daemon I get the errors > below. Has anyone seen this problem before, and if so, can you > possibly tell me how to fix it? When I comment out the entries I made > in [main], the puppet master and puppet clients work perfectly. I > believe that the connection refused and No route to host are spurious > messages and not truly indicative of the problem.Load up a webbrowser and point it to http://fedorahost.ocfl.net:3000/ . You should get a webpage. I''m guessing that you don''t have Dashboard started. (Or possibly misconfigured) If Dashboard isn''t started, your webbrowser will tell you "connection refused" or "webpage not found" or something similar. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. _____________________________________________________________________ PLEASE NOTE: Florida has a very broad public records law (F. S. 119). All e-mails to and from County Officials are kept as a public record. Your e-mail communications, including your e-mail address may be disclosed to the public and media at any time. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2011-Jan-12 17:25 UTC
Re: RE: [Puppet Users] Send Reports to Puppet Dashboard
Hey. You need to do two things, both of which should be in the install instructions - so please file a bug if they are not, or are unclear. The first is to turn on the report option on your clients so they send data to the master. (Kiterally, report=true in the agent config) The second is to set "reporturl" to "http://dashboard.url:3000/reports", and "reports=http" in the master config. Regards, Daniel On Jan 12, 2011 6:09 AM, <Michael.Itchue@ocfl.net> wrote: -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
<Michael.Itchue@ocfl.net>
2011-Jan-12 19:37 UTC
RE: RE: [Puppet Users] Send Reports to Puppet Dashboard
Hi Daniel, I have already done the setup which you mention below. I followed the puppet-dashboard configuration guide to the tee, which is why I''m surprised that this feature is not working. I have verified that the puppet.conf entries on the client and master are correct. I''m wondering if this problem is a bug? Thanks for your help. Mike From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Daniel Pittman Sent: Wednesday, January 12, 2011 12:26 PM To: puppet-users@googlegroups.com Subject: Re: RE: [Puppet Users] Send Reports to Puppet Dashboard Hey. You need to do two things, both of which should be in the install instructions - so please file a bug if they are not, or are unclear. The first is to turn on the report option on your clients so they send data to the master. (Kiterally, report=true in the agent config) The second is to set "reporturl" to "http://dashboard.url:3000/reports", and "reports=http" in the master config. Regards, Daniel On Jan 12, 2011 6:09 AM, <Michael.Itchue@ocfl.net> wrote: -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. _____________________________________________________________________ PLEASE NOTE: Florida has a very broad public records law (F. S. 119). All e-mails to and from County Officials are kept as a public record. Your e-mail communications, including your e-mail address may be disclosed to the public and media at any time. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jan 12, 2011, at 11:37 AM, <Michael.Itchue@ocfl.net> wrote:> Hi Daniel, > > I have already done the setup which you mention below. I followed the puppet-dashboard configuration guide to the tee, > which is why I’m surprised that this feature is not working. I have verified that the puppet.conf entries on the client and > master are correct. I’m wondering if this problem is a bug? Thanks for your help.At this point, I don''t think you''re going to get much help unless you post a lot more from your puppet.conf files. For instance, we should be seeing section names. At this point, you''re saying you did everything right, but evidently something isn''t right so that doesn''t help us much. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jan 12, 2011 2:02 PM, "Patrick" <kc7zzv@gmail.com> wrote:> On Jan 12, 2011, at 11:37 AM, <Michael.Itchue@ocfl.net> wrote:>> I have already done the setup which you mention below. I followed thepuppet-dashboard configuration guide to the tee,>> which is why I’m surprised that this feature is not working. I haveverified that the puppet.conf entries on the client and>> master are correct. I’m wondering if this problem is a bug? Thanks foryour help. Well, I can assure you that HTTP reports going in to dashboard *can* work, so while I can''t rule out a bug it isn''t as gross as never working at all.> At this point, I don''t think you''re going to get much help unless you posta lot more from your puppet.conf files. For instance, we should be seeing section names. At this point, you''re saying you did everything right, but evidently something isn''t right so that doesn''t help us much. This is pretty much on the money. Can you post the config bits and the logs from master and dashboard so we can see what they have to say about it? Specifically, logs from an agent sending back the report to the master and all. :) Regards, Daniel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
<Michael.Itchue@ocfl.net>
2011-Jan-13 14:10 UTC
RE: [Puppet Users] Send Reports to Puppet Dashboard
Patrick, This is what I have setup in the puppet.conf files on the master and client. Both servers are running puppet 2.6.4 On the Master in /etc/puppet/puppet.conf [master] reports = http, store reporturl = http://fedorahost.ocfl.net:3000/reports node_terminus = exec external_nodes = /etc/puppet/bin/external_node in external_node I have changed the localhost default to: BASE = "http://fedorahost.ocfl.net:3000" On the client in /etc/puppet/puppet.conf [agent] report = true Thanks for your help. I hope you see something I might have done wrong. Mike From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Patrick Sent: Wednesday, January 12, 2011 5:02 PM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Send Reports to Puppet Dashboard On Jan 12, 2011, at 11:37 AM, <Michael.Itchue@ocfl.net> wrote: Hi Daniel, I have already done the setup which you mention below. I followed the puppet-dashboard configuration guide to the tee, which is why I''m surprised that this feature is not working. I have verified that the puppet.conf entries on the client and master are correct. I''m wondering if this problem is a bug? Thanks for your help. At this point, I don''t think you''re going to get much help unless you post a lot more from your puppet.conf files. For instance, we should be seeing section names. At this point, you''re saying you did everything right, but evidently something isn''t right so that doesn''t help us much. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. _____________________________________________________________________ PLEASE NOTE: Florida has a very broad public records law (F. S. 119). All e-mails to and from County Officials are kept as a public record. Your e-mail communications, including your e-mail address may be disclosed to the public and media at any time. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
If your hosts do not appear to be reporting, and you''re seeing some background tasks pending (top left in the puppet dashboard web gui), then you probably need to start the "delayed_job" tasks on your puppet dashboard server in order to process the reports. Run this: *env RAILS_ENV=production /usr/share/puppet-dashboard/script/delayed_job -p dashboard -n 4 -m start* where -n 4 refers to the number of cores. I added this line to /etc/init.d/puppet-dashboard so it gets fired after dashboard starts, and so I don''t forget to run it. Not sure if this is the best method, but it works for me. See http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#starting-and-managing-delayed-job-workers. On Thursday, January 13, 2011 9:10:11 AM UTC-5, (unknown) wrote:> > Patrick, > > > > This is what I have setup in the puppet.conf files on the master and > client. Both servers are running puppet 2.6.4 > > > > On the Master in /etc/puppet/puppet.conf > > > > [master] > > reports = http, store > > reporturl = http://fedorahost.ocfl.net:3000/reports > > node_terminus = exec > > external_nodes = /etc/puppet/bin/external_node > > > > in external_node I have changed the localhost default to: > > > > BASE = “http://fedorahost.ocfl.net:3000” > > > > On the client in /etc/puppet/puppet.conf > > > > [agent] > > report = true > > > > Thanks for your help. I hope you see something I might have done wrong. > > > > Mike > > > > > > > > *From:* puppet-users@googlegroups.com [mailto: > puppet-users@googlegroups.com] *On Behalf Of *Patrick > *Sent:* Wednesday, January 12, 2011 5:02 PM > *To:* puppet-users@googlegroups.com > *Subject:* Re: [Puppet Users] Send Reports to Puppet Dashboard > > > > > > On Jan 12, 2011, at 11:37 AM, <Michael.Itchue@ocfl.net> wrote: > > > > Hi Daniel, > > > > I have already done the setup which you mention below. I followed the > puppet-dashboard configuration guide to the tee, > > which is why I’m surprised that this feature is not working. I have > verified that the puppet.conf entries on the client and > > master are correct. I’m wondering if this problem is a bug? Thanks for > your help. > > > > At this point, I don''t think you''re going to get much help unless you post > a lot more from your puppet.conf files. For instance, we should be seeing > section names. At this point, you''re saying you did everything right, but > evidently something isn''t right so that doesn''t help us much. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > _____________________________________________________________________ > PLEASE NOTE: Florida has a very broad public records law (F. S. 119). > All e-mails to and from County Officials are kept as a public record. > Your e-mail communications, including your e-mail address may be > disclosed to the public and media at any time. > >On Thursday, January 13, 2011 9:10:11 AM UTC-5, (unknown) wrote:> > Patrick, > > > > This is what I have setup in the puppet.conf files on the master and > client. Both servers are running puppet 2.6.4 > > > > On the Master in /etc/puppet/puppet.conf > > > > [master] > > reports = http, store > > reporturl = http://fedorahost.ocfl.net:3000/reports > > node_terminus = exec > > external_nodes = /etc/puppet/bin/external_node > > > > in external_node I have changed the localhost default to: > > > > BASE = “http://fedorahost.ocfl.net:3000” > > > > On the client in /etc/puppet/puppet.conf > > > > [agent] > > report = true > > > > Thanks for your help. I hope you see something I might have done wrong. > > > > Mike > > > > > > > > *From:* puppet-users@googlegroups.com [mailto: > puppet-users@googlegroups.com] *On Behalf Of *Patrick > *Sent:* Wednesday, January 12, 2011 5:02 PM > *To:* puppet-users@googlegroups.com > *Subject:* Re: [Puppet Users] Send Reports to Puppet Dashboard > > > > > > On Jan 12, 2011, at 11:37 AM, <Michael.Itchue@ocfl.net> wrote: > > > > Hi Daniel, > > > > I have already done the setup which you mention below. I followed the > puppet-dashboard configuration guide to the tee, > > which is why I’m surprised that this feature is not working. I have > verified that the puppet.conf entries on the client and > > master are correct. I’m wondering if this problem is a bug? Thanks for > your help. > > > > At this point, I don''t think you''re going to get much help unless you post > a lot more from your puppet.conf files. For instance, we should be seeing > section names. At this point, you''re saying you did everything right, but > evidently something isn''t right so that doesn''t help us much. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > _____________________________________________________________________ > PLEASE NOTE: Florida has a very broad public records law (F. S. 119). > All e-mails to and from County Officials are kept as a public record. > Your e-mail communications, including your e-mail address may be > disclosed to the public and media at any time. > >On Thursday, January 13, 2011 9:10:11 AM UTC-5, (unknown) wrote:> > Patrick, > > > > This is what I have setup in the puppet.conf files on the master and > client. Both servers are running puppet 2.6.4 > > > > On the Master in /etc/puppet/puppet.conf > > > > [master] > > reports = http, store > > reporturl = http://fedorahost.ocfl.net:3000/reports > > node_terminus = exec > > external_nodes = /etc/puppet/bin/external_node > > > > in external_node I have changed the localhost default to: > > > > BASE = “http://fedorahost.ocfl.net:3000” > > > > On the client in /etc/puppet/puppet.conf > > > > [agent] > > report = true > > > > Thanks for your help. I hope you see something I might have done wrong. > > > > Mike > > > > > > > > *From:* puppet-users@googlegroups.com [mailto: > puppet-users@googlegroups.com] *On Behalf Of *Patrick > *Sent:* Wednesday, January 12, 2011 5:02 PM > *To:* puppet-users@googlegroups.com > *Subject:* Re: [Puppet Users] Send Reports to Puppet Dashboard > > > > > > On Jan 12, 2011, at 11:37 AM, <Michael.Itchue@ocfl.net> wrote: > > > > Hi Daniel, > > > > I have already done the setup which you mention below. I followed the > puppet-dashboard configuration guide to the tee, > > which is why I’m surprised that this feature is not working. I have > verified that the puppet.conf entries on the client and > > master are correct. I’m wondering if this problem is a bug? Thanks for > your help. > > > > At this point, I don''t think you''re going to get much help unless you post > a lot more from your puppet.conf files. For instance, we should be seeing > section names. At this point, you''re saying you did everything right, but > evidently something isn''t right so that doesn''t help us much. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > _____________________________________________________________________ > PLEASE NOTE: Florida has a very broad public records law (F. S. 119). > All e-mails to and from County Officials are kept as a public record. > Your e-mail communications, including your e-mail address may be > disclosed to the public and media at any time. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/tErtkInULnsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.