Change in ovirt-engine[ovirt-engine-3.5]: core: free pending resources properly on migration failure

tnisan at redhat.com tnisan at redhat.com
Sun Nov 2 09:21:58 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: core: free pending resources properly on migration failure
......................................................................


core: free pending resources properly on migration failure

There is a race when VM switch from MIGRATING_FROM to UP due to
migration failure between:
1. Rerun operation which is executed from the monitoring (VURTI) on a
separate thread
2. Powering up handling which is executed from the monitoring thread

When #2 happens before #1, the powering up handling decrease the pending
resources from the destination host properly.

But when #1 happens before, then we've got a problem because it sets the
destination host to null so neither #1 or #2 decreases the pending
resources on the destination host.

This patch solves the pending resources decrement in the rerun flow.

Change-Id: Ib866d7da8a3e1fa7fe2023adc49f3b4f559c8982
Bug-Url: https://bugzilla.redhat.com/1157211
Signed-off-by: Arik Hadas <ahadas at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MigrateVmCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommandBase.java
2 files changed, 21 insertions(+), 12 deletions(-)

Approvals:
  Omer Frenkel: Looks good to me, approved
  Arik Hadas: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib866d7da8a3e1fa7fe2023adc49f3b4f559c8982
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list