Tal Nisan has uploaded a new change for review.

Change subject: core: Added alert on number of LVs config value
......................................................................

core: Added alert on number of LVs config value

Added a config value for the max number of LVs in a storage domain from
which every image creation will cause an alert to the user

Change-Id: Ie5ed86e41cb20c819cf8466c386027d8e0738590
Related-To: https://bugzilla.redhat.com/1015186
Signed-off-by: Tal Nisan <tni...@redhat.com>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
M packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
2 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/59/28959/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
index c97330c..ff63f2c 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
@@ -1827,5 +1827,9 @@
     @DefaultValueAttribute("true")
     LiveMergeSupported,
 
+    @TypeConverterAttribute(Integer.class)
+    @DefaultValueAttribute("300")
+    AlertOnNumberOfLVs,
+
     Invalid
 }
diff --git a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql 
b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
index 38c944b..64bc949 100644
--- a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
+++ b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
@@ -1059,6 +1059,7 @@
 select fn_db_delete_config_value('VirtIoScsiUnsupportedOsList','general');
 select fn_db_delete_config_value('EnableMACAntiSpoofingFilterRules', '3.0');
 select fn_db_delete_config_value('EnableMACAntiSpoofingFilterRules', '3.1');
+select fn_db_update_config_value('AlertOnNumberOfLVs','300','general');
 
------------------------------------------------------------------------------------
 --                  Split config section
 -- The purpose of this section is to treat config option that was once


-- 
To view, visit http://gerrit.ovirt.org/28959
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5ed86e41cb20c819cf8466c386027d8e0738590
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <tni...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to