summaryrefslogtreecommitdiffstats
path: root/tests/functional/bvt/test_cvt.py
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2020-08-20 11:36:01 +0530
committerkshithijiyer <kshithij.ki@gmail.com>2020-08-20 12:08:06 +0530
commit4ec7f7791aafb94f4c4b161aad30cd6c9d4f4d5a (patch)
treeee5f2bc004793f82651cca96a55304ad33d2a7ab /tests/functional/bvt/test_cvt.py
parent5140b0c1f65a854c3e6cc5e1d1d852569a0abaee (diff)
[Testfix] Add logic to log more info
Add logic to do ls -l before and after. Add logic to set all log-levels to debug. Change-Id: I512e3b229fe9e2126f6c596fdc031c00a25fbe0b Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'tests/functional/bvt/test_cvt.py')
-rw-r--r--tests/functional/bvt/test_cvt.py32
1 files changed, 26 insertions, 6 deletions
diff --git a/tests/functional/bvt/test_cvt.py b/tests/functional/bvt/test_cvt.py
index 90533eb..417f546 100644
--- a/tests/functional/bvt/test_cvt.py
+++ b/tests/functional/bvt/test_cvt.py
@@ -88,6 +88,14 @@ class GlusterBasicFeaturesSanityBaseClass(GlusterBaseClass):
cls.clients)
cls.counter = 1
+
+ # Temporary code:
+ # Additional checks to gather infomartion from all
+ # servers for Bug 1810901 and setting log level to debug.
+ ret = set_volume_options(cls.mnode, 'all',
+ {'cluster.daemon-log-level': 'DEBUG'})
+ if not ret:
+ g.log.error('Failed to set cluster.daemon-log-level to DEBUG')
# int: Value of counter is used for dirname-start-num argument for
# file_dir_ops.py create_deep_dirs_with_files.
@@ -117,6 +125,18 @@ class GlusterBasicFeaturesSanityBaseClass(GlusterBaseClass):
raise ExecutionError("Failed to Setup_Volume and Mount_Volume")
g.log.info("Successful in Setup Volume and Mount Volume")
+ # Temporary code:
+ # Additional checks to gather infomartion from all
+ # servers for Bug 1810901 and setting log level to debug.
+ for opt in ('diagnostics.brick-log-level',
+ 'diagnostics.client-log-level',
+ 'diagnostics.brick-sys-log-level',
+ 'diagnostics.client-sys-log-level'):
+ ret = set_volume_options(self.mnode, self.volname,
+ {opt: 'DEBUG'})
+ if not ret:
+ g.log.error('Failed to set volume option %s', opt)
+
# Start IO on mounts
g.log.info("Starting IO on all mounts...")
self.all_mounts_procs = []
@@ -296,18 +316,15 @@ class TestGlusterShrinkVolumeSanity(GlusterBasicFeaturesSanityBaseClass):
# Temporary code:
# Additional checks to gather infomartion from all
# servers for Bug 1810901 and setting log level to debug.
- for opt in ('diagnostics.brick-log-level',
- 'diagnostics.client-log-level '):
- ret = set_volume_options(self.mnode, self.volname,
- {opt: 'DEBUG'})
- if not ret:
- g.log.error('Failed to set volume option %s', opt)
if self.volume_type == 'distributed-dispersed':
for brick_path in get_all_bricks(self.mnode, self.volname):
node, path = brick_path.split(':')
ret, out, _ = g.run(node, 'find {}/'.format(path))
g.log.info(out)
for filedir in out.split('\n'):
+ ret, out, _ = g.run(node, 'ls -l {}'.format(filedir))
+ g.log.info("Return value for ls -l command: %s", ret)
+ g.log.info(out)
ret = get_fattr_list(node, filedir, encode_hex=True)
g.log.info(ret)
@@ -324,6 +341,9 @@ class TestGlusterShrinkVolumeSanity(GlusterBasicFeaturesSanityBaseClass):
ret, out, _ = g.run(node, 'find {}/'.format(path))
g.log.info(out)
for filedir in out.split('\n'):
+ ret, out, _ = g.run(node, 'ls -l {}'.format(filedir))
+ g.log.info("Return value for ls -l command: %s", ret)
+ g.log.info(out)
ret = get_fattr_list(node, filedir, encode_hex=True)
g.log.info(ret)