ManageIQ/manageiq — pull request #1277 by jrafanie (2014-12-23 14:56:15+00:00)
Title: Zone collecting only one server logs n times

Pass the server receiving the synchronize_logs message. …
https://bugzilla.redhat.com/show_bug.cgi?id=1174855

If initiated from a zone, we want to create one miq_queue and miq_tasks row for each server in the Zone.

Without this change, it will create N number of rows for the server receiving the web request, MiqServer.my_server, where N is the number of active servers in the zone. It will never request logs for the other servers in the zone.

This is fairly easy to recreate:
1) Setup a Zone with 2 or more "active" appliances (miq_servers)
2) Request log collection for the Zone
3) Look at the log depot and find only the logs from the server receiving the web request.