self.rootdir)
def kill_controller(self):
- self.remote.copy_file("kill_controller.sh", self.rootdir + "/")
+ self.remote.copy_file("kill_controller.sh", self.rootdir + "/")
self.remote.exec_cmd(self.rootdir + "/kill_controller.sh")
def deploy(self):
# Copy the distribution to the host and unzip it
odl_file_path = self.dir_name + "/odl.zip"
self.remote.copy_file(self.distribution, odl_file_path)
- self.remote.exec_cmd("unzip " + odl_file_path + " -d " +
+ self.remote.exec_cmd("unzip -o " + odl_file_path + " -d " +
self.dir_name + "/")
# Rename the distribution directory to odl
for x in range(0, 10):
if len(all_replicas) > args.rf:
- replicas["REPLICAS_" + str(x+1)] \
+ replicas["REPLICAS_" + str(x + 1)] \
= array_str(random.sample(all_replicas, args.rf))
else:
- replicas["REPLICAS_" + str(x+1)] = array_str(all_replicas)
+ replicas["REPLICAS_" + str(x + 1)] = array_str(all_replicas)
deployers = []