dcache icon indicating copy to clipboard operation
dcache copied to clipboard

file not found errors not logged to billing in all cases

Open calestyo opened this issue 10 months ago • 4 comments

Hey.

This is on dCache 9.1.2.

I've noted by accident, that (at least) file not found errors do sometimes not make it into the billing logs.

E.g.: /pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.json exists, /pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.jsonA does not exist.

Now any of

xrdcp xroot://lcg-lrz-rootd.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.json foo
curl -v --capath /etc/grid-security/certificates/ -E /tmp/x509up_u1000 -L https://lcg-lrz-http.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.json   -o foo
gfal-copy -vvv  xroot://lcg-lrz-rootd.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.json foo
gfal-copy -vvv  davs://lcg-lrz-http.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.json foo

gives a billing log entry with status 0:""

And

xrdcp xroot://lcg-lrz-rootd.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.jsonA foo

Gives a billing log entry with status 10001:"No such file or directory /pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.jsonA"

So far so good.

But any of:

curl -v --capath /etc/grid-security/certificates/ -E /tmp/x509up_u1000 -L https://lcg-lrz-http.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.jsonA   -o foo
gfal-copy -vvv  xroot://lcg-lrz-rootd.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.jsonA foo
gfal-copy -vvv  davs://lcg-lrz-http.grid.lrz.de/pnfs/lrz-muenchen.de/data/atlas/meta/storage-descriptor.jsonA foo

give just nothing in billing, which seems wrong.

Cheers, Chris.

calestyo avatar Aug 17 '23 14:08 calestyo