]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/vstart_runner: fix mutiple 'timeout' option conflicting 34799/head
authorXiubo Li <xiubli@redhat.com>
Thu, 5 Mar 2020 10:31:14 +0000 (05:31 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 28 Apr 2020 17:26:42 +0000 (19:26 +0200)
The 'timeout' option in the environment may will conflict with the
ones in some ceph commands, like:

$ timeout 120 ./bin/ceph daemon mds.b session config 8718 timeout 45

And the old code will also give us incorrect result like:

['adjust-ulimits', 'ceph-coverage', 'timeout', '120', 'ceph', 'fs', 'dump']
will be transfered to:
['adjust-ulimits', 'ceph-coverage', '120', 'ceph', 'fs', 'dump']

The '120' is left behind.

Fixes: https://tracker.ceph.com/issues/44437
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 1bcd319496f507f76864a972c1de63439dd78d4a)

qa/tasks/vstart_runner.py

index 7055ebb7c9d8d71fe8eb5285704932e584e9c97b..88428c9e7ec9b97c16c9affd50c54182aa087889 100644 (file)
@@ -333,7 +333,7 @@ class LocalRemote(object):
 
         # Filter out helper tools that don't exist in a vstart environment
         args = [a for a in args if a not in {
-            'adjust-ulimits', 'ceph-coverage', 'timeout'}]
+            'adjust-ulimits', 'ceph-coverage'}]
 
         # Adjust binary path prefix if given a bare program name
         if "/" not in args[0]: