Giter VIP home page Giter VIP logo

duneruciopolicy's People

Contributors

ivmfnal avatar jamesp-epcc avatar jamestperry avatar

Stargazers

 avatar

Watchers

 avatar

duneruciopolicy's Issues

The Path prefix should come from Rucio configuration

The Rucio prefix for the path should come from the RSE protocol prefix and not be hard coded -
https://rucio.cern.ch/documentation/client_api/rseclient#add_protocol

pfn = 'pnfs/dune/tape_backed/dunepro/' + run_type + '/' + data_tier + '/' + year + '/' + file_type + '/' + data_stream + '/' + data_campaign + '/' + hash1 + '/' + hash2 + '/' + hash3 + '/' + hash4 + '/' + filename

and

pfn = 'pnfs/dune/tape_backed/dunepro/' + run_type + '/' + data_tier + '/' + year + '/' + file_type + '/' + data_stream + '/' + data_campaign + '/' + hash1 + '/' + hash2 + '/' + hash3 + '/' + hash4 + '/' + filename

metacat get_file needs scope+name

There is a small bug in this code -

jsondata = metacat_client.get_file(name=lfn)

Metacat webui client get_file expects -

def get_file(self, name=None, namespace=None, fid=None, did=None, with_metadata = True, with_provenance=True):
    """Get one file record
    
    Parameters
    ----------
    fid : str, optional
        File id
    name : str, optional
    namespace : str, optional
        name and namespace must be specified together
    did : str, optional
        "nemaspace:name"
    with_metadata : boolean
        whether to include file metadata
    with_provenance:
        whether to include parents and children list

    Returns
    -------
    dict
        dictionary with file information or None if the file was not found

https://github.com/ivmfnal/metacat/blob/60eb2236bc732cfde3d1c533e76a4b85422d7d52/metacat/webapi/webapi.py#L633-L653

This piece of code has lfn defined as scope + name
In the lfntopfn code:

lfn = scope + ':' + name
jsondata = metacat_client.get_file(name=lfn)

lfn = scope + ':' + name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.