Skip to main content

Tools for registering LSST metadata information into Rucio

Project description

rucio_register

Command and API to add Butler specific information to Rucio metadata.

This is a guide to using the rucio_register command for registering Butler files with Rucio.

Butler files are expected to be located in a Rucio directory structure, below a directory named for a Rucio scope. For example, if the root of the Rucio directory is "/rucio/disks/xrd1/rucio" and the Rucio scope is "test", the files should be located below "/rucio/disks/xrd1/rucio/test".

Example

The command "rucio-register" registers files with Rucio. This command requires a YAML configuration file which specifies the Rucio rse and scope, as well as the root of the directory where files are deposited, and the external reference to the Rucio RSE. This configuration file can be specified on the command line, or in the environment variable RUCIO_REGISTER_CONFIG.

The command can register data-products or raws:

for data products:

rucio-register data-products -r /rucio/disks/xrd1/rucio/test -c HSC/runs/RC2/w_2023_32/DM-40356/20230814T170253Z -t visitSummary -d rubin_dataset -C register_config.yaml

for raws:

rucio-register raws -r /rucio/disks/xrd1/rucio/test -d rubin_dataset --collections LATISS/raw/all -C register_config.yaml

Note that for raws, this is similar to how one uses the butler command

This command looks for files registered in the butler repo "/repo/main" using the "dataset-type" and "collections" arguments to query the butler. Note that the repo name's suffix is the Rucio "scope". In this example, that scope is "main".

The resulting datasets' files are registered with Rucio, as specified in the "config.yaml" file. Additionally, those files are registered with the Rucio dataset specified by the "rucio-dataset" argument.

config.yaml

The config.yaml file includes information which specifies the Rucio RSE to use, the Rucio scope, the local root of the RSE, and the URL prefix of the location where Rucio stores the files.

rucio_rse: "XRD1"
scope: "main"
rse_root: "/rucio/disks/xrd1/rucio"
dtn_url: "root://xrd1:1094//rucio"

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lsst_rucio_register-29.2.1.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lsst_rucio_register-29.2.1-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file lsst_rucio_register-29.2.1.tar.gz.

File metadata

  • Download URL: lsst_rucio_register-29.2.1.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lsst_rucio_register-29.2.1.tar.gz
Algorithm Hash digest
SHA256 b8ad2ba72e5eec41c3cdcef54a12a21d84eee020f1564db94d2692578b32c92c
MD5 8596bf2cd0848f2029f47c0ff682ad73
BLAKE2b-256 a11c3acaf3d83db13e2e54bb80b37224f6d83bd3b83fe7f6b8176ce4684e15f7

See more details on using hashes here.

File details

Details for the file lsst_rucio_register-29.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lsst_rucio_register-29.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47ae0202d3ae46041e813e71c20c5bf6bddbf2829b07d5c17ef9e1d130b0b6c7
MD5 9b21b8b580c0ca674fafa4a3c68d83b4
BLAKE2b-256 aa103ee029bb446df00c84ae848b4bea007c31e43de36ab2045d35f5d8903a63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page