Jiří Moskovčák has uploaded a new change for review. Change subject: engine: added the basic policies to the even guest policy ......................................................................
engine: added the basic policies to the even guest policy Change-Id: Ic5288e7fda358f56a0d20e71c286285f27bd557a Bug-Url: https://bugzilla.redhat.com/1036749 Signed-off-by: Jiri Moskovcak <[email protected]> --- A packaging/dbscripts/upgrade/03_04_0510_add_all_basic_filters_to_even_guest_policy.sql 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/19/23519/1 diff --git a/packaging/dbscripts/upgrade/03_04_0510_add_all_basic_filters_to_even_guest_policy.sql b/packaging/dbscripts/upgrade/03_04_0510_add_all_basic_filters_to_even_guest_policy.sql new file mode 100644 index 0000000..734f4ff --- /dev/null +++ b/packaging/dbscripts/upgrade/03_04_0510_add_all_basic_filters_to_even_guest_policy.sql @@ -0,0 +1,12 @@ +-- Add all basic filters to even guest distribution +INSERT INTO cluster_policy_units (cluster_policy_id, policy_unit_id, filter_sequence, factor) +SELECT '8d5d7bec-68de-4a67-b53e-0ac54686d579', policy_units.id, 0, 1 FROM policy_units +WHERE not exists (SELECT id from cluster_policy_units where cluster_policy_id = '8d5d7bec-68de-4a67-b53e-0ac54686d579' and policy_unit_id = policy_units.id); + +-- Add the OptimalForHaReservation weight policy to even guest distribution +INSERT INTO cluster_policy_units (cluster_policy_id, policy_unit_id, filter_sequence, factor) +VALUES ('8d5d7bec-68de-4a67-b53e-0ac54686d579', '7f262d70-6cac-11e3-981f-0800200c9a66', 0, 1); + +-- Add the HA weight policy to even guest distribution +INSERT INTO cluster_policy_units (cluster_policy_id, policy_unit_id, filter_sequence, factor) +VALUES ('8d5d7bec-68de-4a67-b53e-0ac54686d579', '98e92667-6161-41fb-b3fa-34f820ccbc4b', 0, 1); -- To view, visit http://gerrit.ovirt.org/23519 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic5288e7fda358f56a0d20e71c286285f27bd557a Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Jiří Moskovčák <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
