diff options
author | Anees Patel <anepatel@redhat.com> | 2019-07-15 18:06:28 +0530 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-08-05 10:42:47 +0000 |
commit | fdda7fd56bd397979109bd31cf9c1ca2390e9524 (patch) | |
tree | abee1c494bbff18935541b09f71d30a2b440314d /tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py | |
parent | 03c386860101ce7496da72d23f45a02b7b6ba004 (diff) |
Enable client-side heal as client-side healing is diabled in RHGS 3.5
Change-Id: I0992b1b9af4e12f4e20d7a5dc184048de104d89d
Signed-off-by: Anees Patel <anepatel@redhat.com>
Diffstat (limited to 'tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py')
-rw-r--r-- | tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py b/tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py index 0015f079e..751275272 100644 --- a/tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py +++ b/tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py @@ -29,6 +29,7 @@ from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on from glustolibs.misc.misc_libs import upload_scripts from glustolibs.gluster.brick_libs import get_all_bricks from glustolibs.gluster.glusterfile import get_fattr +from glustolibs.gluster.volume_ops import set_volume_options @runs_on([['distributed-replicated'], @@ -100,6 +101,15 @@ class AssignGfidsOnAllSubvols(GlusterBaseClass): - Do lookup from the mount. - Check whether all the bricks have the same gfid assigned. """ + # Enable client side healing + g.log.info("Enable client side healing options") + options = {"metadata-self-heal": "on", + "entry-self-heal": "on", + "data-self-heal": "on"} + ret = set_volume_options(self.mnode, self.volname, options) + self.assertTrue(ret, 'Failed to set options %s' % options) + g.log.info("Successfully set %s for volume %s", + options, self.volname) # Create a directory on the mount g.log.info("Creating a directory") |