-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clush doesn't see groups.d definitions? #552
Comments
Thanks for reporting that issue.
Could you run `clush` with -d and -v option to collect more debugging
logs?
Also, nodeset -f -a should report the node list clush will be using when
using -a. Is that nodelist the one you expect ?
Aurélien
Le 2024-01-30 11:33, Stefan Weber a écrit :
I installed clush via conda in a environment. All config files are
under <conda env location>/clush/etc/clustershell
In my groups.conf I have
[Main]
default: roles
confdir: /etc/clustershell/groups.conf.d $CFGDIR/groups.conf.d
autodir: /etc/clustershell/groups.d $CFGDIR/groups.d
Next I have groups.d/cluster.yaml where I have my node definitions.
The syntax of the file is fine because running nodeset -LL shows all my
definitions.
If I run
clush -a date
I expect to get the date from all machines.
Instead I get
Usage: clush [options] command
clush: error: No node to run on.
so what am I missing here?
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you are subscribed to this
thread.Message ID: ***@***.***>
Links:
------
[1] #552
[2]
https://github.com/notifications/unsubscribe-auth/AALO4OSIENST3363LTG5GZDYRDEAJAVCNFSM6AAAAABCQ7YAZWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDONBZGM4TKMQ
--=_ff31ca09d337529e7bcb747f1beb6874
Content-Type: multipart/related;
boundary="=_af15c636883a006c0b7ee53cd2858fd0"
--=_af15c636883a006c0b7ee53cd2858fd0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt'>
<p>Thanks for reporting that issue.</p>
<p>Could you run `clush` with -d and -v option to collect more debugging lo=
gs?</p>
<p>Also, nodeset -f -a should report the node list clush will be using when=
using -a. Is that nodelist the one you expect ?</p>
<p><br /></p>
<p>Aurélien</p>
<p id=3D"reply-intro">Le 2024-01-30 11:33, Stefan Weber a écrit =
;:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<p><br /></p>
<p dir=3D"auto">I installed clush via <code class=3D"v1notranslate">conda</=
code> in a environment. All config files are under <code class=3D"v1notrans=
late"><conda env location>/clush/etc/clustershell</code></p>
<p dir=3D"auto">In my <code class=3D"v1notranslate">groups.conf</code> I ha=
ve</p>
<pre class=3D"v1notranslate" lang=3D"conf"><code class=3D"v1notranslate">[M=
ain]
default: roles
confdir: /etc/clustershell/groups.conf.d $CFGDIR/groups.conf.d
autodir: /etc/clustershell/groups.d $CFGDIR/groups.d
</code></pre>
<p dir=3D"auto">Next I have <code class=3D"v1notranslate">groups.d/cluster.=
yaml</code> where I have my node definitions.<br />The syntax of the file i=
s fine because running <code class=3D"v1notranslate">nodeset -LL</code> sho=
ws all my definitions.</p>
<p dir=3D"auto">If I run</p>
<div class=3D"v1highlight v1highlight-source-shell" dir=3D"auto">
<pre class=3D"v1notranslate">clush -a date</pre>
</div>
<p dir=3D"auto">I expect to get the date from all machines.</p>
<p dir=3D"auto">Instead I get</p>
<div class=3D"v1highlight v1highlight-source-shell" dir=3D"auto">
<pre class=3D"v1notranslate">Usage: clush [options] <span class=3D"v1pl-c1"=
command</span>
clush: error: No node to run on.</pre>
</div>
<p dir=3D"auto">so what am I missing here?</p>
<p style=3D"font-size: small; -webkit-text-size-adjust: none; color: #666;"=
—<br />Reply to this email directly, <a href=3D"https://github.com/c=
ea-hpc/clustershell/issues/552" target=3D"_blank" rel=3D"noopener noreferre=
r">view it on GitHub</a>, or <a href=3D"https://github.com/notifications/un=
subscribe-auth/AALO4OSIENST3363LTG5GZDYRDEAJAVCNFSM6AAAAABCQ7YAZWVHI2DSMVQW=
IX3LMV43ASLTON2WKOZSGEYDONBZGM4TKMQ" target=3D"_blank" rel=3D"noopener nore=
ferrer">unsubscribe</a>.<br />You are receiving this because you are subscr=
ibed to this thread.<img ***@***.***=
net" width=3D"1" height=3D"1" /><span style=3D"color: transparent; font-siz=
e: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; widt=
h: 0px; height: 0px; max-width: 0; max-height: 0; mso-hide: all;">Message I=
D: <span><cea-hpc/clustershell/issues/552</span><span>@</span><span>gith=
ub</span><span>.</span><span>com></span></span></p>
</div>
</blockquote>
<p><br /></p>
</body></html>
…--=_af15c636883a006c0b7ee53cd2858fd0
Content-Transfer-Encoding: base64
Content-ID: ***@***.***>
Content-Type: image/gif;
name=blocked.gif
Content-Disposition: inline;
filename=blocked.gif;
size=118
R0lGODlhZAAyAIAAAPrOzgAAACH5BAAAAAAALAAAAABkADIAAAJNhI+py+0Po5y02ouz3rz7D4bi
SJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvls
KwAAOw==
--=_af15c636883a006c0b7ee53cd2858fd0--
--=_ff31ca09d337529e7bcb747f1beb6874--
|
Thanks for your immediate reply. Here is the output: $ clush -d -v -a date
DEBUG:root:clush: STARTING DEBUG
Adding nodes from option -a:
Usage: clush [options] command
clush: error: No node to run on. and $ nodeset -f -a
Obviously that is not what I would expect :) |
Nodeset not returning what you expect points out that the nodegroup
definition is incorrect.
Maybe you should have given nodeset -LL and cluster.yaml content for us
to debug? :)
What is your 'all' definition ?
|
Well I have no explicit To my understanding Ok, here is a simplified example: My roles:
dev: '@dev:all'
dev:
dev: 'dev01' with $ nodeset -LL
@dev
@dev:dev dev01 |
The special name for all feature is not 'all', but '*'
You should use:
dev: ***@***.***:*'
See
https://clustershell.readthedocs.io/en/latest/config.html#groups-config
and
https://clustershell.readthedocs.io/en/latest/tools/nodeset.html#node-groups
|
I don't get your reference to But it now works with the following. roles:
dev: '@dev:*'
dev:
dev: 'dev01' Ok the reference was (at least for me) a bit hard to find. I think it would be good if a note is already under https://clustershell.readthedocs.io/en/latest/config.html#yaml-group-files. |
I installed clush via
conda
in a environment. All config files are under<conda env location>/clush/etc/clustershell
In my
groups.conf
I haveNext I have
groups.d/cluster.yaml
where I have my node definitions.The syntax of the file is fine because running
nodeset -LL
shows all my definitions.If I run
I expect to get the date from all machines.
Instead I get
Usage: clush [options] command clush: error: No node to run on.
so what am I missing here?
The text was updated successfully, but these errors were encountered: