From: Sage Weil Date: Thu, 19 Dec 2019 03:51:52 +0000 (-0600) Subject: qa/tasks/cephfs: python3 X-Git-Tag: v15.1.0~434^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32339%2Fhead;p=ceph.git qa/tasks/cephfs: python3 Signed-off-by: Sage Weil --- diff --git a/qa/tasks/cephfs/kernel_mount.py b/qa/tasks/cephfs/kernel_mount.py index 9acea3f491e4..b90749f25993 100644 --- a/qa/tasks/cephfs/kernel_mount.py +++ b/qa/tasks/cephfs/kernel_mount.py @@ -209,7 +209,7 @@ class KernelMount(CephFSMount): """) p = self.client_remote.run(args=[ - 'sudo', 'python', '-c', pyscript + 'sudo', 'python3', '-c', pyscript ], stdout=StringIO(), timeout=(5*60)) client_id_to_dir = json.loads(p.stdout.getvalue()) @@ -231,7 +231,7 @@ class KernelMount(CephFSMount): """).format(debug_dir=debug_dir, filename=filename) p = self.client_remote.run(args=[ - 'sudo', 'python', '-c', pyscript + 'sudo', 'python3', '-c', pyscript ], stdout=StringIO(), timeout=(5*60)) return p.stdout.getvalue() diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index e8f1af8ed457..fe7186fb57d5 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -180,13 +180,13 @@ class CephFSMount(object): 'sudo', 'rm', '-f', os.path.join(self.mountpoint, filename) ]) - def _run_python(self, pyscript, py_version='python'): + def _run_python(self, pyscript, py_version='python3'): return self.client_remote.run( args=['sudo', 'adjust-ulimits', 'daemon-helper', 'kill', py_version, '-c', pyscript], wait=False, stdin=run.PIPE, stdout=StringIO()) - def run_python(self, pyscript, py_version='python'): + def run_python(self, pyscript, py_version='python3'): p = self._run_python(pyscript, py_version) p.wait() return p.stdout.getvalue().strip() @@ -377,7 +377,7 @@ class CephFSMount(object): log.info("check lock on file {0}".format(basename)) self.client_remote.run(args=[ - 'sudo', 'python', '-c', pyscript + 'sudo', 'python3', '-c', pyscript ]) def write_background(self, basename="background_file", loop=False): diff --git a/qa/tasks/cephfs/test_volume_client.py b/qa/tasks/cephfs/test_volume_client.py index 0c59225dfc76..a6b4d10afb8b 100644 --- a/qa/tasks/cephfs/test_volume_client.py +++ b/qa/tasks/cephfs/test_volume_client.py @@ -19,7 +19,7 @@ class TestVolumeClient(CephFSTestCase): def setUp(self): CephFSTestCase.setUp(self) self.py_version = self.ctx.config.get('overrides', {}).\ - get('python', TestVolumeClient.default_py_version) + get('python3', TestVolumeClient.default_py_version) log.info("using python version: {python_version}".format( python_version=self.py_version ))