On Friday 02 Dec 2005 16:18, gianfranco sciacca wrote:
> On Fri, 2005-12-02 at 15:38, Graeme Stewart wrote:
> > On Friday 02 Dec 2005 15:08, gianfranco sciacca wrote:
> > > Hi,
> > >
> > > I've just installed the DPN plugin by Graeme and Gstat reports only the
> > > capacity of the DPN head node.
> >
> > Hi Gianfranco
> >
> > Could you attach (so it doesn't get line wrapped):
> >
> > lcg-info-generic.conf
> > lcg-info-static.ldif
> >
> > the output from
> >
> > dpm-qryconf
> >
> > and whatever groups file you're using (/etc/group or NIS group source
> > file).
> >
> > I'll try and work out what's going wrong! It looks like it's trying to
> > lookup the group name of a VO group somehow that doesn't exist on your
> > system (and handling a resulting error badly).
> >
> > Thanks
> >
> > g
>
> I think it's down to the fact that the names of our groups do not fully
> correspond to the names of the VOs, but have a 'lcg' prefix. This is
> because we already have an atlas group on our local cluster. I attach
> the requested files.
Gianfranco, you're right. If you look at the perl you'll see that the plugin
looks up the GID using the VO.
The right way around this is to get the VO storage root from the ldif file,
and look up the GID directly using dpns_stat(). However, that will only be
possible with the next DPM release and the perl API.
For the moment, I have attached a modified version of the plugin for you to
use. It:
1. Defines a %voNameToGroup hash to hack the VO name into the correct unix
group name.
2. Correctly parses the error if getgrnam() fails (which is that the $gid
variable is undefined, not that it's "").
I think it should work, but let me know if you have problems - hopefully it
should tide you over till the next release.
Cheers
Graeme
--
--------------------------------------------------------------------
Dr Graeme Stewart http://www.physics.gla.ac.uk/~graeme/
GridPP DM Wiki http://wiki.gridpp.ac.uk/wiki/Data_Management
|