Puppet-dashboard not importing automatically the reports

70 views
Skip to first unread message

Juan Sierra Pons

unread,
Oct 14, 2014, 10:00:20 AM10/14/14
to puppet...@googlegroups.com
Hi,

I have 3 puppet-masters/puppet-dashboards "supposedly" configured
equally but in one of them the reports are not being imported on the
dashboard. The other two work ok.

If in the failing one I run the RAILS_ENV=production rake
reports:import then the reports are imported on the dashboard

[root@ puppet-dashboard]# RAILS_ENV=production rake reports:import
(in /usr/share/puppet-dashboard)
Importing 23 reports from /var/lib/puppet/reports in the background
Importing: 100%
|##############################################################################################################################################|
Time: 00:00:00
23 of 23 reports queued

They can be seen as pending tasks on the dashboard

Then the puppet delayed jobs can process them:

[...]
2014-10-14T15:54:25+0200: [Worker(delayed_job.0 host:puppet-dashboard
pid:5006)] Report.create_from_yaml_file completed after 1.6418
2014-10-14T15:54:25+0200: [Worker(delayed_job.0 host:puppet-dashboard
pid:5034)] Report.create_from_yaml_file completed after 1.7403
[...]

On the other servers all the process is automatic and I have double
checked the configuration. In fact at the beginning this server worked
ok two but one day it stopped.

Any Idea what am I missing?

Best regards

--------------------------------------------------------------------------------------
Juan Sierra Pons ju...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00 6E66 E934 3406 A110 F4FE
--------------------------------------------------------------------------------------

Juan Sierra Pons

unread,
Oct 15, 2014, 2:53:00 AM10/15/14
to puppet...@googlegroups.com
More info about this issue:

On the working dashboard installation the logs says:
Processing ReportsController#upload (for 10.X.X.X at 2014-10-15 03:28:38) [POST]
Parameters: {"action"=>"upload", "controller"=>"reports"}
Completed in 40ms (View: 0, DB: 13) | 200 OK
[https://dashboard.example.org/reports/upload]

But I cannot find the same line on the not working dashboard. So I
think the problem is this, the puppetmaster not pushing the reports to
the dashboard. In both cases the puppetmaster and the dashboard live
on the same server.

The puppet.conf on the working one is (this also have the puppetdb):
[...]
reporturl = https://dashboard.example.org/reports/upload
reports = store, http, puppetdb
[...]

The puppet.conf on the not working one is:
[...]
reporturl = https://puppet-dashboard.example.org/reports/upload
reports = store, http
[...]

What I am missing?

Juan Sierra Pons

unread,
Oct 15, 2014, 10:15:17 AM10/15/14
to puppet...@googlegroups.com
Hi again,

Finally I have found the problem. When I migrated the dashboard from
webrick to be served by apache I misconfigured the dashboard.conf (at
apache level) so I was restricting the puppetmaster to PUT the reports
on the proper URL.

<Location /reports/upload>
<Limit POST>
# Configuration restricts HTTP actions to POST only
Order allow,deny
Allow from localhost
Allow from localhost.localdomain
Allow from 127.0.0.1
Satisfy any
</Limit>

So finally I wasn't the puppet.conf configuration but the apache configuration.

I hope it helps to others having same problem on the future.
Reply all
Reply to author
Forward
0 new messages