Greg Padgett has uploaded a new change for review.

Change subject: agent: missing log message parameters
......................................................................

agent: missing log message parameters

Fix a missing log message parameter, causing the agent to fail if it
detects that the vm should be migrated away to a better host

Change-Id: Icb5bd3bd46b63ecbeeb8e1d0fdc8ca9b2c9e0f23
Bug-Url: https://bugzilla.redhat.com/1014112
Signed-off-by: Greg Padgett <gpadg...@redhat.com>
---
M ovirt_hosted_engine_ha/agent/hosted_engine.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/38/19738/1

diff --git a/ovirt_hosted_engine_ha/agent/hosted_engine.py 
b/ovirt_hosted_engine_ha/agent/hosted_engine.py
index b54ad8d..0d942e9 100644
--- a/ovirt_hosted_engine_ha/agent/hosted_engine.py
+++ b/ovirt_hosted_engine_ha/agent/hosted_engine.py
@@ -791,7 +791,8 @@
                 + self.MIGRATION_THRESHOLD_SCORE):
             self._log.error("Host %s (id %d) score is significantly better"
                             " than local score, migrating vm",
-                            self._all_host_stats[best_host_id]['hostname'])
+                            self._all_host_stats[best_host_id]['hostname'],
+                            best_host_id)
             self._rinfo['migration-host-id'] = best_host_id
             self._rinfo['migration-status'] = self.MigrationStatus.PENDING
             return self.States.MIGRATE, False


-- 
To view, visit http://gerrit.ovirt.org/19738
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb5bd3bd46b63ecbeeb8e1d0fdc8ca9b2c9e0f23
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <gpadg...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to