Commit c4b484e3 authored by Felix Seibert's avatar Felix Seibert
Browse files

some changes required for working well on cumulus

parent eddef532
......@@ -4,6 +4,7 @@ import subprocess
from urllib import request
import urllib.error
import shutil
import time
import dataDistribution
import div_util
......@@ -391,8 +392,11 @@ class OSDManager(object):
command_list = []
host_name = ""
#command = ""
for key in osd_to_folders_map.keys():
host_name = osd_to_host_map[key]
if host_name == "":
host_name = osd_to_host_map[key]
command = ""
for copy_folder in osd_to_folders_map[key]:
command += "srun -N1-1 --nodelist=" + host_name
......@@ -401,7 +405,7 @@ class OSDManager(object):
command += " ;"
if len(osd_to_folders_map[key]) > 0:
command_list.append(command)
#command_list.append(command)
return command_list
'''
......@@ -479,6 +483,7 @@ class OSDManager(object):
processes = []
for command in command_list:
process = subprocess.Popen(command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, shell=True)
time.sleep(5)
processes.append(process)
for p in processes:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment