cea-hpc/clustershell — Issue #93: When groups.conf is missing clush -r crash
Author: thiell
Created: 2012-03-03 16:47:13+00:00
State: open
Labels: Scripts

When groups.conf is missing clush -r crash

{{{
gorget@clay1pfr:~$ clush -rbw cla1a[001-200],cla1b[001-048],cla1c[001-024] cat /etc/modprobe.d/lustre.conf
Exception in thread :
Traceback (most recent call last):
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/Task.py", line 355, in _thread_start
self._resume()
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/Task.py", line 552, in _resume
self._run(self.timeout)
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/Task.py", line 370, in _run
self._engine.run(timeout)
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Engine.py", line 749, in run
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Poll.py", line 224, in runloop
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Engine.py", line 698, in fire_timers
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Engine.py", line 292, in fire
File "/usr/lib/python2.4/site-packages/ClusterShell/Worker/EngineClient.py", line 109, in _fire
File "/usr/lib/python2.4/site-packages/ClusterShell/Engine/Engine.py", line 451, in remove
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/Worker/Ssh.py", line 135, in _close
self.worker._check_fini()
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/Worker/Ssh.py", line 307, in _check_fini
self._invoke("ev_close")
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/Worker/Worker.py", line 90, in _invoke
self.eh._invoke(ev_type, self)
File "/usr/lib/python2.4/site-packages/ClusterShell/Event.py", line 51, in _invoke
File "/home/gorget/usr/bin/clush", line 201, in ev_close
self._display.print_gather(nodeset, buf)
File "/home/gorget/usr/bin/clush", line 441, in print_gather
return self._display(nodeset, obj)
File "/home/gorget/usr/bin/clush", line 445, in _print_buffer
header = self.color_stdout_fmt % ("%s\
%s\
%s\
" % (self.SEP,
File "/home/gorget/usr/bin/clush", line 419, in _format_header
return nodeset.regroup(self.groupsource, noprefix=self.noprefix)
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/NodeSet.py", line 1459, in regroup
allgrpns = NodeSet.fromlist(self._resolver.grouplist(groupsource),
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/NodeUtils.py", line 244, in grouplist
source = self._source(namespace)
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/NodeUtils.py", line 320, in _source
return GroupResolver._source(self, namespace or self.default_sourcename)
File "/home/gorget/usr/lib/python2.4/site-packages/ClusterShell/NodeUtils.py", line 222, in _source
raise GroupResolverSourceError(namespace or "default")
GroupResolverSourceError: default
}}}