ROOTMod/ROOTTask in new grid-control versions

23 views
Skip to first unread message

henning.ki...@gmail.com

unread,
Nov 18, 2013, 9:34:10 AM11/18/13
to grid-c...@googlegroups.com
Dear Fred, dear grid-control enthusiasts,

I am experiencing trouble when trying to use ROOTMod/ROOTTask in newer grid-control versions. Apparently the task/module is only looked for in packages/grid_control/tasks/task_base.py even though it seems to be defined properly in packages/grid_control/tasks/task_root.py:

[kirschen@tcx101]~/scratch/2013_05_TopMass/CMSSW_5_3_11/logs%
./newGo_stable.py -Gc Configs/topmass_temp.conf

*****************************************************************
*              _     _                       _             _    *
*    __ _ _ __(_) __| |       ___ ___  _ __ | |_ _ __ ___ | |   *
*   / _` | '__| |/ _` |_____ / __/ _ \| '_ \| __| '__/ _ \| |   *
*  | (_| | |  | | (_| |_____| (_| (_) | | | | |_| | | (_) | |   *
*   \__, |_|  |_|\__,_|      \___\___/|_| |_|\__|_|  \___/|_|   *
*   |___/                                                       *
*                The Swiss Army knife of job submission tools   *
*                                                               *
*****************************************************************

Revision: 469:1100 - stable
ConfigError: TaskModule "ROOTMod" does not exist in
    ROOTMod
    grid_control.tasks.task_base.rootmod.ROOTMod
    grid_control.tasks.task_base.ROOTMod
    grid_control.tasks.rootmod.ROOTMod
    grid_control.tasks.ROOTMod
    grid_control.rootmod.ROOTMod
    grid_control.ROOTMod
    grid_control_cms.rootmod.ROOTMod
    grid_control_cms.ROOTMod
    grid_control_gui.rootmod.ROOTMod
    grid_control_gui.ROOTMod!
[kirschen@tcx101]~/scratch/2013_05_TopMass/CMSSW_5_3_11/logs%

Judging from the task/module change in rev. 1079 (including moving the example to docs/old: https://ekptrac.physik.uni-karlsruhe.de/trac/grid-control/browser/trunk/grid-control/docs/old/ROOTMOD-merge.conf), I am not sure whether ROOTMod is still supported. Can you help us out, please? It would be great to have the ROOTMod/Task functionality in the latest and greatest grid-control as well.

Cheers,
Henning

Fred-Markus Stober

unread,
Nov 18, 2013, 12:19:43 PM11/18/13
to henning.ki...@gmail.com, grid-c...@googlegroups.com
Hi Henning,

On 11/18/2013 03:34 PM, henning.ki...@gmail.com wrote:
> Dear Fred, dear grid-control enthusiasts,
>
> I am experiencing trouble when trying to use ROOTMod/ROOTTask in newer
> grid-control versions. Apparently the task/module is only looked for in
> packages/grid_control/tasks/task_base.py even though it seems to be defined
> properly in packages/grid_control/tasks/task_root.py:
>
> Judging from the task/module change in rev. 1079 (including moving the
> example to docs/old:
> https://ekptrac.physik.uni-karlsruhe.de/trac/grid-control/browser/trunk/grid-control/docs/old/ROOTMOD-merge.conf),
> I am not sure whether ROOTMod is still supported. Can you help us out,
> please? It would be great to have the ROOTMod/Task functionality in the latest and greatest grid-control as well.
ROOT tasks are still supported (the old name "module" was too confusing
for the upcoming grid-control documentation, eg. when writing about
loading "module-type modules" vs. "backend modules" ...).

However at the moment you need to use a qualified class specifier to
load it:
Either the new "task_root.ROOTTask" or the older "task_root.ROOTMod"
(which is just an alias).
(You can also use both "task = ..." and "module = ..." config options,
however the new "task =..." should be preferred.)

The reason for this is that the automatic class search unfortunately
doesn't find the ROOTMod or ROOTTask module, because the filename
doesn't match the class anymore.
I've added the files to the manual search path, so the next version
doesn't need such a qualified name anymore:
https://ekptrac.physik.uni-karlsruhe.de/trac/grid-control/changeset/1149

Cheers,
Fred

henning.ki...@gmail.com

unread,
Nov 20, 2013, 4:27:11 AM11/20/13
to grid-c...@googlegroups.com, henning.ki...@gmail.com, fred....@gmx.de
Hi Fred,

thanks for your help! I tried it out on the stable (1100) and the current testing (1149). With a slight modification it is working fine on 1100:

1100:
Setting-->
[global]
task  = task_root.ROOTTask     ; Job uses user written scripts
found the class as you suggested. However, it did not work out of the box and running ./go.oy on the config threw:
AttributeError: ROOTTask instance has no attribute '_executable'

After adding an extra line into the task_root.py:
        # set self._executable
        self._executable = exe

it worked fine to send off jobs. You might want to double-check, how this should be handled correctly.
In the previous release working just fine, self._exectuable was set in the usermod.py. It might be that this just needs to be set (again) in the task_user.py?

(1149):
I did some quick testing with the current testing rev. The addition to the manual search path worked fine(task  = ROOTTask), but there was some other hickup I did not investigate further so far (but attached the debug.log)>
[kirschen@tcx081]~/scratch/2013_05_TopMass/CMSSW_5_3_11/logs/Configs% /afs/naf.desy.de/user/k/kirschen/scratch/2013_05_TopMass/CMSSW_5_3_11/src/grid-control/go.py -iGc topmass_HenningMuon_New_2temp.conf
Revision: 84:1149M - testing
APIError: Unable to get string representation of default object: '/afs/naf.desy.de/user/k/kirschen/scratch/2013_05_TopMass/CMSSW_5_3_11/src/TopMass/Configuration/grid-control'
In case this is caused by a bug, please send the log file:
    "/afs/naf.desy.de/user/k/kirschen/scratch/2013_05_TopMass/CMSSW_5_3_11/src/grid-control/debug.log"
to ...

Cheers,
Henning
debug.log
Reply all
Reply to author
Forward
0 new messages