Skip to content

PhEDEx to Rucio Transition

Seangchan Ryu edited this page Sep 11, 2018 · 9 revisions

PhEDEx apis used by Agent

In WMAgent we are using PhEDEx REST apis. Most of the API is wrapped in PhEDEx python wrapper

Read operation

  1. Translate lfn to pfn: lfn2pfn: https://cmsweb.cern.ch/phedex/datasvc/json/prod/lfn2pfn Parameters: (node, lfn, protocol, custodial)

    API in detail (used in WMStats)

  2. Get block locations: blockreplicas: https://cmsweb.cern.ch/phedex/datasvc/json/prod/blockreplicas

    [API in detail](https://cmsweb.cern.ch/phedex/datasvc/doc/blockreplicas

  3. Get subscriptions for block and dataset: subscriptions: https://cmsweb.cern.ch/phedex/datasvc/json/prod/blockreplicas

    [API in detail](https://cmsweb.cern.ch/phedex/datasvc/doc/subscriptions

  4. Get node mapping (find node type - butter, disk, etc): nodes: https://cmsweb.cern.ch/phedex/datasvc/json/prod/nodes

    API in detail

  5. Find files already injected by block: data: https://cmsweb.cern.ch/phedex/datasvc/json/prod/data

    API in detail

  6. Checks existing subscription requests: requestlist: https://cmsweb.cern.ch/phedex/datasvc/json/prod/requestlist

    API in detail

  7. Checks existing subscription requests and compare them in detail: transferrequests: https://cmsweb.cern.ch/phedex/datasvc/json/prod/transferrequests

    API in detail

Write operation (POST)

  1. Inject blocks in TMDB (and close blocks): inject: https://cmsweb.cern.ch/phedex/datasvc/json/prod/lfn2pfn Parameters: (node, data, strict)

    API detail

  2. Make and approve a transfer request: subscribe https://cmsweb.cern.ch/phedex/datasvc/json/prod/subscribe

    API in detail

  3. delete data: delete: https://cmsweb.cern.ch/phedex/datasvc/json/prod/delete

    API in detail (used in Tier0)

  4. Use for auto approving delete request: updaterequest: https://cmsweb.cern.ch/phedex/datasvc/json/prod/updaterequest (used in Tier0)

    API in detail

Corresponding Rucio call

Clone this wiki locally