LISTSERV mailing list manager LISTSERV 16.5

Help for XROOTD-DEV Archives


XROOTD-DEV Archives

XROOTD-DEV Archives


XROOTD-DEV@LISTSERV.SLAC.STANFORD.EDU


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

XROOTD-DEV Home

XROOTD-DEV Home

XROOTD-DEV  September 2014

XROOTD-DEV September 2014

Subject:

Re: Third-party-copy and Xrootd

From:

Andrew Hanushevsky <[log in to unmask]>

Reply-To:

xrootd developers' list for Scalla/xrootd repository and related issues <[log in to unmask]>

Date:

Fri, 26 Sep 2014 01:10:11 -0700

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (138 lines)

Hi Brian,

The TPC is used extensively by EOS so Lukasz and Andreas have a lot og 
experience in setting up TPC. Specifically, using xrdcp to an arbitrary 
srver does not bypass any authentication that was setup by the source or 
destination site. If we did that we would be opening up a huge security 
hole. So, if a site requires GSI auth then you better have a cert to get 
past the first hurdle. The same is true for any basic authorization that 
was setup by the site. In the federated context that usually is not an 
issue.

If you really want to bypass authentication, then you can bind an 
alternate authentication protocal (e.g. host) to particular hosts. That 
generally isn't scalable but it can be done.

The server will seach for binaries in whatever is in $PATH. My guess is 
that for daemons /usr/bin isn't in $PATH for historic reasons. But it easy 
to check.

As for which file the was targeted by the copy is solely determined by the 
client that initiated the copy. From your command line it specifically 
asked itto copy to the indicated destination file. So, it was doing 
exactly what you asked it to do.

Andy

On Thu, 25 Sep 2014, Brian Bockelman wrote:

> Hi all,
>
> Is there a how-to guide in getting TPC working?
>
> I added the following to my config on source and destination server:
>
> ofs.tpc
>
> This didn't work because "xrdcp" wasn't found (it's in /usr/bin/xrdcp; 
I guess xrootd doesn't search the path?).  So, I tried:
>
> ofs.tpc pgm /usr/bin/xrdcp
>
> This didn't work - things ended with an "auth failed".  Accordingly, I wrote a small wrapper script to dump the CLI and the output of "xrdcp" at "-d 2" into a file.  I've copied this below.
>
> Two things caught my eye in the output:
>
> 1) It's trying to do a GSI auth on the server side.  This, of course, won't work - the server has no certificate.  Shouldn't the whole "tpc.key" and "tpc.org" be used for auth instead?
> 2) It's trying to copy to:
>
> /store/user/bbockelm/LoadTest07_Caltech_EE.brunel.3
>
> Unless xrdcp is being setup somewhat magically, that won't work - that file doesn't exist.  You need to use the XrdOfs plugin found in libXrdHdfs.so to write on this particular server.
>
> Suggestions?
>
> Brian
>
>  -d 2 --server
  xroot://red-gridftp6.unl.edu:1094//store/user/bbockelm/LoadTest07_Caltech_EE.brunel?tpc.key=00080829161e2bfc54248713&[log in to unmask] /store/user/bbockelm/LoadTest07_Caltech_EE.brunel.3
> [2014-09-25 16:20:19.646444 -0500][Debug  ][Poller            ] Available pollers: built-in
> [2014-09-25 16:20:19.646582 -0500][Debug  ][Poller            ] Attempting to create a poller according to preference: built-in,libevent
> [2014-09-25 16:20:19.646597 -0500][Debug  ][Poller            ] Creating poller: built-in
> [2014-09-25 16:20:19.646614 -0500][Debug  ][Poller            ] Creating and starting the built-in poller...
> [2014-09-25 16:20:19.646776 -0500][Debug  ][TaskMgr           ] Starting the task manager...
> [2014-09-25 16:20:19.646822 -0500][Debug  ][TaskMgr           ] Task manager started
> [2014-09-25 16:20:19.646838 -0500][Debug  ][JobMgr            ] Starting the job manager...
> [2014-09-25 16:20:19.646932 -0500][Debug  ][JobMgr            ] Job manager started, 3 workers
> [2014-09-25 16:20:19.646953 -0500][Debug  ][TaskMgr           ] Registering task: "FileTimer task" to be run at: [2014-09-25 16:20:19 -0500]
> [2014-09-25 16:20:19.646999 -0500][Debug  ][PostMaster        ] Creating new channel to: red-gridftp6.unl.edu:1094 1 stream(s)
> [2014-09-25 16:20:19.647041 -0500][Debug  ][PostMaster        ] [red-gridftp6.unl.edu:1094 #0] Stream parameters: Network Stack: IPAuto, Connection Window: 120, ConnectionRetry: 5, Stream Error Widnow: 1800
> [2014-09-25 16:20:19.647574 -0500][Debug  ][TaskMgr           ] Registering task: "TickGeneratorTask for: red-gridftp6.unl.edu:1094" to be run at: [2014-09-25 16:20:34 -0500]
> [2014-09-25 16:20:19.648292 -0500][Debug  ][PostMaster        ] [red-gridftp6.unl.edu:1094] Found 2 address(es): [2600:900:6:1101:21a:a0ff:fe33:251c]:1094, [::ffff:129.93.239.130]:1094
> [2014-09-25 16:20:19.648333 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Attempting connection to [2600:900:6:1101:21a:a0ff:fe33:251c]:1094
> [2014-09-25 16:20:19.648510 -0500][Debug  ][Poller            ] Adding socket 0xab3c10 to the poller
> [2014-09-25 16:20:19.649967 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Async connection call returned
> [2014-09-25 16:20:19.650009 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Sending out the initial hand shake + kXR_protocol
> [2014-09-25 16:20:19.650234 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Got the server hand shake response (type: server [], protocol version 300)
> [2014-09-25 16:20:19.650264 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] kXR_protocol successful (type: server [], protocol version 300)
> [2014-09-25 16:20:19.651060 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Sending out kXR_login request, username: xrootd, cgi: ?xrd.cc=us&xrd.tz=-6&xrd.appname=xrdcp
> [2014-09-25 16:20:19.651279 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Logged in
> [2014-09-25 16:20:19.651300 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Authentication is required: &P=gsi,v:10300,c:ssl,ca:82c2b224.0|c7a717ce.0
> [2014-09-25 16:20:19.651312 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Sending authentication data
> [2014-09-25 16:20:19.656207 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Trying to authenticate using gsi
> [2014-09-25 16:20:19.661892 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Cannot get credentials for protocol gsi: Secgsi: ErrParseBuffer: error getting user proxies: kXGS_init
> XrdSec: No authentication protocols are available.
> [2014-09-25 16:20:19.661969 -0500][Error  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] No protocols left to try
> [2014-09-25 16:20:19.661992 -0500][Error  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Socket error while handshaking: [FATAL] Auth failed
> [2014-09-25 16:20:19.662006 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Closing the socket
> [2014-09-25 16:20:19.662022 -0500][Debug  ][Poller            ] <[2600:900:6:1101:20f:53ff:fe0e:46cc]:45293><--><[2600:900:6:1101:21a:a0ff:fe33:251c]:1094> Removing socket from the poller
> [2014-09-25 16:20:19.662122 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Attempting connection to [::ffff:129.93.239.130]:1094
> [2014-09-25 16:20:19.662159 -0500][Debug  ][Poller            ] Adding socket 0xab3c10 to the poller
> [2014-09-25 16:20:19.663273 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Async connection call returned
> [2014-09-25 16:20:19.663312 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Sending out the initial hand shake + kXR_protocol
> [2014-09-25 16:20:19.664031 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Got the server hand shake response (type: server [], protocol version 300)
> [2014-09-25 16:20:19.664060 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] kXR_protocol successful (type: server [], protocol version 300)
> [2014-09-25 16:20:19.664821 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Sending out kXR_login request, username: xrootd, cgi: ?xrd.cc=us&xrd.tz=-6&xrd.appname=xrdcp
> [2014-09-25 16:20:19.665096 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Logged in
> [2014-09-25 16:20:19.665115 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Authentication is required: &P=gsi,v:10300,c:ssl,ca:82c2b224.0|c7a717ce.0
> [2014-09-25 16:20:19.665127 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Sending authentication data
> [2014-09-25 16:20:19.665371 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Trying to authenticate using gsi
> [2014-09-25 16:20:19.665436 -0500][Debug  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] Cannot get credentials for protocol gsi: Secgsi: ErrParseBuffer: error getting user proxies: kXGS_init
> XrdSec: No authentication protocols are available.
> [2014-09-25 16:20:19.665463 -0500][Error  ][XRootDTransport   ] [red-gridftp6.unl.edu:1094 #0.0] No protocols left to try
> [2014-09-25 16:20:19.665479 -0500][Error  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Socket error while handshaking: [FATAL] Auth failed
> [2014-09-25 16:20:19.665491 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Closing the socket
> [2014-09-25 16:20:19.665503 -0500][Debug  ][Poller            ] <[::ffff:129.93.239.136]:44730><--><[::ffff:129.93.239.130]:1094> Removing socket from the poller
> [2014-09-25 16:20:19.665546 -0500][Error  ][PostMaster        ] [red-gridftp6.unl.edu:1094 #0] Unable to recover: [FATAL] Auth failed.
> [2014-09-25 16:20:19.665566 -0500][Error  ][XRootD            ] [red-gridftp6.unl.edu:1094] Impossible to send message kXR_stat (path: /store/user/bbockelm/LoadTest07_Caltech_EE.brunel, flags: none). Trying to recover.
> [2014-09-25 16:20:19.665584 -0500][Error  ][XRootD            ] [red-gridftp6.unl.edu:1094] Handling error while processing kXR_stat (path: /store/user/bbockelm/LoadTest07_Caltech_EE.brunel, flags: none): [FATAL] Auth failed.
> [2014-09-25 16:20:19.665733 -0500][Debug  ][Utility           ] CopyProcess: 1 jobs to prepare
> [2014-09-25 16:20:19.665813 -0500][Debug  ][Utility           ] Creating a classic copy job, from xroot://red-gridftp6.unl.edu:1094//store/user/bbockelm/LoadTest07_Caltech_EE.brunel?tpc.key=00080829161e2bfc54248713&[log in to unmask] to file:///store/user/bbockelm/LoadTest07_Caltech_EE.brunel.3
> [2014-09-25 16:20:19.665832 -0500][Debug  ][Utility           ] Monitor library name not set. No monitoring
> [2014-09-25 16:20:19.665907 -0500][Debug  ][Utility           ] Opening xroot://red-gridftp6.unl.edu:1094//store/user/bbockelm/LoadTest07_Caltech_EE.brunel?tpc.key=00080829161e2bfc54248713&[log in to unmask] for reading
> [2014-09-25 16:20:19.665962 -0500][Debug  ][File              ] [0xab8ec0@xroot://red-gridftp6.unl.edu:1094//store/user/bbockelm/LoadTest07_Caltech_EE.brunel?tpc.key=00080829161e2bfc54248713&[log in to unmask]] Sending an open command
> [2014-09-25 16:20:19.666009 -0500][Error  ][XRootD            ] [red-gridftp6.unl.edu:1094] Unable to send the message kXR_open (file: /store/user/bbockelm/LoadTest07_Caltech_EE.brunel?tpc.key=00080829161e2bfc54248713&[log in to unmask], mode: 00, flags: kXR_open_read kXR_async kXR_retstat ): [FATAL] Auth failed
> Run: [FATAL] Auth failed
> [2014-09-25 16:20:19.666289 -0500][Debug  ][JobMgr            ] Stopping the job manager...
> [2014-09-25 16:20:19.666575 -0500][Debug  ][JobMgr            ] Job manager stopped
> [2014-09-25 16:20:19.666594 -0500][Debug  ][TaskMgr           ] Stopping the task manager...
> [2014-09-25 16:20:19.666679 -0500][Debug  ][TaskMgr           ] Task manager stopped
> [2014-09-25 16:20:19.666693 -0500][Debug  ][Poller            ] Stopping the poller...
> [2014-09-25 16:20:19.666762 -0500][Debug  ][TaskMgr           ] Requesting unregistration of: "TickGeneratorTask for: red-gridftp6.unl.edu:1094"
> [2014-09-25 16:20:19.666778 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Closing the socket
> [2014-09-25 16:20:19.666791 -0500][Debug  ][PostMaster        ] [red-gridftp6.unl.edu:1094 #0] Destroying stream
> [2014-09-25 16:20:19.666804 -0500][Debug  ][AsyncSock         ] [red-gridftp6.unl.edu:1094 #0.0] Closing the socket
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the XROOTD-DEV list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

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

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

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

Privacy Notice, Security Notice and Terms of Use