JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for TB-SUPPORT Archives


TB-SUPPORT Archives

TB-SUPPORT Archives


TB-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

TB-SUPPORT Home

TB-SUPPORT Home

TB-SUPPORT  October 2015

TB-SUPPORT October 2015

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: lcg-tags errors problems at EFDA-JET

From:

"Purahoo, Krishan" <[log in to unmask]>

Reply-To:

Testbed Support for GridPP member institutes <[log in to unmask]>

Date:

Wed, 21 Oct 2015 09:22:08 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (266 lines)

Hi Stephen,
            What about the situation where a user gets a proxy for
different roles. Sometimes as a normal user (default Role) and sometimes
with Role=lcgadmin.  Will they have 2 different entries in
/etc/grid-security/gridmapdir/

This is what is happening in our case. The biomed users uses different
roles for different jobs, using their DN.

I can't see multiple mappings in /gridmapdir/ for them.
There is only one mapping.

E.g, I can see this only mapping for the biomed user

36664 -rw-r--r-- 2 root root 0 Oct 21 09:00 bio012
36664 -rw-r--r-- 2 root root 0 Oct 21 09:00 
%2fo%3dgrid%2dfr%2fc%3dfr%2fo%3dcnrs%2fou%3di3s%2fcn%3dfranck%20michel:biomed

This would be his normal/default role mapping. But when he comes
in as role=lcgadmin, (with the same user DN) should that create a
different entry in  /gridmapdir/?

Also looking in /gridmapdir/, I can't see any *sgm entries, even
for opssgm (which currently runs jobs regularly on our system).
Do you have *sgm entries in your /gridmapdir/ directoty?


Many Thanks

krishan


On 20/10/15 17:50, Stephen Jones wrote:
> Hi Krishan,
>
> On 10/20/2015 05:27 PM, Purahoo, Krishan wrote:
>> yet ops with role=lcgadmin
>> is being mapped correctly to opssgm, but biomed with role=lcgadmin
>> is being mapped to a normal biomed user (not the sgm account).
>
> Once a mapping has been made, it is stored in
> /etc/grid-security/gridmapdir (different entirely to grid-mapfile etc.)
> Once it is stored it is fixed. It is never removed by any normal
> process.  I suspect that biomed/role=lcgadmin is mapped wrongly and it
> will stick that way.
>
> You need to unmap it. To do that, cd to /etc/grid-security/gridmapdir on
> your ARGUS server. Then read the
> description of the mapping cache, below, and break the link.
>
> Once you've done that, try it again.
>
> Cheers,
>
> Steve
>
> ------- DESCRIPTION OF HOW MAPPING CACHE WORKS -----------
>
> The mapping cache is /etc/grid-security/gridmapdir
>
> In that directory, an empty file exists representing every possible
> local user on your cluster. One per user.
>
> The files have names like dteam001, dteam002 .... dteam050 etc. or
> whatever.
>
> When a credential is mapped to a local user, it is recorded in this
> directory.
>
> To record it, a hard link is made to one of the empty file (dteam... or
> whatever).
>
> This is done by 'sharing an inode', so that two files point to the same
> place on the disk.
>
> One of the files represents the local user. The other file link to the
> same inode represents the credential of the person who is mapped to that
> account.
>
> On my system, I can see what user I am mapped to like so.
>
> # cd /etc/grid-security/gridmapdir
> # ls -lrti | grep jones
> 106527 -rw-r--r-- 2 root root 0 Oct 20 17:45
> %2fc%3duk%2fo%3descience%2fou%3dliverpool%2fl%3dcsd%2fcn%3dstephen%20jones:dteam
>
> # ls -lrti | grep 106527
> 106527 -rw-r--r-- 2 root root 0 Oct 20 17:45 dteam072
> 106527 -rw-r--r-- 2 root root 0 Oct 20 17:45
> %2fc%3duk%2fo%3descience%2fou%3dliverpool%2fl%3dcsd%2fcn%3dstephen%20jones:dteam
>
>
> So I'm dteam072. Obviously you can do the reverse operation to find what
> user is mapped to which local account.
>
> You can break the link like this:
>
> # rm
> %2fc%3duk%2fo%3descience%2fou%3dliverpool%2fl%3dcsd%2fcn%3dstephen%20jones:dteam
>
>
> Next time you come in, you'll be remapped. You may end up with the same
> user, or another one.
>
> -------------------------------------------------------------------------------------
>
>
>
>>
>>
>> Unfortunately I don't belong to the biomed VO and can't get a proxy
>> with role=lcgadmin. I am currently only in the vo.southgrid.ac.uk
>> VO and is not allowed role=lcgadmin. My dteam membership has lapsed.
>> and can't seem to re-instate it.
>>
>> Repeating the test, you did, of temporarily mapped all
>> vo.southgrid.ac.uk to an sgm account, and that works OK,
>> for me as well.
>>
>> Thanks again.
>>
>> krishan
>>
>>
>>
>> On 20/10/15 16:18, Stephen Jones wrote:
>>> Hi Krishnan,
>>>
>>> I think you're on the right track with what you said before. I had the
>>> exact same problem as you, but I've "fixed" it for me, I hope it helps
>>> you to fix yours. When I ran the command, I got  this (same as you did):
>>>
>>> # lcg-tags --verbose --debug --add --vo dteam --tags
>>> VO-dteam-abc123testin1212 --ce hepgrid5.ph.liv.ac.uk
>>> VO: dteam
>>> Endpoint: gsiftp://hepgrid5.ph.liv.ac.uk/opt/edg/var/info/dteam
>>> lcg-tags: remote copy from
>>> gsiftp://hepgrid5.ph.liv.ac.uk/opt/edg/var/info/dteam/lock to
>>> /tmp/lcg-tagsD7AR42 failed
>>> lcg-tags: remote copy from /tmp/hKDvca4UCe to
>>> gsiftp://hepgrid5.ph.liv.ac.uk/opt/edg/var/info/dteam/lock failed
>>> lcg-tags: error: cannot create remote lockfile.
>>>
>>>
>>> NOTE: The _first_ message about "remote copy from blah failed" is bogus
>>> and misleading - the process worked OK. The "error" comes about because
>>> they use a general purpose routine to copy a lock file back. If it can't
>>> get one, it's a good thing, because nothing else is accessing the locked
>>> resource, but the general purpose copy routine doesn't know that so it
>>> complains that it has 'failed' when it has actually done the exact
>>> opposite! An age old problem with software reuse. Anyway, that's the
>>> last I'll say about that bogus output (although I should raise a ticket
>>> to be honest.)
>>>
>>> Moving on ... I could not get a dteam proxy with the lcgadmin resource
>>> (I'm not allowed one) which was a bother. So I changed the entries in my
>>> ARGUS config like this so that ALL dteam accounts map to a sgm
>>> (privileged) user (before there was a set of different accounts; now
>>> they all map to a .sgmdtm account, which 'has' lcgadmin.) It's reset now
>>> BTW.
>>>
>>> #  cat  /etc/grid-security/grid-mapfile | grep dteam
>>> "/dteam/sgm/Role=NULL/Capability=NULL" .sgmdtm
>>> "/dteam/sgm" .sgmdtm
>>> "/dteam/lcgprod/Role=NULL/Capability=NULL" .sgmdtm
>>> "/dteam/lcgprod" .sgmdtm
>>> "/dteam/Role=lcgadmin/Capability=NULL" .sgmdtm
>>> "/dteam/Role=lcgadmin" .sgmdtm
>>> "/dteam/Role=production/Capability=NULL" .sgmdtm
>>> "/dteam/Role=production" .sgmdtm
>>> "/dteam/Role=NULL/Capability=NULL" .sgmdtm
>>> "/dteam" .sgmdtm
>>> "/dteam/*/Role=NULL/Capability=NULL" .sgmdtm
>>> "/dteam/*" .sgmdtm
>>>
>>> After I did that, the lcg-tags command worked for me.
>>>
>>> # lcg-tags --verbose --debug --add --vo dteam --tags VO-dteam-abc145
>>> --ce hepgrid5.ph.liv.ac.uk
>>> VO: dteam
>>> Endpoint: gsiftp://hepgrid5.ph.liv.ac.uk/opt/edg/var/info/dteam
>>> lcg-tags: remote copy from
>>> gsiftp://hepgrid5.ph.liv.ac.uk/opt/edg/var/info/dteam/lock to
>>> /tmp/lcg-tagsRjwRaP failed
>>> #
>>>
>>> So that's what happened. If you can get a biomed proxy with
>>> "Role=lcgadmin", check the grid-mapfile on your ARGUS server and make
>>> sure it's right. You can also use CREAM to check the mappings as they
>>> occur - this file shows it all, on CREAM.
>>>
>>> # tail -f  /var/log/globus-gridftp.log
>>>
>>> If it's wrong, then fix it in grid-mapfile (perhaps using yaim.) If it's
>>> right, then the account the user maps to is not permitted to write the
>>> file. Don't know why yet - that's another bit of debugging to find out.
>>>
>>> Cheers,
>>>
>>>
>>> Steve
>>>
>>>
>>> On 10/20/2015 09:59 AM, Purahoo, Krishan wrote:
>>>> Hi,
>>>>    It seems that the mapping problem is somewhat fixed,
>>>> to the extent that the user can login (run the gridftp command).
>>>> However, it seems the correct mapping is not being done, and thus
>>>> the lgc-tags operation fails.
>>>>
>>>> with the following errors:-
>>>>
>>>> ##
>>>> lcg-tags --verbose --debug --add --vo $VO --tags $TAG --ce
>>>> grid002.jet.efda.org
>>>>
>>>> VO: biomed
>>>>
>>>> Endpoint: gsiftp://grid002.jet.efda.org/opt/edg/var/info/biomed
>>>>
>>>> lcg-tags: remote copy from
>>>> gsiftp://grid002.jet.efda.org/opt/edg/var/info/biomed/lock to
>>>> /tmp/lcg-tagsohsVLa failed
>>>>
>>>> lcg-tags: remote copy from /tmp/vZO9WHVbVc to
>>>> gsiftp://grid002.jet.efda.org/opt/edg/var/info/biomed/lock failed
>>>>
>>>> lcg-tags: error: cannot create remote lockfile.
>>>> ##
>>>>
>>>> The user is coming in as Role=lcgadmin, and I was expecting it to
>>>> get mapped to the sgm account (biomedsgm), which have the correct
>>>> permissions for /opt/edg/var/info/biomed/. However, the user is
>>>> being mapped to a normal biomed account (bioNNN).
>>>>
>>>> Proxy info for user, shows the following attribute
>>>>
>>>> attribute : /biomed/Role=lcgadmin/Capability=NULL
>>>>
>>>> How do I get the biomed DN with Role=lcgadmin to be mapped
>>>> to biomedsgm.
>>>>
>>>> This is what I now have in my grid-mapfile on Argus
>>>>
>>>> "/biomed/Role=lcgadmin/Capability=NULL" biomedsgm
>>>> "/biomed/Role=lcgadmin" biomedsgm
>>>> "/biomed/Role=production/Capability=NULL" biomedprd
>>>> "/biomed/Role=production" biomedprd
>>>> "/biomed/Role=NULL/Capability=NULL" .bio
>>>> "/biomed" .bio
>>>>
>>>>
>>>> Many Thanks
>>>>
>>>> krishan
>>>
>>>
>>> --
>>> Steve Jones [log in to unmask]
>>> Grid System Administrator               office: 220
>>> High Energy Physics Division            tel (int): 43396
>>> Oliver Lodge Laboratory                 tel (ext): +44 (0)151 794 3396
>>> University of Liverpool http://www.liv.ac.uk/physics/hep/
>
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager