summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-03-09 11:19:32 -0500
committerMark Beierl <mark.beierl@emc.com>2016-04-05 13:40:10 +0000
commiteae6bd42d490f719d00264706c4570189a975597 (patch)
tree9f89e522abc89f577d42b1e14ccb6d6b9b5e58b3
parent0107544521876db145027ff44d08695bc658906b (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> (cherry picked from commit 0b1b250f363e3db2fc5bcf44dc74688fb5673c8a)
-rw-r--r--storperf/fio/fio_invoker.py4
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,