Jiří Moskovčák has uploaded a new change for review. Change subject: added all options to UI ......................................................................
added all options to UI - and fixed the stupid typo in the sql script Change-Id: Ic726df518d6127f1bd4755e22252ecc5cf5a3a2e Signed-off-by: Jiri Moskovcak <[email protected]> --- M packaging/dbscripts/upgrade/03_04_0390_add_even_guest_distribution_policy.sql 1 file changed, 16 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/27/23127/1 diff --git a/packaging/dbscripts/upgrade/03_04_0390_add_even_guest_distribution_policy.sql b/packaging/dbscripts/upgrade/03_04_0390_add_even_guest_distribution_policy.sql index fb782e5..82e897fd 100644 --- a/packaging/dbscripts/upgrade/03_04_0390_add_even_guest_distribution_policy.sql +++ b/packaging/dbscripts/upgrade/03_04_0390_add_even_guest_distribution_policy.sql @@ -1,6 +1,19 @@ -INSERT INTO policy_units (id, name, is_internal, type, enabled, custom_properties_regex, description) VALUES ('d58c8e32-44e1-418f-9222-52cd887bf9e0', 'OptimalForEvenGuestDistribution', true, 2, true, -'{"HighVmCount" : "^([5-9][0-9])$"}', 'Even VM count distribution policy'); -INSERT INTO cluster_policies (id, name, description, is_locked, is_default, custom_properties) VALUES ('8d5d7bec-68de-4a67-b53e-0ac54686d579', 'VM_Evenly_Distributed', '', true, false, '{"HighVMCount" : "10"}'); +INSERT INTO policy_units (id, name, is_internal, type, enabled, custom_properties_regex, description) VALUES +('d58c8e32-44e1-418f-9222-52cd887bf9e0', 'OptimalForEvenGuestDistribution', true, 2, true, +'{ + "HighVMCount" : "^([0-9][0-9]*)$", + "MigrationThreshold" : "^([5-9][0-9]*)$", + "SPMVMGrace":"^([5-9][0-9]*)$" +}', + 'Even VM count distribution policy' +); +INSERT INTO cluster_policies (id, name, description, is_locked, is_default, custom_properties) VALUES ( +'8d5d7bec-68de-4a67-b53e-0ac54686d579','VM_Evenly_Distributed', '', true, false, +'{ + "HighVMCount" : "10", + "MigrationThreshold" : "5", + "SPMVMGrace" : "5" +}'); -- add the policy units to the VM_Evenly_Distributed cluster policy INSERT INTO cluster_policy_units (cluster_policy_id, policy_unit_id, filter_sequence, factor) VALUES ('8d5d7bec-68de-4a67-b53e-0ac54686d579', 'd58c8e32-44e1-418f-9222-52cd887bf9e0', 0, 1); -- To view, visit http://gerrit.ovirt.org/23127 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic726df518d6127f1bd4755e22252ecc5cf5a3a2e 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
