Best way to check if a repo exists on a given Stratum-0

Hi,

how would you recommend to check remotely if a repo exists on a Stratum-0?
I can do

cvmfs_swissknife info -r http://remote.cvmfs.stratum0/cvmfs/foo.bar -v

and check if RC is not 0.
But I was wondering if there is a cleaner way.

Cheers,
Jose

Hi Jose,

that works, you could also just check if you can download http://remote.cvmfs.stratum0/cvmfs/foo.bar/.cvmfspublished, that way you only need curl or an equivalent tool and not cvmfs. For stratum ones there is also http://remote.cvmfs.stratum1/cvmfs/info/v1/repositories.json that gives you a list of replicated repositories.
Cheers,
Valentin

Hi Valentin,

yeah, downloading the .cvmfspublished file should work for my purposes.

Thanks a lot !
Jose

repositories.json is also available on stratum zeros.

Dave

Indeed, although at least for the CERN stratum zero it is empty:

http://cvmfs-stratum-zero.cern.ch:8000/cvmfs/info/v1/repositories.json

Apparently this is because of the S3 backend - will need to look further into this if it can be made to work.