Set the 'host' field on the instance after the resource tracker
on the compute node has accepted the build.
The field is set after resources are confirmed to be available while the
COMPUTE_RESOURCES_SEMAPHORE is held. The semaphore ensures the
resources usage values will be consistent even if the
update_available_resource periodic task audit runs.
bug 1060255
(cherry picked from commit 5fd7a9dba1)
Also includes the following bugfix to the original patch:
Set host prior to allocating network information.
Make sure 'host' field on the instance is set before allocating
network information.
bug 1065004
(cherry picked from commit 2649f14673)
Change-Id: I92105ec14924960ac8ef7ca8c810783085314e10