From Tal Nisan <tnisan(a)redhat.com>:
Tal Nisan has submitted this change and it was merged.
Change subject: core: remove unneeded query when getting vms to move to unknown
core: remove unneeded query when getting vms to move to unknown
When host monitoring gets a network exception during monitoring of a
specific host, it switches this host to maintenance and moves all the
VMs running on this host to Unknown.
The retrieval of VMs that need to be switched to unknown was composed
of two parts:
1. get all the VMs running on the host (their run_on_vds points to
2. get all the VMs that migrate to the host (their migrating_to_vds
points to that host) and also are in MigratingTo status.
But (2) is redundant since at this phase of the migration run_on_vds
must point to the destination host. Therefore, this part is removed.
Note: the query for VM dynamics from the database was moved as a
preparation for future changes.
Signed-off-by: Arik Hadas <ahadas(a)redhat.com>
1 file changed, 7 insertions(+), 16 deletions(-)
Shahar Havivi: Looks good to me, approved
Jenkins CI: Passed CI tests
Arik Hadas: Verified
To view, visit https://gerrit.ovirt.org/69251
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-Owner: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Shahar Havivi <shavivi(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>