Commit 4431c745 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti Committed by Giuseppe Lo Presti
Browse files

Simplified URL for querying the local xrootd server. For this

to work, the xroot-python-0.3 package is needed.
parent 34d1a4ea
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment