Problem:
All new servers I provision have no reports and no facts from the agent, though it has run fine.
It used to work straight after installation.
Older hosts report alright.
Expected outcome:
After a successful installation, the host should display the Facts and Reports button on the host details page.
Foreman and Proxy versions:
1.24.0
Foreman and Proxy plugin versions:
1.24.0
Distribution and version:
Debian 10.2
Other relevant data:
Puppet-agent 6.11.1
Puppetserver 7.2
What’s puzzling is the lack of errors:
-
the agent (even run manually with -t -v) run fine and apply an empty catalog.
/opt/puppetlabs/puppet/bin/puppet agent -t -v
Info: Using configured environment ‘production’
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for foreman-2.salle.bulac.fr
Info: Applying configuration version ‘1579086736’
Notice: Applied catalog in 0.01 seconds -
no error in any log (puppetserver, foreman, postgresql or syslog)
-
in Foreman’s log the reports and the facts seem to be received :
[I|app|408aa4d4] Started GET “/node/foreman-2.salle.xxxxx.net?format=yml” for 10.195.1.69 at 2020-01-15 12:12:15 +0100
[I|app|408aa4d4] Processing by HostsController#externalNodes as YML
[I|app|408aa4d4] Parameters: {“name”=>“foreman-2.salle.xxxxx.net”}
[I|app|408aa4d4] Rendering text template
[I|app|408aa4d4] Rendered text template (0.0ms)
[I|app|408aa4d4] Completed 200 OK in 100ms (Views: 0.5ms | ActiveRecord: 11.3ms)
[I|app|fa3b00ef] Started POST “/api/hosts/facts” for 10.195.1.69 at 2020-01-15 12:12:15 +0100
[I|app|fa3b00ef] Processing by Api::V2::HostsController#facts as JSON
[I|app|fa3b00ef] Parameters: {“facts”=>"[FILTERED]", “name”=>“foreman-2.salle.xxxxx.net”, “certname”=>“foreman-2.salle.xxxxx.net”, “apiv”=>“v2”, “host”=>{“certname”=>“foreman-2.salle.xxxxx.net”, “name”=>“foreman-2.salle.xxxxx.net”}}
[I|app|fa3b00ef] Import facts for ‘foreman-salle.salle.xxxxx.net’ completed. Added: 11, Updated: 22, Deleted 0 facts
[I|app|fa3b00ef] Completed 201 Created in 517ms (Views: 1.4ms | ActiveRecord: 123.2ms)
[I|app|93e8c239] Started GET “/node/foreman-2.salle.xxxxx.net?format=yml” for 10.195.1.69 at 2020-01-15 12:12:16 +0100
[I|app|93e8c239] Processing by HostsController#externalNodes as YML
[I|app|93e8c239] Parameters: {“name”=>“foreman-2.salle.xxxxx.net”}
[I|app|93e8c239] Rendering text template
[I|app|93e8c239] Rendered text template (0.0ms)
[I|app|93e8c239] Completed 200 OK in 83ms (Views: 0.3ms | ActiveRecord: 9.0ms)
[I|app|d0c9d5b7] Started POST “/api/config_reports” for 10.195.1.69 at 2020-01-15 12:12:16 +0100
[I|app|d0c9d5b7] Processing by Api::V2::ConfigReportsController#create as JSON
[I|app|d0c9d5b7] Parameters: {“config_report”=>"[FILTERED]", “apiv”=>“v2”}
[I|app|d0c9d5b7] Scanning report with: Foreman::PuppetReportScanner
[I|app|d0c9d5b7] Imported report for foreman-2.salle.xxxxx.net in 45.9 ms, status refreshed in 8.2 ms
[I|app|d0c9d5b7] Rendering api/v2/config_reports/create.json.rabl
[I|app|d0c9d5b7] Rendered api/v2/config_reports/create.json.rabl (12.6ms)
[I|app|d0c9d5b7] Completed 201 Created in 83ms (Views: 11.5ms | ActiveRecord: 33.6ms)
but no reports appears on the host page or in the Monitor->Reports->Config Management.
Any hint on where to look ?