From: Thierry Parmentelat Date: Thu, 12 Sep 2013 14:25:40 +0000 (+0200) Subject: the path for redirecting omf_resctl's trigger script output was wrong X-Git-Tag: nodemanager-5.2-8~1 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=5a2cdcf15984b8d4de3ad4566c6bb276a0df2e2b;hp=4cac061c0af2d895895afd3bb08092af3289c0cf the path for redirecting omf_resctl's trigger script output was wrong --- diff --git a/plugins/omf_resctl.py b/plugins/omf_resctl.py index 7b9b1eb..4f6d5b1 100644 --- a/plugins/omf_resctl.py +++ b/plugins/omf_resctl.py @@ -49,6 +49,7 @@ yaml_slice_path="/etc/omf_rc/config.yml" # given that we're now responsible for fetching this one, I have to # decide on an actual path - not jsut a name to search for in PATH omf_rc_trigger_script="/usr/bin/plc_trigger_omf_rc" +omf_rc_trigger_log="/var/log/plc_trigger_omf_rc.log" # hopefully temporary: when trigger script is missing, fetch it at the url here omf_rc_trigger_url="http://git.mytestbed.net/?p=omf.git;a=blob_plain;f=omf_rc/bin/plc_trigger_omf_rc;hb=HEAD" @@ -117,7 +118,7 @@ def GetSlivers(data, conf = None, plc = None): # hence sudo -i slice_command = [ "sudo", "-i", omf_rc_trigger_script ] to_run = tools.command_in_slice (slicename, slice_command) - log_filename = "/vservers/%s/var/log/%s.log"%(slicename,omf_rc_trigger_script) + log_filename = "/vservers/%s/%s"%(slicename,omf_rc_trigger_log) logger.log("omf_resctl: starting %s"%to_run) logger.log("redirected into %s"%log_filename) logger.log("*not* waiting for completion..")