Shubhendu Tripathi has uploaded a new change for review.

Change subject: gluster: List activate-on-create volume snapshot option
......................................................................

gluster: List activate-on-create volume snapshot option

Modified the verb glusterSnapshotConfigList to list
option activate-on-create as well.

Change-Id: I50ad0f482fc3d65e489c0a5c27212b84058c4c73
Signed-off-by: Shubhendu Tripathi <shtri...@redhat.com>
Bug-URL: https://bugzilla.redhat.com/1216056
---
M vdsm/gluster/cli.py
M vdsm/rpc/vdsmapi-gluster-schema.json
2 files changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/16/40416/1

diff --git a/vdsm/gluster/cli.py b/vdsm/gluster/cli.py
index c50b877..8d68271 100644
--- a/vdsm/gluster/cli.py
+++ b/vdsm/gluster/cli.py
@@ -1390,7 +1390,8 @@
     """
     returns {'system':{'snap-max-hard-limit': 'hardlimit',
                        'snap-max-soft-limit': 'softLimit',
-                       'auto-delete': 'enable/disable'},
+                       'auto-delete': 'enable/disable',
+                       'activate-on-create': 'enable/disable'},
              'volume':{'name' :
                           {'snap-max-hard-limit: 'hardlimit'}
                       }
@@ -1403,6 +1404,8 @@
         'snapConfig/systemConfig/softLimit').text
     systemConfig['auto-delete'] = tree.find(
         'snapConfig/systemConfig/autoDelete').text
+    systemConfig['activate-on-create'] = tree.find(
+        'snapConfig/systemConfig/activateOnCreate').text
 
     volumeConfig = {}
     for el in tree.findall('snapConfig/volumeConfig/volume'):
diff --git a/vdsm/rpc/vdsmapi-gluster-schema.json 
b/vdsm/rpc/vdsmapi-gluster-schema.json
index 935adff..7f7c936 100644
--- a/vdsm/rpc/vdsmapi-gluster-schema.json
+++ b/vdsm/rpc/vdsmapi-gluster-schema.json
@@ -1865,11 +1865,13 @@
 #
 # @auto-delete:         Auto delete enabled/disabled
 #
+# @activate-on-create:  Auto activate enabled/disabled
+#
 # @Since: 4.17.0
 ##
 {'type': 'SystemSnapshotConfig',
  'data': {'snap-max-hard-limit': 'str', 'snap-max-soft-limit': 'str',
-          'auto-delete': 'str'}}
+          'auto-delete': 'str', 'activate-on-create': 'str'}}
 
 ##
 #


-- 
To view, visit https://gerrit.ovirt.org/40416
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I50ad0f482fc3d65e489c0a5c27212b84058c4c73
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Shubhendu Tripathi <shtri...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to