From fdda7fd56bd397979109bd31cf9c1ca2390e9524 Mon Sep 17 00:00:00 2001 From: Anees Patel Date: Mon, 15 Jul 2019 18:06:28 +0530 Subject: Enable client-side heal as client-side healing is diabled in RHGS 3.5 Change-Id: I0992b1b9af4e12f4e20d7a5dc184048de104d89d Signed-off-by: Anees Patel --- tests/functional/afr/test_gfid_assignment_on_dist_rep_vol.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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") -- cgit