Greg Padgett has uploaded a new change for review. Change subject: agent: don't migrate VM ......................................................................
agent: don't migrate VM This patch disables migration of the VM for the remaining use case, local maintenance. Change-Id: I33ee8ced8d21ce4b2d60ff1b6dbf672bf3e3e65f Bug-Url: https://bugzilla.redhat.com/1039614 Signed-off-by: Greg Padgett <gpadg...@redhat.com> --- M ovirt_hosted_engine_ha/agent/hosted_engine.py 1 file changed, 2 insertions(+), 6 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha refs/changes/75/22675/1 diff --git a/ovirt_hosted_engine_ha/agent/hosted_engine.py b/ovirt_hosted_engine_ha/agent/hosted_engine.py index 3f7ec40..5fb4255 100644 --- a/ovirt_hosted_engine_ha/agent/hosted_engine.py +++ b/ovirt_hosted_engine_ha/agent/hosted_engine.py @@ -1177,12 +1177,8 @@ return self.States.MAINTENANCE, True elif self._rinfo['maintenance'] == self.MaintenanceMode.LOCAL: # TODO local maintenance should have its own state - self._log.info("Local HA maintenance enabled," - " migrating VM to host %s (id %d)", - self._all_host_stats[best_host_id]['hostname'], - best_host_id) - self._rinfo['migration-host-id'] = best_host_id - return self.States.MIGRATE_START, False + self._log.info("Local HA maintenance enabled") + return self.States.STOP, False elif self._rinfo['superseded-agent']: # TODO superseded agent should have its own state self._log.error("Local agent has been superseded by newer" -- To view, visit http://gerrit.ovirt.org/22675 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I33ee8ced8d21ce4b2d60ff1b6dbf672bf3e3e65f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-ha Gerrit-Branch: ovirt-hosted-engine-ha-1.0 Gerrit-Owner: Greg Padgett <gpadg...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches