puppet-dashboard running on puppet-server (SL6)

64 views
Skip to first unread message

Arnau Bria

unread,
Mar 13, 2012, 9:37:44 AM3/13/12
to puppet...@googlegroups.com
Hi all,

I've installed a new puppet-server and I wanted to add
puppet-dash-board for reports (only).

# rpm -qa|grep puppet|sort
puppet-2.7.11-2.el6.noarch
puppet-dashboard-1.2.6-1.el6.noarch
puppet-server-2.7.11-2.el6.noarch

So, I've followed
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html
+
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#configuring-puppet

but I don't see any report in my dash-board.

Logs periodically show:

Processing ReportsController#upload (for X.Y.Z.W at 2012-03-13 14:38:09) [POST]
Parameters: {"controller"=>"reports", "action"=>"upload"}
Completed in 104ms (View: 0, DB: 100) | 200 OK [http://puppet-server-alias.domain.com/reports/upload]

and dashboard shows:

456 pending tasks.


My database.tml looks like:

production:
database: dashboard
username: X
password: Y
encoding: utf8
adapter: mysql


Mysql databases has the correct tables;

mysql> show tables
-> ;
+------------------------------+
| Tables_in_dashboard |
+------------------------------+
| delayed_job_failures |
| delayed_jobs |
[...]
| timeline_events |
+------------------------------+
18 rows in set (0.00 sec)

Puppet.conf at master:

[master]
[...]
reports = http, store
reporturl = http://puppet-server-alias.domain.com:3000/reports/upload

and clients have reports enabled (but they run puppet 2.6.X).


I can see reports in the master:

# ls -lsa /var/lib/puppet/reports/
Display all 101 possibilities? (y or n)

Could someone help me to find what I'm missing in this conf?


TIA,
Arnau

Peter Bukowinski

unread,
Mar 13, 2012, 10:20:37 AM3/13/12
to puppet...@googlegroups.com
On Mar 13, 2012, at 9:37 AM, Arnau Bria wrote:

Hi all,

I've installed a new puppet-server and I wanted to add
puppet-dash-board for reports (only).

# rpm -qa|grep puppet|sort
puppet-2.7.11-2.el6.noarch
puppet-dashboard-1.2.6-1.el6.noarch
puppet-server-2.7.11-2.el6.noarch

So, I've followed
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html
+
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#configuring-puppet

but I don't see any report in my dash-board.

Logs periodically show:

Processing ReportsController#upload (for X.Y.Z.W at 2012-03-13 14:38:09) [POST]
 Parameters: {"controller"=>"reports", "action"=>"upload"}
Completed in 104ms (View: 0, DB: 100) | 200 OK [http://puppet-server-alias.domain.com/reports/upload]

and dashboard shows:

456 pending tasks.

This high number of pending tasks mean the reports are coming in, but the dashboard workers that ingest the reports are not started. Go into your dashboard installation directory and run:

env RAILS_ENV=production script/delayed_job -p dashboard -n 4 -m start

The '-n 4' argument is for a four core machine. You should use a number that matches the number of cores in your own server.

This is documented here:

-- 
Peter M. Bukowinski
Sr. Systems Engineer
Janelia Farm Research Campus, HHMI

Arnau Bria

unread,
Mar 13, 2012, 10:59:55 AM3/13/12
to puppet...@googlegroups.com
On Tue, 13 Mar 2012 10:20:37 -0400
Peter Bukowinski wrote:

Hi Peter,

Thanks a lot, I can't figure out how I did not see that part of the
doc.

Cheers,
Arnau

Reply all
Reply to author
Forward
0 new messages