]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: python3 32339/head
authorSage Weil <sage@redhat.com>
Thu, 19 Dec 2019 03:51:52 +0000 (21:51 -0600)
committerSage Weil <sage@redhat.com>
Thu, 19 Dec 2019 03:51:52 +0000 (21:51 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/cephfs/kernel_mount.py
qa/tasks/cephfs/mount.py
qa/tasks/cephfs/test_volume_client.py

index 9acea3f491e4e28978365e71b29a27dd05140021..b90749f259934417d04b0c3d349f8814a64eeea7 100644 (file)
@@ -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()
 
index e8f1af8ed4576e67d061a13275ae12a0851a461e..fe7186fb57d537ca714c637fba31ea281457c1e3 100644 (file)
@@ -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):
index 0c59225dfc76984696c83b50cc1c1f57c9f85cb6..a6b4d10afb8b76889cfba8e915f4e92a9449930d 100644 (file)
@@ -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
         ))