Shubhendu Tripathi has uploaded a new change for review. Change subject: gluster: Added flag GlusterVolumeSnapshotSupported ......................................................................
gluster: Added flag GlusterVolumeSnapshotSupported Added a flag GlusterVolumeSnapshotSupported which tells if gluster volume snapshot feature is enabled for the said cluster compatibility version. Change-Id: I235824105467201e10802b7893e9f1e911adc49b Signed-off-by: Shubhendu Tripathi <[email protected]> --- 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, 16 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/71/39271/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 2a84470..0b73082 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 @@ -1449,6 +1449,14 @@ @DefaultValueAttribute("10") GlusterTaskMinWaitForCleanupInMins, + @TypeConverterAttribute(Boolean.class) + @DefaultValueAttribute("true") + GlusterVolumeSnapshotSupported, + + @TypeConverterAttribute(Integer.class) + @DefaultValueAttribute("300") + GlusterRefreshRateSnapshotDiscovery, + @TypeConverterAttribute(String.class) @DefaultValueAttribute("AttestationService/resources/PollHosts") PollUri, diff --git a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql index 2bb6e50..8ffdc89 100644 --- a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql +++ b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql @@ -183,6 +183,14 @@ select fn_db_add_config_value('GlusterPeerStatusRetries', '2', 'general'); select fn_db_add_config_value('GlusterTaskMinWaitForCleanupInMins', '10', 'general'); +-- Gluster Volume Snapshots -- +select fn_db_add_config_value('GlusterVolumeSnapshotSupported', 'false', '3.0'); +select fn_db_add_config_value('GlusterVolumeSnapshotSupported', 'false', '3.1'); +select fn_db_add_config_value('GlusterVolumeSnapshotSupported', 'false', '3.2'); +select fn_db_add_config_value('GlusterVolumeSnapshotSupported', 'false', '3.3'); +select fn_db_add_config_value('GlusterVolumeSnapshotSupported', 'false', '3.4'); +select fn_db_add_config_value('GlusterVolumeSnapshotSupported', 'false', '3.5'); +select fn_db_add_config_value('GlusterRefreshRateSnapshotDiscovery', '300', 'general'); -- OpenStack related select fn_db_add_config_value('KeystoneAuthUrl', '', 'general'); -- To view, visit https://gerrit.ovirt.org/39271 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I235824105467201e10802b7893e9f1e911adc49b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5-gluster Gerrit-Owner: Shubhendu Tripathi <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
