summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/volume_libs.py
diff options
context:
space:
mode:
authorSanoj Unnikrishnan <sunnikri@redhat.com>2018-06-08 14:52:20 +0530
committerJonathan Holloway <jholloway@redhat.com>2018-06-13 03:48:19 +0000
commitc9ed3914657747baa27cbb8e0eb963133c79dd23 (patch)
tree6649b5772d21947a4875eea685b688790001e4e1 /glustolibs-gluster/glustolibs/gluster/volume_libs.py
parent3a2d9b5e45484d6095de9505c7b23055f59c7a55 (diff)
Quota: Fixing quota libs in glusto
- added quota_libs.py with quota_validate library - Removed redundant function in quota_ops. - changed naming of quota_ops to be consistent and intutive w.r.t cli Change-Id: I4faf448ea308c9e04b548d6174d900fcf56978a5 Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/volume_libs.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_libs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/volume_libs.py b/glustolibs-gluster/glustolibs/gluster/volume_libs.py
index 9eab8c7..88a8c18 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_libs.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_libs.py
@@ -33,7 +33,7 @@ from glustolibs.gluster.volume_ops import (volume_create, volume_start,
from glustolibs.gluster.tiering_ops import (add_extra_servers_to_cluster,
tier_attach,
is_tier_process_running)
-from glustolibs.gluster.quota_ops import (enable_quota, set_quota_limit_usage,
+from glustolibs.gluster.quota_ops import (quota_enable, quota_limit_usage,
is_quota_enabled)
from glustolibs.gluster.uss_ops import enable_uss, is_uss_enabled
from glustolibs.gluster.snap_ops import snap_delete_by_volumename
@@ -315,7 +315,7 @@ def setup_volume(mnode, all_servers_info, volume_config, force=False):
# Enable Quota
if ('quota' in volume_config and 'enable' in volume_config['quota'] and
volume_config['quota']['enable']):
- ret, _, _ = enable_quota(mnode=mnode, volname=volname)
+ ret, _, _ = quota_enable(mnode=mnode, volname=volname)
if ret != 0:
g.log.error("Unable to set quota on the volume %s", volname)
return False
@@ -336,8 +336,8 @@ def setup_volume(mnode, all_servers_info, volume_config, force=False):
size = "100GB"
# Set quota_limit_usage
- ret, _, _ = set_quota_limit_usage(mnode=mnode, volname=volname,
- path=path, limit=size)
+ ret, _, _ = quota_limit_usage(mnode=mnode, volname=volname,
+ path=path, limit=size)
if ret != 0:
g.log.error("Unable to set quota limit on the volume %s", volname)
return False