diff options
author | Mark Beierl <mark.beierl@emc.com> | 2016-03-09 11:19:32 -0500 |
---|---|---|
committer | Mark Beierl <mark.beierl@emc.com> | 2016-03-09 11:19:32 -0500 |
commit | 0b1b250f363e3db2fc5bcf44dc74688fb5673c8a (patch) | |
tree | 9f89e522abc89f577d42b1e14ccb6d6b9b5e58b3 | |
parent | 6d800137f9756f94b3d3749faf007564c9713dee (diff) |
FIO needs sudo
Use sudo for fio when profiling a device.
Change-Id: Ibbcbb15a2c33e1e58b7e340f9c3f6de5958f5636
JIRA: STORPERF-40
Signed-off-by: Mark Beierl <mark.beierl@emc.com>
-rw-r--r-- | storperf/fio/fio_invoker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storperf/fio/fio_invoker.py b/storperf/fio/fio_invoker.py index e343dce..017f74a 100644 --- a/storperf/fio/fio_invoker.py +++ b/storperf/fio/fio_invoker.py @@ -8,7 +8,6 @@ ############################################################################## from threading import Thread -import cmd import json import logging import subprocess @@ -79,7 +78,8 @@ class FIOInvoker(object): cmd = "ssh" additional_args = ['-o', 'StrictHostKeyChecking=no', '-i', 'storperf/resources/ssh/storperf_rsa', - 'ubuntu@' + self.remote_host, "./fio"] + 'ubuntu@' + self.remote_host, + "sudo", "./fio"] args = additional_args + args self.fio_process = subprocess.Popen([cmd] + args, |