summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/glusterfile.py
diff options
context:
space:
mode:
authorbhumikagoyal <bgoyal@redhat.com>2018-06-13 13:15:30 +0530
committerAkarsha Rai <akrai@redhat.com>2018-10-25 09:11:26 +0000
commit3d5274169cac77566e6fb1fb2a53d01ca4af1d13 (patch)
treeaffb3028069dc805a8ad09714b32e4f10d4dc997 /glustolibs-gluster/glustolibs/gluster/glusterfile.py
parentdce3f45613abe0f2854930a4394daaf940af5a91 (diff)
glustolibs: Add GlusterBlockBaseClass
Add the base class for gluster-block which includes functions that helps in automating the test cases on client and target side. These functions will help in block creation, block discovery, login on the client, getting mpath, mounting the block, logout. The teardown function will take care of unmounting blocks, logging out and block deletion and volume cleanup. The .yml file for block should be like: Example gluster_block_args_info: volname: testvol #Should be same as volume name in glusterfs config fle servers: #Server names should be same as names in glusterfs config file - 192.168.100.163 - 192.168.100.192 size: 2GiB ha: 3 auth: enable prealloc: num_of_blocks: 2 #Number of blocks to be created with this configuration ring-buffer: 16 blockname: block_testing #Base name of the blocks to be created. Change-Id: I8cd354fc991cd21c542cfd7f03399cc23c9f7917 Signed-off-by: Bhumika Goyal <bgoyal@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/glusterfile.py')
0 files changed, 0 insertions, 0 deletions