Sahina Bose has uploaded a new change for review. Change subject: core:SPM role should not be granted to Gluster only nodes ......................................................................
core:SPM role should not be granted to Gluster only nodes In a DC with gluster cluster and vdsm cluster, if the hypervisor node with SPM role goes down, the SPM role should not be granted to a gluster node. Changed the function GetUpAndPrioritizedVds to check if virt_service is true on the VDS. Change-Id: I6054ba6ad9864798b5d914659f39edaf884e2215 Signed-off-by: Sahina Bose <[email protected]> --- M backend/manager/dbscripts/vds_sp.sql 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/52/12552/1 diff --git a/backend/manager/dbscripts/vds_sp.sql b/backend/manager/dbscripts/vds_sp.sql index 32a4494..a90f9f2 100644 --- a/backend/manager/dbscripts/vds_sp.sql +++ b/backend/manager/dbscripts/vds_sp.sql @@ -601,8 +601,9 @@ BEGIN BEGIN RETURN QUERY SELECT vds.* - FROM vds + FROM vds vds, vds_groups vdsgroup WHERE (status = 3) AND (storage_pool_id = v_storage_pool_id) AND (vds_spm_priority IS NULL OR vds_spm_priority > (-1)) + AND vds.vds_group_id = vdsgroup.vds_group_id AND vdsgroup.virt_service = 't' ORDER BY vds_spm_priority DESC, RANDOM(); END; RETURN; -- To view, visit http://gerrit.ovirt.org/12552 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6054ba6ad9864798b5d914659f39edaf884e2215 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Sahina Bose <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
