Comments (9)
I'll try to take a look at this today.
Original comment by [email protected]
on 13 Dec 2011 at 2:20
- Changed state: Accepted
from pdsh.
Unfortunately, I don't have a place to set up NIS to test this right now.
I assume NIS is working fine on "host" and other netgroups functionality
is present?
Does
getent netgroup nisgroup1
work?
I believe pdsh is just calling getnetgrent(3), so as long as /etc/nsswitch.conf
is set up to use nis, this should work (I think)
Original comment by [email protected]
on 15 Dec 2011 at 2:26
from pdsh.
The getent netgroup nisgroup1 works just fine. I checked /etc/nsswitch.conf
and it had:
netgroup: files nis
I changed it to:
netgroup: nis files
And things work again. Shouldn't it have failed when checking files but then
succeded via NIS? Anyway, the change to the order has the issue fixed now.
Original comment by [email protected]
on 16 Dec 2011 at 3:50
from pdsh.
I checked another system that I pdsh from often. It runs Fedora 15, pdsh-2.22
and has "netgroup file nis" in nsswitch.conf. Using netgroups from it works
just fine. So it appears as though the second entry for netgroup in
nsswitch.conf is never being checked if the first one fails to return a valid
result.
Original comment by [email protected]
on 16 Dec 2011 at 3:57
from pdsh.
Interesting, the code that gathers the netgroup hosts with getnetgrent_r(3)
hasn't
changed in pdsh since it was introduced. However, that is not to say something
else is pdsh changed this behavior. The nss code should be hidden beneath the
setnetgrent/getnetgrent calls, so I'm not sure what I could be doing wrong here,
but it would be interesting to find out why the code is failing with the
different
nsswitch order.
I wonder if running pdsh -g nisgroup1 -q under ltrace will show anything
interesting.
I might also try writing up a testcase later today, if you'd be willing to run
it.
Original comment by [email protected]
on 16 Dec 2011 at 4:49
from pdsh.
Well the behavior is getting to be confusing now. I tried reverting
nsswitch.conf back to the way it was before and pdsh works just fine now. So
what seemed to have fixed it maybe didn't fix it, but that would mean it fixed
itself magically right when I thought I fixed it.
Here's what I get with things working nicely. The "Target nodes" at the end is
exactly what I expect to see, all 16 of the nodes listed in the group I used.
I tried the same with a few different netgroups and all seemed fine.
-------------------------------------------
[root@myhost ~]# pdsh -g group -q
-- DSH-specific options --
Separate stderr/stdout Yes
Path prepended to cmd none
Appended to cmd none
Command: none
Full program pathname /usr/bin/pdsh
Remote program path /usr/bin/pdsh
-- Generic options --
Local username root
Local uid 0
Remote username root
Rcmd type ssh
one ^C will kill pdsh No
Connect timeout (secs) 10
Command timeout (secs) 0
Fanout 32
Display hostname labels Yes
Debugging No
-- Target nodes --
node[101-116]
-------------------------------------------
Original comment by [email protected]
on 20 Dec 2011 at 1:20
from pdsh.
That is confusing. When you next are able to reproduce the issue,
I'll make a debug version of the netgroups module and we can see
exactly which call is failing.
Do you have nscd or similar running?
Original comment by [email protected]
on 20 Dec 2011 at 2:20
from pdsh.
Yes nscd-2.14.90-14.x86_64 is installed and running.
Original comment by [email protected]
on 22 Dec 2011 at 3:46
from pdsh.
You probably know more about NIS than I, but I wonder if you have to refresh
the netgroup cache in nscd. The fact that getent worked seems to indicate
that nscd didn't have stale data, but next time this happens, maybe try
nscd -i netgroup
just in case?
Original comment by [email protected]
on 22 Dec 2011 at 5:25
from pdsh.
Related Issues (20)
- option to remove .hostname when doing a rpdcp HOT 1
- "/": Owner not root, current uid, or pdsh executable owner HOT 7
- Random pick in host list HOT 1
- Patch to add SLURM partition support to pdsh slurm module HOT 6
- Undesirable change in 2.28 when there is no host output. HOT 9
- genders: pdsh -X excludes more hosts than expected HOT 2
- allow mix of -P and -w in slum plugin HOT 4
- output to named file[s] HOT 2
- Output all exit codes to stdout HOT 4
- pdsh slow when using a few thousand hosts and genders HOT 2
- Header compatibility with slurm 2.6 HOT 1
- Use libgenders.a when compiling with --enable-static-modules HOT 5
- pdcp uses local absolute path to pdcp on remotes HOT 3
- Add lastest release to Download link HOT 1
- Torque module doesn't support job arrays HOT 1
- Change fanout at runtime HOT 4
- history file not written in Debian HOT 9
- Support in Centos7
- segfault in pdsh-2.29 read_wcoll() when file == NULL
- support multiple globs in host specification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdsh.