[Satellite 6] Puppet Clients show up in GUI dashboard as 'hosts with no report'

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.2.x
  • Puppet

Issue

  • On Red Hat Satellite GUI dashboard Puppet clients show as hosts with no report.

Resolution

  • On Red Hat Satellite Identify duplicate entry for the affected host using hammer:
# hammer -u <user> -p <password> organization list

# hammer -u <user> -p <password> content-host list --organization-id <id>

# hammer -u <user> -p <password> host list
  • On Puppet Client checksystem Identityusing below command:
 #  subscription-manager identity        
  • On Red Hat Satellite match above Puppet Client system identity under Content Hosts to identify the actual host :
On Red Hat Satellite Web GUI: 

go under 'hosts' tab => 'Content Hosts' => Click on host => check 'UUID' of host

Note: Now remove the duplicate host entry as below but before that make sure duplicate host is Disassociate first , refer this - How to delete hosts from Red Hat Satellite 6 WebUI, without actually deleting it from a compute resource :

On Red Hat Satellite Web GUI:

go under 'hosts' tab => 'all hosts' => Check mark on duplicate host => click on 'Select Action' tab => under it select 'delete host'

Root Cause

  • Due to duplicate entry exists of same Puppet client and it is not assigned to a organization .

Diagnostic Steps

  • On Puppet Client check below:
root@Client:~# puppet agent -t --server Satellite.example.com
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for Client.example.com
Info: Applying configuration version '1481287909'
Notice: Finished catalog run in 0.01 seconds
  • On Red Hat Satellite check production.log for following:
2016-12-14 09:11:27 [app] [I] Started GET "/node/Client.example.com?format=yml" for 192.168.1.101 at 2016-12-14 09:11:27 +0100
2016-12-14 09:11:27 [app] [I] Processing by HostsController#externalNodes as YML
2016-12-14 09:11:27 [app] [I]   Parameters: {"name"=>"Client.example.com"}
2016-12-14 09:11:27 [app] [I]   Rendered text template (0.0ms)
2016-12-14 09:11:27 [app] [I] Completed 200 OK in 69ms (Views: 0.6ms | ActiveRecord: 6.8ms)
2016-12-14 09:11:28 [app] [I] Started POST "/api/hosts/facts" for 192.168.1.101 at 2016-12-14 09:11:28 +0100
2016-12-14 09:11:28 [app] [I] Processing by Api::V2::HostsController#facts as JSON
2016-12-14 09:11:28 [app] [I]   Parameters: {"facts"=>"[FILTERED]", "name"=>"Client.example.com", "certname"=>"Client.example.com", "apiv"=>"v2", :host=>{"name"=>"Client.example.com", "certname"=>"Client.example.com"}}
2016-12-14 09:11:28 [app] [I] Import facts for 'Client.example.com' completed. Added: 0, Updated: 10, Deleted 0 facts
2016-12-14 09:11:28 [app] [I] Completed 201 Created in 120ms (Views: 5.2ms | ActiveRecord: 41.6ms)
2016-12-14 09:11:28 [app] [I] Started GET "/node/Client.example.com?format=yml" for 192.168.1.101 at 2016-12-14 09:11:28 +0100
2016-12-14 09:11:28 [app] [I] Processing by HostsController#externalNodes as YML
2016-12-14 09:11:28 [app] [I]   Parameters: {"name"=>"Client.example.com"}
2016-12-14 09:11:28 [app] [I]   Rendered text template (0.0ms)
2016-12-14 09:11:28 [app] [I] Completed 200 OK in 67ms (Views: 0.5ms | ActiveRecord: 7.4ms)
2016-12-14 09:11:28 [app] [I] Started POST "/api/reports" for 192.168.1.101 at 2016-12-14 09:11:28 +0100
2016-12-14 09:11:28 [app] [I] Processing by Api::V2::ReportsController#create as JSON
2016-12-14 09:11:28 [app] [I]   Parameters: {"report"=>"[FILTERED]", "apiv"=>"v2"}
2016-12-14 09:11:28 [app] [I] processing report for Client.example.com
2016-12-14 09:11:28 [app] [I] Imported report for Client.example.com in 0.05 seconds
2016-12-14 09:11:28 [app] [I]   Rendered api/v2/reports/create.json.rabl (15.4ms)
2016-12-14 09:11:28 [app] [I] Completed 201 Created in 92ms (Views: 14.5ms | ActiveRecord: 18.9ms)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments