Those directories must exist for the node daemon to run (it's in the
node daemon's list of ensured directories) and those functions are only
called by the node daemon, so there's no point in those checks+mkdir
calls.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
export_script = inst_os.export_script
logfile = _InstanceLogName("export", inst_os.name, instance.name)
export_script = inst_os.export_script
logfile = _InstanceLogName("export", inst_os.name, instance.name)
- if not os.path.exists(constants.LOG_OS_DIR):
- os.mkdir(constants.LOG_OS_DIR, 0750)
real_disk = _OpenRealBD(disk)
real_disk = _OpenRealBD(disk)
import_script = inst_os.import_script
logfile = _InstanceLogName("import", instance.os, instance.name)
import_script = inst_os.import_script
logfile = _InstanceLogName("import", instance.os, instance.name)
- if not os.path.exists(constants.LOG_OS_DIR):
- os.mkdir(constants.LOG_OS_DIR, 0750)
comprcmd = "gunzip"
impcmd = utils.BuildShellCmd("(cd %s; %s >%s 2>&1)", inst_os.path,
comprcmd = "gunzip"
impcmd = utils.BuildShellCmd("(cd %s; %s >%s 2>&1)", inst_os.path,