Print

Print


Well, I verified that all of the hosts listed in your script (including
the ones that were commented out) are reachable via WAN. So, unless there
is some strange iptables setting on the host where you trying this out,
connectivity should not be an issue.

Hoever, cms-xrd-global.cern.ch has an IPv6 address and that address will
be tried first if you are IPv6 enabled (that's an RFC requireent). If your
IPv6 setup is broken then there will be a 2 minute delay before the next
IPv6 address is tried (the host has two IPv6 addresses). Then the IPv4
address will be tried. So, if this is the case it will take 4 minutes to
establish a connection. This may be the problem.

Andy

On Mon, 8 Oct 2018, Valentin Kuznetsov wrote:

> yes, I removed timeout argument from the call. Here is a code now:
> ```
> #!/usr/bin/env python
> from XRootD import client
> from XRootD.client.flags import OpenFlags
> f=client.File()
> redirector='root://cms-xrd-global.cern.ch'
> #redirector='root://xrootd-cms.infn.it'
> #redirector='root://cmsxrootd.fnal.gov'
> fin='%s//store/data/Run2018C/Tau/NANOAOD/14Sep2018_ver3-v1/60000/6FA4CC7C-8982-DE4C-BEED-C90413312B35.root' % redirector
> print(fin)
> data=f.open(fin, OpenFlags.READ)
> print("data", data)
> ```
> and, I tried different redirectors.
>
> My suspicious it is related to the node iptables settings, the node is on a
> Internet2 and may be some settings should be applied to make requests pass
> through. But I don't know what xrootd requires (if any).
>
>
> On 0, Brian P Bockelman <[log in to unmask]> wrote:
>> Hi @vkuznet -
>>
>> For the last log snippet, can you confirm that you decreased the timeout value to be below the amount of time you waited? It wasn't clear from your response whether this was so.
>>
>> Brian
>>
>> --
>> You are receiving this because you were mentioned.
>> Reply to this email directly or view it on GitHub:
>> https://github.com/xrootd/xrootd/issues/836#issuecomment-427862413
>
>
> --
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly or view it on GitHub:
> https://github.com/xrootd/xrootd/issues/836#issuecomment-427865877


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@abh3 in #836: Well, I verified that all of the hosts listed in your script (including \nthe ones that were commented out) are reachable via WAN. So, unless there \nis some strange iptables setting on the host where you trying this out, \nconnectivity should not be an issue.\n\nHoever, cms-xrd-global.cern.ch has an IPv6 address and that address will \nbe tried first if you are IPv6 enabled (that's an RFC requireent). If your \nIPv6 setup is broken then there will be a 2 minute delay before the next \nIPv6 address is tried (the host has two IPv6 addresses). Then the IPv4 \naddress will be tried. So, if this is the case it will take 4 minutes to \nestablish a connection. This may be the problem.\n\nAndy\n\nOn Mon, 8 Oct 2018, Valentin Kuznetsov wrote:\n\n\u003e yes, I removed timeout argument from the call. Here is a code now:\n\u003e ```\n\u003e #!/usr/bin/env python\n\u003e from XRootD import client\n\u003e from XRootD.client.flags import OpenFlags\n\u003e f=client.File()\n\u003e redirector='root://cms-xrd-global.cern.ch'\n\u003e #redirector='root://xrootd-cms.infn.it'\n\u003e #redirector='root://cmsxrootd.fnal.gov'\n\u003e fin='%s//store/data/Run2018C/Tau/NANOAOD/14Sep2018_ver3-v1/60000/6FA4CC7C-8982-DE4C-BEED-C90413312B35.root' % redirector\n\u003e print(fin)\n\u003e data=f.open(fin, OpenFlags.READ)\n\u003e print(\"data\", data)\n\u003e ```\n\u003e and, I tried different redirectors.\n\u003e\n\u003e My suspicious it is related to the node iptables settings, the node is on a\n\u003e Internet2 and may be some settings should be applied to make requests pass\n\u003e through. But I don't know what xrootd requires (if any).\n\u003e\n\u003e\n\u003e On 0, Brian P Bockelman \[log in to unmask]\u003e wrote:\n\u003e\u003e Hi @vkuznet -\n\u003e\u003e\n\u003e\u003e For the last log snippet, can you confirm that you decreased the timeout value to be below the amount of time you waited? It wasn't clear from your response whether this was so.\n\u003e\u003e\n\u003e\u003e Brian\n\u003e\u003e\n\u003e\u003e --\n\u003e\u003e You are receiving this because you were mentioned.\n\u003e\u003e Reply to this email directly or view it on GitHub:\n\u003e\u003e https://github.com/xrootd/xrootd/issues/836#issuecomment-427862413\n\u003e\n\u003e\n\u003e -- \n\u003e You are receiving this because you are subscribed to this thread.\n\u003e Reply to this email directly or view it on GitHub:\n\u003e https://github.com/xrootd/xrootd/issues/836#issuecomment-427865877\n"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/836#issuecomment-427886184"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/836#issuecomment-427886184", "url": "https://github.com/xrootd/xrootd/issues/836#issuecomment-427886184", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [xrootd/xrootd] python client hangs forever (#836)", "sections": [ { "text": "", "activityTitle": "**Andrew Hanushevsky**", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@abh3", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 836,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 836\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/xrootd/xrootd/issues/836#issuecomment-427886184" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 388716542\n}" } ], "themeColor": "26292E" } ]

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