Change in ovirt-engine[ovirt-engine-3.6]: scheduler: Fix migration free cluster detection

piotr.kliczewski at gmail.com piotr.kliczewski at gmail.com
Mon Sep 14 07:28:16 UTC 2015


Piotr Kliczewski has submitted this change and it was merged.

Change subject: scheduler: Fix migration free cluster detection
......................................................................


scheduler: Fix migration free cluster detection

Accidently the VdsId was used where the VdsGroupId should have been
used. This change directly queries for all VdsGroups where no VM is currently migrating.

 - Remove getAllByStatus() from VmDynamicDao
 - Add VdsGroupDao#getWithoutMigratingVms and use it in AREM

Bug-Url: https://bugzilla.redhat.com/1251742
Change-Id: Ib2d3383750babf1d1f295d423939bb1fa03e5bee
Signed-off-by: Roman Mohr <rmohr at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/AffinityRulesEnforcementManager.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/scheduling/AffinityRulesEnforcementManagerTest.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VdsGroupDao.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VdsGroupDaoImpl.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDao.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDaoImpl.java
M backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/VdsGroupDaoTest.java
M backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/VmDaoTest.java
M backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/VmNumaNodeDaoTest.java
M packaging/dbscripts/vds_groups_sp.sql
M packaging/dbscripts/vms_sp.sql
11 files changed, 62 insertions(+), 88 deletions(-)

Approvals:
  Roman Mohr: Verified
  Jenkins CI: Passed CI tests
  Roy Golan: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/45986
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib2d3383750babf1d1f295d423939bb1fa03e5bee
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Roman Mohr <rmohr at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Roman Mohr <rmohr at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list