Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
1d8ffb25
Commit
1d8ffb25
authored
10 years ago
by
Giuseppe Lo Presti
Committed by
Giuseppe Lo Presti
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Simplified URL for querying the local xrootd server. For this
to work, the xroot-python-0.3 package is needed.
parent
00f4b4f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
castor/scheduler/diskmanager/runningtransfersset.py
+2
-3
2 additions, 3 deletions
castor/scheduler/diskmanager/runningtransfersset.py
debian/control
+1
-1
1 addition, 1 deletion
debian/control
with
3 additions
and
4 deletions
castor/scheduler/diskmanager/runningtransfersset.py
+
2
−
3
View file @
1d8ffb25
...
...
@@ -92,10 +92,9 @@ class RunningTransfersSet(object):
# process we were looking at. We only ignore this process as it has probably
# finished in the mean time
pass
# then query xroot for its transfers
# then query xroot for its transfers
: this query is only allowed on localhost and it does not need to be secured
try
:
# XXX TODO replace socket.getfqdn() with 'localhost' after deploying the new xrootd-python package
fs
=
XrdClient
.
FileSystem
(
xrootiface
.
buildXrootURL
(
socket
.
getfqdn
(),
''
,
None
,
''
))
fs
=
XrdClient
.
FileSystem
(
'
root://localhost
'
)
# a full URL would be xrootiface.buildXrootURL('localhost', '', None, '')
st_stat
,
resp
=
fs
.
query
(
QueryCode
.
OPAQUE
,
"
transfers
"
)
if
not
st_stat
.
ok
:
# 'Failed to query xrootd server' message
...
...
This diff is collapsed.
Click to expand it.
debian/control
+
1
−
1
View file @
1d8ffb25
...
...
@@ -75,7 +75,7 @@ Description: castor (Cern Advanced STORage system)
Package: castor-diskserver-manager
Architecture: any
Depends: python, logrotate, python-daemon, python-rpyc >= 3.3, python-crypto >= 2.6, xrootd-python, castor-lib = %{version}-%{release}, castor-lib-server = %{version}-%{release}
Depends: python, logrotate, python-daemon, python-rpyc >= 3.3, python-crypto >= 2.6, xrootd-python
>= 0.3
, castor-lib = %{version}-%{release}, castor-lib-server = %{version}-%{release}
Conflicts: castor-dbtools, castor-transfer-manager
Description: castor (Cern Advanced STORage system)
Disk server manager of CASTOR
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment