Hello Martin Sivák,
I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/27493
to review the following change.
Change subject: database: Reintroduce the variables used in Power Saving policy
......................................................................
database: Reintroduce the variables used in Power Saving policy
One patch introduced a regression and removed HostsInReserve and
EnableAutomaticPowerManagement policy variables from the db.
Change-Id: I48040a9c9ec1873872c789cf07c51a5489b3e65c
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1092623
Signed-off-by: Martin Sivak <[email protected]>
---
A packaging/dbscripts/upgrade/03_04_0770_reintroduce_powersaving_variables.sql
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/27493/1
diff --git
a/packaging/dbscripts/upgrade/03_04_0770_reintroduce_powersaving_variables.sql
b/packaging/dbscripts/upgrade/03_04_0770_reintroduce_powersaving_variables.sql
new file mode 100644
index 0000000..213190f
--- /dev/null
+++
b/packaging/dbscripts/upgrade/03_04_0770_reintroduce_powersaving_variables.sql
@@ -0,0 +1,7 @@
+UPDATE policy_units SET custom_properties_regex='{
+ "CpuOverCommitDurationMinutes" : "^([1-9][0-9]*)$",
+ "HighUtilization" : "^([5-9][0-9])$",
+ "LowUtilization" : "^([0-9]|[1-4][0-9])$",
+ "HostsInReserve": "^[0-9][0-9]*$",
+ "EnableAutomaticHostPowerManagement": "^(true|false)$"
+}' WHERE id='736999d0-1023-46a4-9a75-1316ed50e151';
--
To view, visit http://gerrit.ovirt.org/27493
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I48040a9c9ec1873872c789cf07c51a5489b3e65c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches