Still back at this because its driving me crazy. In just 12 hours, we had this many hosts duplicated, its literally creating a new host for every single report:
=>
{"wdc-aixdevdb-87.redacted.net"=>50,
"wdc-aixdevdb-02.redacted.net"=>50,
"wdc-aixdb-129.redacted.net"=>50,
"wdc-aixdb-81.redacted.net"=>50,
"wdc-aixdb-65.redacted.net"=>50,
"wdc-aixdevdb-88.redacted.net"=>49,
"wdc-aixbetadb-78.redacted.net"=>49,
"wdc-aixdb-73b.redacted.net"=>49,
"wdc-aixdb-112.redacted.net"=>49,
"wdc-aixdb-149.redacted.net"=>49,
"wdc-aixdb-78.redacted.net"=>49,
"wdc-aixdb-137.redacted.net"=>49,
"wdc-aixbetadb-65.redacted.net"=>49,
"wdc-aixdb-68.redacted.net"=>49,
"wdc-aixdb-82.redacted.net"=>49,
"wdc-aixbetadb-07.redacted.net"=>49,
"wdc-aixdevdb-109.redacted.net"=>49,
"wdc-aixdb-106.redacted.net"=>49,
"wdc-aixdb-73a.redacted.net"=>49,
"wdc-aixbetadb-44.redacted.net"=>49,
"wdc-aixdb-136.redacted.net"=>49,
"wdc-aixdb-44.redacted.net"=>49,
"wdc-aixdevdb-43.redacted.net"=>48,
"wdc-aixbetadb-35.redacted.net"=>48,
"wdc-aixbetadb-112.redacted.net"=>48,
"wdc-aixbetadb-36.redacted.net"=>48,
"wdc-aixbetadb-136.redacted.net"=>48,
"uxtapesswcnim01.m.redacted.net"=>48,
"wdc-aixbetadb-129.redacted.net"=>48,
"wdc-aixtstdb-94.redacted.net"=>47,
"wdc-aixdevdb-150.redacted.net"=>47,
"wdc-secapptst02.redacted.net"=>47,
"wdc-aixrp2db-53.redacted.net"=>47,
"wdc-aixbetadb-109.redacted.net"=>47,
"wdc-aixdb-80.redacted.net"=>46,
"wdc-aixdb-64.redacted.net"=>46,
"uxddbhssmhcdv01.redacted.net"=>46,
"wdc-aixbetadb-99.redacted.net"=>46,
"wdc-aixdb-75.redacted.net"=>46,
"wdc-aixdb-63.redacted.net"=>43,
"wdc-aixbetadb-30.redacted.net"=>43,
"wdc-aixdb-13.redacted.net"=>39,
"wdc-aixdevdb-13.redacted.net"=>35,
"wdc-aixbetadb-04.redacted.net"=>35,
"wdc-aixbetadb-06.redacted.net"=>34,
"wdc-aixbetadb-26.redacted.net"=>33,
"wdc-aixbetadb-20.ec.redacted.net"=>33,
"wdc-aixbetadb-43.redacted.net"=>32,
"wdc-aixdb-29.redacted.net"=>32,
"wisley-hisupp.redacted"=>30,
"wisley-hipsupp.redacted"=>30,
"wdc-aixbetadb-26.m.redacted.net"=>25,
I’ve added some additional logging to the report importer, and I can see it doing exactly that right here. It even finds the host, but for some reason just creates another host object for it.
2024-11-07T09:26:10 [I|app|fd723c3e] Importing report for host: wdc-aixdevdb-87
2024-11-07T09:26:10 [I|app|fd723c3e] Initializing ReportImporter for host: wdc-aixdevdb-87 with proxy_id:
2024-11-07T09:26:10 [I|app|fd723c3e] Finding or creating host: wdc-aixdevdb-87
2024-11-07T09:26:10 [I|app|fd723c3e] Found existing host: wdc-aixdevdb-87 with ID: 75107
2024-11-07T09:26:10 [I|app|fd723c3e] Processing report for wdc-aixdevdb-87
2024-11-07T09:26:10 [I|app|fd723c3e] Processing report normally for host: wdc-aixdevdb-87
2024-11-07T09:26:10 [I|app|fd723c3e] Processing normal report for host: wdc-aixdevdb-87
2024-11-07T09:26:10 [I|app|fd723c3e] Saved ConfigReport for host: wdc-aixdevdb-87 with ID: 908590
2024-11-07T09:26:10 [I|app|fd723c3e] Saving host wdc-aixdevdb-87 after processing report
2024-11-07T09:26:10 [I|app|fd723c3e] Imported report for wdc-aixdevdb-87 in 0.05 seconds
2024-11-07T09:26:10 [I|app|fd723c3e] Successfully imported report for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Importing report for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Initializing ReportImporter for host: wdc-aixdevdb-87 with proxy_id:
2024-11-07T09:29:42 [I|app|0214ca8b] Finding or creating host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Found existing host: wdc-aixdevdb-87 with ID: 75107
2024-11-07T09:29:42 [I|app|0214ca8b] Processing report for wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Processing report normally for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Processing normal report for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Saved ConfigReport for host: wdc-aixdevdb-87 with ID: 908763
2024-11-07T09:29:42 [I|app|0214ca8b] Saving host wdc-aixdevdb-87 after processing report
2024-11-07T09:29:42 [I|app|0214ca8b] Imported report for wdc-aixdevdb-87 in 0.05 seconds
2024-11-07T09:29:42 [I|app|0214ca8b] Successfully imported report for host: wdc-aixdevdb-87
2024-11-07T10:50:59 [I|app|136a72eb] Importing report for host: wdc-aixdevdb-87
2024-11-07T10:50:59 [I|app|136a72eb] Initializing ReportImporter for host: wdc-aixdevdb-87 with proxy_id:
2024-11-07T10:50:59 [I|app|136a72eb] Finding or creating host: wdc-aixdevdb-87
2024-11-07T10:50:59 [I|app|136a72eb] Found existing host: wdc-aixdevdb-87 with ID: 75107
2024-11-07T10:50:59 [I|app|136a72eb] Processing report for wdc-aixdevdb-87
2024-11-07T10:50:59 [I|app|136a72eb] Processing report normally for host: wdc-aixdevdb-87
2024-11-07T10:50:59 [I|app|136a72eb] Processing normal report for host: wdc-aixdevdb-87
2024-11-07T10:50:59 [I|app|136a72eb] Saved ConfigReport for host: wdc-aixdevdb-87 with ID: 911443
2024-11-07T10:50:59 [I|app|136a72eb] Saving host wdc-aixdevdb-87 after processing report
2024-11-07T10:50:59 [I|app|136a72eb] Imported report for wdc-aixdevdb-87 in 0.05 seconds
2024-11-07T10:50:59 [I|app|136a72eb] Successfully imported report for host: wdc-aixdevdb-87
[root@10-222-206-158 foreman]# grep 0214ca8b production.log
2024-11-07T09:29:42 [I|app|0214ca8b] Starting import of reports with proxy_id:
2024-11-07T09:29:42 [I|app|0214ca8b] Importing report for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Initializing ReportImporter for host: wdc-aixdevdb-87 with proxy_id:
2024-11-07T09:29:42 [I|app|0214ca8b] Finding or creating host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Found existing host: wdc-aixdevdb-87 with ID: 75107
2024-11-07T09:29:42 [I|app|0214ca8b] Processing report for wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Processing report normally for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Processing normal report for host: wdc-aixdevdb-87
2024-11-07T09:29:42 [I|app|0214ca8b] Calculating metrics for report ID:
2024-11-07T09:29:42 [I|app|0214ca8b] Saved ConfigReport for host: wdc-aixdevdb-87 with ID: 908763
2024-11-07T09:29:42 [I|app|0214ca8b] Importing log messages for report ID: 908763
2024-11-07T09:29:42 [I|app|0214ca8b] Completed importing log messages for report ID: 908763
2024-11-07T09:29:42 [I|app|0214ca8b] Saving host wdc-aixdevdb-87 after processing report
2024-11-07T09:29:42 [I|app|0214ca8b] Imported report for wdc-aixdevdb-87 in 0.05 seconds
2024-11-07T09:29:42 [I|app|0214ca8b] Successfully imported report for host: wdc-aixdevdb-87
Whats interesting is when it finds the host, its the same host id each time. So it seems like it should know where to put the report, but instead it just seems to create an entirely new host record.
Surely someone has to have some idea where this issue might be occurring?