Skip to content

Latest commit

 

History

History
195 lines (156 loc) · 5.77 KB

notes.md

File metadata and controls

195 lines (156 loc) · 5.77 KB

Notes

Useful links

docker run --rm --publish 1094:1094 \
    -v $PWD/data:/data \
    xrootdse
xrootd -c /etc/xrootd/xrootd-standalone.cfg -k fifo -n standalone -k 10 -s /var/run/xrootd/xrootd-standalone.pid -l /var/log/xrootd/xrootd.log
xrdcp /bin/sh  root://localhost:1094///xrootd/second_test
docker-compose up -d
docker-compose run  xrootdclient
xrdcp /bin/sh  root://xrootdse:1094///xrootd/test
xrdcp /bin/sh  root://172.19.0.3:1094///xrootd/test
# standalone
docker exec -ti xrootd-se_${xrootdse}_1 supervisorctl restart xrootd-standalone
# clustered
docker exec -ti xrootd-se_${xrootdse}_1 supervisorctl restart xrootd-clustered
docker exec -ti xrootd-se_${xrootdgateway}_1 supervisorctl restart xrootd-clustered
# cmsd
docker exec -ti xrootd-se_${xrootdse}_1 supervisorctl restart cmsd
docker exec -ti xrootd-se_${xrootdgateway}_1 supervisorctl restart cmsd

https://dune.bnl.gov/wiki/Basic_XRootD
xrdcp /bin/sh  root://xrootd.phy.bris.ac.uk:1094///xrootd/test
xrdfs xrootd.phy.bris.ac.uk:1094 ls /xrootd/test
xrdfs xrootd.phy.bris.ac.uk:1094 query checksum /xrootd/test

Infrastructure

Current issue:

sequenceDiagram
    participant Client
    participant XrootD Redirector
    participant XrootD Gateway
    participant HDFS

    Client ->> XrootD Redirector: rename /path/to/file /path/to/file.new
    XrootD Redirector ->> XrootD Gateway: rename /path/to/file /path/to/file.new
    XrootD Gateway ->> HDFS: rename /path/to/file /path/to/file.new
    HDFS -->> XrootD Gateway: rename done
    Note left of Client: Wait 5 seconds
    Client ->> XrootD Redirector: stat /path/to/file.new
    XrootD Redirector ->> Client: /path/to/file.new does not exist
Loading

What we want to try:

sequenceDiagram
    participant Client
    participant XrootD Redirector
    participant XrootD Gateway
    participant HDFS

    Client ->> XrootD Redirector: stat /path/to/file.new
    XrootD Redirector ->> XrootD Gateway: stat /path/to/file.new
    XrootD Gateway ->> HDFS: stat /path/to/file.new
    HDFS -->> XrootD Gateway: stat results
    XrootD Gateway -->> Client: stat results
Loading

or

sequenceDiagram
    participant Client
    participant XrootD Redirector
    participant XrootD Gateway
    participant HDFS

    Client ->> XrootD Redirector: stat /path/to/file.new
    XrootD Redirector ->> HDFS: stat /path/to/file.new
    HDFS -->> XrootD Redirector: stat results
    XrootD Redirector -->> Client: stat results
Loading

Solution (from from xrootd/xrootd#1703):

cms.dfs lookup central redirect immed

Check hostnames

xrootdse=xrootd.phy.bris.ac.uk
xrootdgateway=io-37-02.acrc.bris.ac.uk

docker exec -ti xrootd-se_${xrootdse}_1 hostname -f
docker exec -ti xrootd-se_${xrootdgateway}_1 hostname -f

Check logs

docker exec -ti xrootd-se_${xrootdse}_1 tail /var/log/xrootd/clustered/xrootd.log
docker exec -ti xrootd-se_${xrootdgateway}_1 tail /var/log/xrootd/clustered/xrootd.log

docker exec -ti xrootd-se_${xrootdse}_1 tail /var/log/xrootd/clustered/cmsd.log
docker exec -ti xrootd-se_${xrootdgateway}_1 tail /var/log/xrootd/clustered/cmsd.log

Check data

docker exec -ti xrootd-se_${xrootdse}_1 ls -lah /xrootd

Transfer tests with certs

xrootdse=xrootd.phy.bris.ac.uk
source /cvmfs/grid.cern.ch/umd-c7ui-latest/etc/profile.d/setup-c7-ui-example.sh
voms-proxy-init --voms dteam

xrdcp /bin/sh  root://${xrootdse}:1094///xrootd/test
xrdfs ${xrootdse}:1094 query checksum /xrootd/test
xrdfs ${xrootdse}:1094 rm /xrootd/test

HDFS Commands

docker exec -ti xrootd-se_${xrootdse}_1 hdfs dfs -ls /
docker exec -ti xrootd-se_${xrootdse}_1 hdfs dfs -ls /xrootd

docker exec -ti xrootd-se_${xrootdgateway}_1 hdfs dfs -ls /
docker exec -ti xrootd-se_${xrootdgateway}_1 hdfs dfs -ls /xrootd

Debugging

Same certs as xrootd

-http.cadir /etc/grid-security/certificates
-http.cert /etc/grid-security/xrd/hostcert.pem
-http.key /etc/grid-security/xrd/hostkey.pem
+#http.cadir /etc/grid-security/certificates
+#http.cert /etc/grid-security/xrd/hostcert.pem
+#http.key /etc/grid-security/xrd/hostkey.pem
+http.httpsmode auto

did not fix the tests

Register new HTTP port:

diff --git a/etc/xrootd/config.d/20-https.cfg b/etc/xrootd/config.d/20-https.cfg
index a309486..de6bd6d 100644
--- a/etc/xrootd/config.d/20-https.cfg
+++ b/etc/xrootd/config.d/20-https.cfg
@@ -11,6 +11,7 @@ if exec xrootd
   http.listingdeny no
   http.staticpreload http://static/robots.txt /etc/xrootd/robots.txt
   xrd.protocol http:$(httpsPort) /usr/lib64/libXrdHttp.so
+  xrd.protocol http:$(httpsPort) +port
   http.selfhttps2http yes

   # Enable third-party-copy

as per docs and github issue