Fix issue with kill_controller not working in certain environments
[integration/test.git] / test / tools / clustering / cluster-deployer / remote_host.py
index 5da74b77a8a0e259f09f114c4abfce4e5783ba93..34c9f1f065cb496016f5a40ee027f05e264a5e84 100644 (file)
@@ -36,7 +36,7 @@ class RemoteHost:
         lib.close_connection()
 
     def kill_controller(self):
-        self.exec_cmd("ps axf | grep karaf | grep -v grep | awk '{print \"kill -9 \" $1}' | sh")
+        self.exec_cmd("sudo ps axf | grep karaf | grep -v grep | awk '{print \"kill -9 \" $1}' | sudo sh")
 
     def start_controller(self, dir_name):
         self.exec_cmd(dir_name + "/odl/bin/start")