arcctl job - KeyError
[root@ce01 ~]# arcctl job killall -s PREPARING
Traceback (most recent call last):
File "/usr/sbin/arcctl", line 104, in <module>
ctl_class(get_arcconfig(cmd_args.config)).control(cmd_args)
File "/usr/lib64/python2.6/site-packages/arc/control/Jobs.py", line 331, in control
self.kill_or_clean_all(args, '-k')
File "/usr/lib64/python2.6/site-packages/arc/control/Jobs.py", line 205, in kill_or_clean_all
self.__get_jobs()
File "/usr/lib64/python2.6/site-packages/arc/control/Jobs.py", line 144, in __get_jobs
gmjobs_out = self.__run_gmjobs('--longlist --notshowstates')
File "/usr/lib64/python2.6/site-packages/arc/control/Jobs.py", line 66, in __run_gmjobs
__GMJOBS += ['-x', {50: 'FATAL', 40: 'ERROR', 30: 'WARNING', 20: 'INFO', 10: 'DEBUG'}[loglevel]]
KeyError: 'WARNING'
Probably
loglevel = logging.getLogger('ARCCTL').getEffectiveLevel() is not returning what is expected in Jobs.py namely an integer