shlo.afgin@gmail.com
2013-Dec-11 15:00 UTC
[Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, In Dashboard, in the ''Inventory'' section I get nothing but the error: Could not retrieve facts from inventory service: 403 "Forbidden" When I tried to use facter variables in the manifest, it look like it''s not working. (I new in that so I never tried it before). I have something like this: case ${hostname} { ''puppetagent'': {include sendmail} } But when I run puppet on the agent, I get the error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Could not match ${hostname} at /etc/puppet/manifests/nodes.pp:17 on node puppetagent Is it possible that the problems are connected? How can I solve that problem? Any help welcome. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/80e4abd7-1bad-48d3-94ac-1c61b00fae74%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Jeff Bachtel
2013-Dec-11 15:06 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Try case $hostname { ''puppetagent'': {include sendmail} } BUT, that''s really the wrong pattern to be following, you should instead create a node definition for "puppetagent" that includes the sendmail class. node puppetagent.yourdomain { include sendmail } Jeff On 12/11/2013 10:00 AM, shlo.afgin@gmail.com wrote:> > > Hi, > > In Dashboard, in the ''Inventory'' section I get nothing but the error: > Could not retrieve facts from inventory service: 403 "Forbidden" > > When I tried to use facter variables in the manifest, it look like > it''s not working. (I new in that so I never tried it before). > I have something like this: > case ${hostname} { > ''puppetagent'': {include sendmail} > } > But when I run puppet on the agent, I get the error: > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not parse for environment production: Could not match > ${hostname} at > /etc/puppet/manifests/nodes.pp:17 on node puppetagent > > > Is it possible that the problems are connected? How can I solve that > problem? > Any help welcome. > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to puppet-users+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/80e4abd7-1bad-48d3-94ac-1c61b00fae74%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52A87F5C.6010704%40bericotechnologies.com. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-12 06:35 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, Thank you very much for your quick response. I tried it and now I get: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with ''puppetagent.weizmann.ac.il, puppetagent.weizmann.ac, puppetagent.weizmann, puppetagent'' on node puppetagent.weizmann.ac.il It can be that the Dashboard and the above problem connected and I have something wrong in my puppet configuration? Any idea are welcome. On Wednesday, December 11, 2013 5:06:04 PM UTC+2, Jeff Bachtel wrote:> > Try > > case $hostname { > ''puppetagent'': {include sendmail} > } > > BUT, that''s really the wrong pattern to be following, you should instead > create a node definition for "puppetagent" that includes the sendmail > class. > > node puppetagent.yourdomain { > include sendmail > } > > Jeff > > On 12/11/2013 10:00 AM, shlo....@gmail.com <javascript:> wrote: > > > > > > Hi, > > > > In Dashboard, in the ''Inventory'' section I get nothing but the error: > > Could not retrieve facts from inventory service: 403 "Forbidden" > > > > When I tried to use facter variables in the manifest, it look like > > it''s not working. (I new in that so I never tried it before). > > I have something like this: > > case ${hostname} { > > ''puppetagent'': {include sendmail} > > } > > But when I run puppet on the agent, I get the error: > > Error: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Could not parse for environment production: Could not match > > ${hostname} at > > /etc/puppet/manifests/nodes.pp:17 on node puppetagent > > > > > > Is it possible that the problems are connected? How can I solve that > > problem? > > Any help welcome. > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Puppet Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to puppet-users...@googlegroups.com <javascript:>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/puppet-users/80e4abd7-1bad-48d3-94ac-1c61b00fae74%40googlegroups.com. > > > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b22968fe-59af-43a6-87b7-af49793ac901%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Dec-12 08:55 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, please be aware that "puppetagent.yourdomain" is a contrived example. Try "node puppetagent.weizmann.ac.il" or just "node puppetagent". HTH, Felix On 12/12/2013 07:35 AM, shlo.afgin@gmail.com wrote:> I tried it and now I get: > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Could not find default node or by name with > ''puppetagent.weizmann.ac.il, > puppetagent.weizmann.ac, puppetagent.weizmann, puppetagent'' on > node puppetagent.weizmann.ac.il...> node puppetagent.yourdomain { > include sendmail > }-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52A97A05.3080708%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-12 09:09 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, When I write the name of the agent explicitly : node puppetagent.yourdomain { include sendmail } it''s work. I get the mention error when I try to use the facter and use $hostname in my manifest file node.pp Thanks a lot. On Thursday, December 12, 2013 10:55:33 AM UTC+2, Felix.Frank wrote:> > Hi, > > please be aware that "puppetagent.yourdomain" is a contrived example. > Try "node puppetagent.weizmann.ac.il" or just "node puppetagent". > > HTH, > Felix > > On 12/12/2013 07:35 AM, shlo....@gmail.com <javascript:> wrote: > > I tried it and now I get: > > Error: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Could not find default node or by name with > > ''puppetagent.weizmann.ac.il, > > puppetagent.weizmann.ac, puppetagent.weizmann, puppetagent'' on > > node puppetagent.weizmann.ac.il > ... > > node puppetagent.yourdomain { > > include sendmail > > } >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/faba0522-69bf-438d-ac69-22e80be059b1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Dec-12 09:13 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
This is getting confusing. Please share what your nodes.pp looks like now and what error that yields. Thanks, Felix On 12/12/2013 10:09 AM, shlo.afgin@gmail.com wrote:> I get the mention error when I try to use the facter and use $hostname > in my manifest file node.pp-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52A97E4E.2030307%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-12 09:33 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, 1. When I have in node.pp: case $hostname { ''puppetagent'': {include sendmail} } I got the error: *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with ''puppetagent.weizmann.ac.il <http://puppetagent.weizmann.ac.il/>, * * puppetagent.weizmann.ac <http://puppetagent.weizmann.ac/>, puppetagent.weizmann, puppetagent'' on node puppetagent.weizmann.ac.il <http://puppetagent.weizmann.ac.il/>* 2. When I have: node puppetagent.weizmann.ac.il { include sendmail } *it''s work okay.* 3. I also don''t have the ''Inventory'' section in Dashboard and I have only the error: *Could not retrieve facts from inventory service: 403 "Forbidden"* under the ''Inventory'' title. Thank you for your promptly answer. On Thursday, December 12, 2013 11:13:50 AM UTC+2, Felix.Frank wrote:> > This is getting confusing. > > Please share what your nodes.pp looks like now and what error that yields. > > Thanks, > Felix > > On 12/12/2013 10:09 AM, shlo....@gmail.com <javascript:> wrote: > > I get the mention error when I try to use the facter and use $hostname > > in my manifest file node.pp >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d39eed6d-a1b6-40d7-ac76-30040c992090%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Dec-12 09:53 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Ah, OK, you lack a default node. The puppet master expects to find some node, a simple workaround could be ''node default {}'' anywhere in site.pp or node.pp. But, as Jeff pointed out - don''t do that, there is no reason to prefer the silly-ish case pattern in this context. As gor the 403 error wrt. the inventory service - that may be an auth.conf issue. Does the dashboard keep an error log or log of any sort? Try looking in its rack home. You may get a clue what the specific request is that is getting blocked. HTH, Felix On 12/12/2013 10:33 AM, shlo.afgin@gmail.com wrote:> 1. When I have in node.pp: > case $hostname { > ''puppetagent'': {include sendmail} > } > I got the error: > /Error: Could not retrieve catalog from remote server: Error 400 > on SERVER: Could not find default node or by name with > ''puppetagent.weizmann.ac.il <http://puppetagent.weizmann.ac.il/>, / > / puppetagent.weizmann.ac > <http://puppetagent.weizmann.ac/>, puppetagent.weizmann, puppetagent'' on > node puppetagent.weizmann.ac.il <http://puppetagent.weizmann.ac.il/>/-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52A9878C.1090104%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-12 10:42 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, I add ''node default {}''. Now I don''t get any errors but it don''t execute the case $hostname { ''puppetagent'': {include sendmail} } Puppet don''t use the value in $hostname. I understood that it''s not recommended way to use $hostname as variable, but it should work. Am I right? About the Dashboard, I use Puppet with Passenger. In /etc/httpd/logs/error_logs I have a lot of (I think each time Dashboard refreshed) warning: [ 2013-12-12 12:34:30.0426 24489/7f1dac713700 Pool2/Implementation.cpp:1291 ]: [App 29486 stderr] warning: peer certificate won''t be verified in this SSL session [ 2013-12-12 12:34:30.0427 24489/7f1dac713700 Pool2/Implementation.cpp:1280 ]: [App 29486 stderr] I don''t know how to find the ruby logs. *Thanks a lot.* On Thursday, December 12, 2013 11:53:16 AM UTC+2, Felix.Frank wrote:> > Ah, OK, you lack a default node. The puppet master expects to find some > node, a simple workaround could be ''node default {}'' anywhere in site.pp > or node.pp. > > But, as Jeff pointed out - don''t do that, there is no reason to prefer > the silly-ish case pattern in this context. > > As gor the 403 error wrt. the inventory service - that may be an > auth.conf issue. Does the dashboard keep an error log or log of any > sort? Try looking in its rack home. You may get a clue what the specific > request is that is getting blocked. > > HTH, > Felix > > On 12/12/2013 10:33 AM, shlo....@gmail.com <javascript:> wrote: > > 1. When I have in node.pp: > > case $hostname { > > ''puppetagent'': {include sendmail} > > } > > I got the error: > > /Error: Could not retrieve catalog from remote server: Error 400 > > on SERVER: Could not find default node or by name with > > ''puppetagent.weizmann.ac.il <http://puppetagent.weizmann.ac.il/>, / > > / puppetagent.weizmann.ac > > <http://puppetagent.weizmann.ac/>, puppetagent.weizmann, puppetagent'' > on > > node puppetagent.weizmann.ac.il <http://puppetagent.weizmann.ac.il/>/ >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2c698472-acef-49ac-9f7c-7ea4099aa566%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Felix Frank
2013-Dec-12 10:45 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
On 12/12/2013 11:42 AM, shlo.afgin@gmail.com wrote:> case $hostname { > ''puppetagent'': {include sendmail} > } > Puppet don''t use the value in $hostname.Is this in the top scope, i.e. not inside a class {}, node {} or define {} block?> About the Dashboard, I use Puppet with Passenger. > In /etc/httpd/logs/error_logs I have a lot of (I think each time > Dashboard refreshed) warning: > [ 2013-12-12 12:34:30.0426 24489/7f1dac713700 > Pool2/Implementation.cpp:1291 ]: [App 29486 stderr] warning: peer > certificate won''t be verified in this SSL sessionThis looks weird. Implementation.cpp? Is dashboard written in C++, or am I misreading this? This may not be related to your issues at all. How and where did you install dashboard? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52A993DD.1080207%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-12 11:59 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
In the end of the file I add : node default { } Thanks again On Thursday, December 12, 2013 12:45:49 PM UTC+2, Felix.Frank wrote:> > On 12/12/2013 11:42 AM, shlo....@gmail.com <javascript:> wrote: > > case $hostname { > > ''puppetagent'': {include sendmail} > > } > > Puppet don''t use the value in $hostname. > > Is this in the top scope, i.e. not inside a class {}, node {} or define > {} block? > > > About the Dashboard, I use Puppet with Passenger. > > In /etc/httpd/logs/error_logs I have a lot of (I think each time > > Dashboard refreshed) warning: > > [ 2013-12-12 12:34:30.0426 24489/7f1dac713700 > > Pool2/Implementation.cpp:1291 ]: [App 29486 stderr] warning: peer > > certificate won''t be verified in this SSL session > > This looks weird. Implementation.cpp? Is dashboard written in C++, or am > I misreading this? > This may not be related to your issues at all. > > How and where did you install dashboard? >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cb28cbd1-8b57-4ec3-8335-b7ef20d4fd37%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-12 12:52 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Sorry I had a spelling mistake in the hostname. Now the manifest file work okay with the $hostname variable. I left with the problem with Dashboard that don''t give me the ''Inventory'' details. Sorry & Thanks again for the promptly answers. On Thursday, December 12, 2013 1:59:52 PM UTC+2, shlo....@gmail.com wrote:> > In the end of the file I add : > node default { > } > > Thanks again > > On Thursday, December 12, 2013 12:45:49 PM UTC+2, Felix.Frank wrote: >> >> On 12/12/2013 11:42 AM, shlo....@gmail.com wrote: >> > case $hostname { >> > ''puppetagent'': {include sendmail} >> > } >> > Puppet don''t use the value in $hostname. >> >> Is this in the top scope, i.e. not inside a class {}, node {} or define >> {} block? >> >> > About the Dashboard, I use Puppet with Passenger. >> > In /etc/httpd/logs/error_logs I have a lot of (I think each time >> > Dashboard refreshed) warning: >> > [ 2013-12-12 12:34:30.0426 24489/7f1dac713700 >> > Pool2/Implementation.cpp:1291 ]: [App 29486 stderr] warning: peer >> > certificate won''t be verified in this SSL session >> >> This looks weird. Implementation.cpp? Is dashboard written in C++, or am >> I misreading this? >> This may not be related to your issues at all. >> >> How and where did you install dashboard? >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9b74c4de-3354-4abd-a3d9-904901860ef4%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
shlo.afgin@gmail.com
2013-Dec-15 10:10 UTC
Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest
Hi, For installing Dashboard, I follow the instruction in: http://docs.puppetlabs.com/dashboard/manual/1.2/index.html In section ''Serving Dashboard With Passenger and Apache'' I use the default port 80. I tried to change it to port 3000, but all the Dashboard stop working. I search the file Implementation.cpp and I find it in /usr/lib64/ruby/gems/1.8/gems/passenger-4.0.25/ext/common/ApplicationPool2/Implementation.cpp I''m using Apache + Passenger. It look that this error appear in the error_log each time the Dashboard refresh. But it can be that it not directly connect to my problem. In the file /etc/puppet/auth.conf I add: path /facts auth yes method find, search allow dashboard Any idea why I''m still getting, in the ''Inventory'' section, the error: Could not retrieve facts from inventory service: 403 "Forbidden" Thanks a lot. On Thursday, December 12, 2013 12:45:49 PM UTC+2, Felix.Frank wrote:> > > ....> About the Dashboard, I use Puppet with Passenger. > > In /etc/httpd/logs/error_logs I have a lot of (I think each time > > Dashboard refreshed) warning: > > [ 2013-12-12 12:34:30.0426 24489/7f1dac713700 > > Pool2/Implementation.cpp:1291 ]: [App 29486 stderr] warning: peer > > certificate won''t be verified in this SSL session > > This looks weird. Implementation.cpp? Is dashboard written in C++, or am > I misreading this? > This may not be related to your issues at all. > > How and where did you install dashboard? >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b2b830b5-8524-4fae-acfb-f02809925c2c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.