rucio-clients 35.7.0__py3-none-any.whl → 37.0.0rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rucio-clients might be problematic. Click here for more details.
- rucio/alembicrevision.py +1 -1
- rucio/cli/__init__.py +14 -0
- rucio/cli/account.py +216 -0
- rucio/cli/bin_legacy/__init__.py +13 -0
- rucio_clients-35.7.0.data/scripts/rucio → rucio/cli/bin_legacy/rucio.py +769 -486
- rucio_clients-35.7.0.data/scripts/rucio-admin → rucio/cli/bin_legacy/rucio_admin.py +476 -423
- rucio/cli/command.py +272 -0
- rucio/cli/config.py +72 -0
- rucio/cli/did.py +191 -0
- rucio/cli/download.py +128 -0
- rucio/cli/lifetime_exception.py +33 -0
- rucio/cli/replica.py +162 -0
- rucio/cli/rse.py +293 -0
- rucio/cli/rule.py +158 -0
- rucio/cli/scope.py +40 -0
- rucio/cli/subscription.py +73 -0
- rucio/cli/upload.py +60 -0
- rucio/cli/utils.py +226 -0
- rucio/client/accountclient.py +0 -1
- rucio/client/baseclient.py +33 -24
- rucio/client/client.py +45 -1
- rucio/client/didclient.py +5 -3
- rucio/client/downloadclient.py +6 -8
- rucio/client/replicaclient.py +0 -2
- rucio/client/richclient.py +317 -0
- rucio/client/rseclient.py +4 -4
- rucio/client/uploadclient.py +26 -12
- rucio/common/bittorrent.py +234 -0
- rucio/common/cache.py +66 -29
- rucio/common/checksum.py +168 -0
- rucio/common/client.py +122 -0
- rucio/common/config.py +22 -35
- rucio/common/constants.py +61 -3
- rucio/common/didtype.py +72 -24
- rucio/common/exception.py +65 -8
- rucio/common/extra.py +5 -10
- rucio/common/logging.py +13 -13
- rucio/common/pcache.py +8 -7
- rucio/common/plugins.py +59 -27
- rucio/common/policy.py +12 -3
- rucio/common/schema/__init__.py +84 -34
- rucio/common/schema/generic.py +0 -17
- rucio/common/schema/generic_multi_vo.py +0 -17
- rucio/common/stomp_utils.py +383 -119
- rucio/common/test_rucio_server.py +12 -6
- rucio/common/types.py +132 -52
- rucio/common/utils.py +93 -643
- rucio/rse/__init__.py +3 -3
- rucio/rse/protocols/bittorrent.py +11 -1
- rucio/rse/protocols/cache.py +0 -11
- rucio/rse/protocols/dummy.py +0 -11
- rucio/rse/protocols/gfal.py +14 -9
- rucio/rse/protocols/globus.py +1 -1
- rucio/rse/protocols/http_cache.py +1 -1
- rucio/rse/protocols/posix.py +2 -2
- rucio/rse/protocols/protocol.py +84 -317
- rucio/rse/protocols/rclone.py +2 -1
- rucio/rse/protocols/rfio.py +10 -1
- rucio/rse/protocols/ssh.py +2 -1
- rucio/rse/protocols/storm.py +2 -13
- rucio/rse/protocols/webdav.py +74 -30
- rucio/rse/protocols/xrootd.py +2 -1
- rucio/rse/rsemanager.py +170 -53
- rucio/rse/translation.py +260 -0
- rucio/vcsversion.py +4 -4
- rucio/version.py +7 -0
- {rucio_clients-35.7.0.data → rucio_clients-37.0.0rc2.data}/data/etc/rucio.cfg.atlas.client.template +3 -2
- {rucio_clients-35.7.0.data → rucio_clients-37.0.0rc2.data}/data/etc/rucio.cfg.template +3 -19
- {rucio_clients-35.7.0.data → rucio_clients-37.0.0rc2.data}/data/requirements.client.txt +11 -7
- rucio_clients-37.0.0rc2.data/scripts/rucio +133 -0
- rucio_clients-37.0.0rc2.data/scripts/rucio-admin +97 -0
- {rucio_clients-35.7.0.dist-info → rucio_clients-37.0.0rc2.dist-info}/METADATA +18 -14
- rucio_clients-37.0.0rc2.dist-info/RECORD +104 -0
- {rucio_clients-35.7.0.dist-info → rucio_clients-37.0.0rc2.dist-info}/licenses/AUTHORS.rst +3 -0
- rucio/common/schema/atlas.py +0 -413
- rucio/common/schema/belleii.py +0 -408
- rucio/common/schema/domatpc.py +0 -401
- rucio/common/schema/escape.py +0 -426
- rucio/common/schema/icecube.py +0 -406
- rucio/rse/protocols/gsiftp.py +0 -92
- rucio_clients-35.7.0.dist-info/RECORD +0 -88
- {rucio_clients-35.7.0.data → rucio_clients-37.0.0rc2.data}/data/etc/rse-accounts.cfg.template +0 -0
- {rucio_clients-35.7.0.data → rucio_clients-37.0.0rc2.data}/data/rucio_client/merge_rucio_configs.py +0 -0
- {rucio_clients-35.7.0.dist-info → rucio_clients-37.0.0rc2.dist-info}/WHEEL +0 -0
- {rucio_clients-35.7.0.dist-info → rucio_clients-37.0.0rc2.dist-info}/licenses/LICENSE +0 -0
- {rucio_clients-35.7.0.dist-info → rucio_clients-37.0.0rc2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
rucio/__init__.py,sha256=Y7cPPlHVQPFyN8bSPFC0W3WViEdONr5g_qwBub5rufE,660
|
|
2
|
+
rucio/alembicrevision.py,sha256=lNSQZYA4U_fsMW8l0dHpiV243XZhioqvVo9ihmpuQBo,690
|
|
3
|
+
rucio/vcsversion.py,sha256=heosOIa7_gLjSk_YxqG48OExgiJynGS3lFknu5geEk8,243
|
|
4
|
+
rucio/version.py,sha256=IwsNb1QQk0D092QQbR2K9wBPF2Akny1RGs-ZZziUohE,1519
|
|
5
|
+
rucio/cli/__init__.py,sha256=GIkHmxgE3xdvWSf-7ZnvVaJmbs7NokaSjbFzsrXOG9o,662
|
|
6
|
+
rucio/cli/account.py,sha256=ocazNLsYvWVu-XfMxaXAhUjU7syd68Pu6sYb6jdiSbs,9032
|
|
7
|
+
rucio/cli/command.py,sha256=_KkcaxcmN9SN3SU5Zu4KCcJY4bQqwepE18CFBuz6GNs,10676
|
|
8
|
+
rucio/cli/config.py,sha256=whh1pJ3fwaZNLlBueQJXKvtDJWu3iLddWsyD5ESS3Zo,2616
|
|
9
|
+
rucio/cli/did.py,sha256=AQb6zdqTahXE6xNMKgyCbPdpLNSNvsNE7qFrMj4DvKE,8770
|
|
10
|
+
rucio/cli/download.py,sha256=nltAf8nm8P6nrfIu0CUveY4YM6oL5nSR3w6yS4qBbw0,6248
|
|
11
|
+
rucio/cli/lifetime_exception.py,sha256=aKYYb6j7ZmazJQjg6fl5JSXggDGXME6SXrtz_blHC_Y,1468
|
|
12
|
+
rucio/cli/replica.py,sha256=I02DJ7vDVt0OFhx3fqfBL5TpYwGGG3fjDKKg1LUfOTI,8079
|
|
13
|
+
rucio/cli/rse.py,sha256=tVZ21Z8mp0JK0D9L85IxcTMRwdMFV72L-5i106w106M,11079
|
|
14
|
+
rucio/cli/rule.py,sha256=o6wpot_zLfgVT9GFwaShiuT_a1tj-VOtlT6LpZHzRRE,8690
|
|
15
|
+
rucio/cli/scope.py,sha256=p13xqbUwxem-Z5bxz9AoWf-5U4EeTrsRIDSiqGMsh3o,1514
|
|
16
|
+
rucio/cli/subscription.py,sha256=j9z07LDaxBf7YKXC_uohSocjJGx8FVHePZrq8btRrlE,4149
|
|
17
|
+
rucio/cli/upload.py,sha256=29gJGfb7jsiA6-UwPCSg1kGZu-OJ-bdxUZr27S2mJEM,3237
|
|
18
|
+
rucio/cli/utils.py,sha256=uICXhVjsmnRpwvgY7FLxTvyC_88BgH5I_v7iutix4eI,9739
|
|
19
|
+
rucio/cli/bin_legacy/__init__.py,sha256=Q91iipvMQ0VzNMuYcYQfDujZ0vL-hrB4Kmd0YrgtHGQ,618
|
|
20
|
+
rucio/cli/bin_legacy/rucio.py,sha256=cDUeMb_K38jGWmPM4oZh-s4iKLbwnEAvgGMq8wHec3g,144678
|
|
21
|
+
rucio/cli/bin_legacy/rucio_admin.py,sha256=Lw_fYlTUG-5fcTRpgcdHxDN63jyaTjZRbx8DaciQYAc,140847
|
|
22
|
+
rucio/client/__init__.py,sha256=0-jkSlrJf-eqbN4swA5a07eaWd6_6JXPQPLXMs4A3iI,660
|
|
23
|
+
rucio/client/accountclient.py,sha256=VqCtgecQA-kt33On7lm3dmab5LyLSXIvOVH3akTIzvU,17271
|
|
24
|
+
rucio/client/accountlimitclient.py,sha256=RcA9ZjUz3uhpYlBROi9j97_0Fxd9TlmDaWv_3I14s_g,6479
|
|
25
|
+
rucio/client/baseclient.py,sha256=vV-TxsIzNa0vjRisy1SSGs14epCAyx_wnYyJz5CmnlA,49724
|
|
26
|
+
rucio/client/client.py,sha256=uvGYQ9DZ1QjtfZ9NzN2nflPZOGNG5r4wOER7wSg-90g,4281
|
|
27
|
+
rucio/client/configclient.py,sha256=sCnzWOnGSYWktYud-OUnc8qVaDMiSq9I7N4uuqcTz0Y,4685
|
|
28
|
+
rucio/client/credentialclient.py,sha256=MCnuL966HPJwgxNEnk597SO7xwPEhnAIdEOeH75SOUU,2101
|
|
29
|
+
rucio/client/didclient.py,sha256=ojTV4Ox-WurCpotKCTxnc5gbHhdPIIVnOQSz1veco38,32738
|
|
30
|
+
rucio/client/diracclient.py,sha256=40XTub2kwdV4LMFOcJkly-y_622wkGlR6vefTvbULRk,2397
|
|
31
|
+
rucio/client/downloadclient.py,sha256=PXp_Tp2BxjVQPXltLaPUCs3oS3MZJBGLTRJg3ydFRm4,89259
|
|
32
|
+
rucio/client/exportclient.py,sha256=DJFJkBPYUmLTgHv6B5DAElIMhkpPl0Sz6OpTNM7WA50,1625
|
|
33
|
+
rucio/client/fileclient.py,sha256=NICwXZdIKIySYMIiiqz9nR8sQTiLjcWdk0RzAQaOD0U,1667
|
|
34
|
+
rucio/client/importclient.py,sha256=YMFZH79svGbl-riRSx4jeNGq7TVPiT57A_rcVT8qAGk,1516
|
|
35
|
+
rucio/client/lifetimeclient.py,sha256=JHeuOE81Nj7N_iwqDfpJzZwat6nMgSA_jNUEqaqzEU4,3322
|
|
36
|
+
rucio/client/lockclient.py,sha256=Fc-BVQV_nAHM8YmxN1UFqHutEl-E8uxnSlsjH7Uxjj4,4276
|
|
37
|
+
rucio/client/metaconventionsclient.py,sha256=1Wwh3y45zhr9X05MYGq5Gph85vIUKvWDJjRYvQpCSLw,5195
|
|
38
|
+
rucio/client/pingclient.py,sha256=rwb02jpKJnEioZ-lQRf04Drp_sRtXC36WsubNKtEvpg,1390
|
|
39
|
+
rucio/client/replicaclient.py,sha256=KfACI-Pkhi_bfN5hmUWvIcnq7s6C9Q9cmKQBSUG6KYE,19351
|
|
40
|
+
rucio/client/requestclient.py,sha256=L4meNVrb9jOuQjhALtBMgW0HKioMGfYlph4zEdjpreM,4615
|
|
41
|
+
rucio/client/richclient.py,sha256=kP6cHQsvCtKEl1c2fycqpDjfLrMAzaMxuZA_kWddm08,10111
|
|
42
|
+
rucio/client/rseclient.py,sha256=gRW9uEYDYqi73Ezhheb3sLlGaimJCOm85EgOO9jeLWI,29711
|
|
43
|
+
rucio/client/ruleclient.py,sha256=lppOYILWLOPBIcq8Qv-8lp9iTVjLGUMYFto3PYrGwYY,13137
|
|
44
|
+
rucio/client/scopeclient.py,sha256=CfJyM86I8BKfXLnbUOD_KjxuqMD5B0I8AQLiuNKTjag,3238
|
|
45
|
+
rucio/client/subscriptionclient.py,sha256=GgSFlube82Xv87GQ58ouWthjxsbLalWcXQywrNmh_M4,8207
|
|
46
|
+
rucio/client/touchclient.py,sha256=i_cvIAbwH9MLF2hE1o_I5w2M9jACykEFGdyypHmyBlA,2759
|
|
47
|
+
rucio/client/uploadclient.py,sha256=ux32JMceTNwZ82UL_wQpUJbI7USgMIk4ZYjmiD5KNuM,50407
|
|
48
|
+
rucio/common/__init__.py,sha256=Q91iipvMQ0VzNMuYcYQfDujZ0vL-hrB4Kmd0YrgtHGQ,618
|
|
49
|
+
rucio/common/bittorrent.py,sha256=cpz-axibeHmO-Nk3-RH5JTvF6PjvmrRY0rOCgRjmaHk,8834
|
|
50
|
+
rucio/common/cache.py,sha256=8jfk6lB_KfwV_ZQBRngTYLwJ4zpDAg1Q70o5LRGR4AU,3420
|
|
51
|
+
rucio/common/checksum.py,sha256=nSqjY8TdDGohpAzcEM2fjv4FPdOKmKr_3U27HalKkoY,5254
|
|
52
|
+
rucio/common/client.py,sha256=qhkg0JETEQR0abTQ1m0iYE5wOzfEm-s1AABFgbxqlSA,3957
|
|
53
|
+
rucio/common/config.py,sha256=7N_ck_DHQX5v9q9NU6-6PM3qF0WjyQb3XLh8ZDM9I9A,24425
|
|
54
|
+
rucio/common/constants.py,sha256=5gLwj_VCDrNegcMrQbt7ozdannSYqP1_gDrEE8YVPmI,7736
|
|
55
|
+
rucio/common/constraints.py,sha256=MrdiAwKyoaZGfspUWX_53XS2790nXMSMg1JYmTO_ciQ,726
|
|
56
|
+
rucio/common/didtype.py,sha256=dYYLIxcOjIHaDBAYSoCpmhZ-O2GTKxIi66jHiXtuVRY,8010
|
|
57
|
+
rucio/common/exception.py,sha256=U4Jnpv8QTkNmMG2scV4bYNzOqLsMnfrmiGeSH-P_B_g,34555
|
|
58
|
+
rucio/common/extra.py,sha256=IE01275vTJobyNiYbptU9NmsUl2Ga_92FSoOODV8Qfk,1054
|
|
59
|
+
rucio/common/logging.py,sha256=_G1QDFpPLghz2VXOjdhC7j-TtZBxmPJsyJtztW7mf68,15874
|
|
60
|
+
rucio/common/pcache.py,sha256=pgIfBJxXYPWlD70l8g3-CVTizk_UfzaZxE27NhTvq6w,47001
|
|
61
|
+
rucio/common/plugins.py,sha256=O6Snuhm2Tf2lyTA3cCBzSJB27RX1MY_r9mEAccrRCj4,7283
|
|
62
|
+
rucio/common/policy.py,sha256=2ByqoQQp4jpHdnnpq4-Ie7GwHslP8S9Zfu8qOqgzukU,3490
|
|
63
|
+
rucio/common/stomp_utils.py,sha256=wg-8KS5CYTf40u4uv27Hs7JmQ_Lk1kxuTtasxOC6nBg,17298
|
|
64
|
+
rucio/common/stopwatch.py,sha256=_9zxoLjr8A0wUDJsljK4vZNDCI-dIOgpcxXiCNVJcHU,1641
|
|
65
|
+
rucio/common/test_rucio_server.py,sha256=2teFpN5Pthp-zQt1_aErOURDTgOhFP9GKdEr1NMmc4o,5085
|
|
66
|
+
rucio/common/types.py,sha256=THfYyGKy7KUEvkBgAXSkdI2SxZBlsSr6E3sF9OkEms4,11764
|
|
67
|
+
rucio/common/utils.py,sha256=WOwv0mQXlcO9pVLF-OelWLLYz7zViycLizVfDcZI5kQ,61691
|
|
68
|
+
rucio/common/schema/__init__.py,sha256=2nmfxV4ps9J030fUoSiJs4OQCxiEk77rPrNeGk9xgZs,7800
|
|
69
|
+
rucio/common/schema/generic.py,sha256=NkjdxVutlRm-7AvgQf9bTW0Gb0AomuiV1iwfXOPNmIQ,15811
|
|
70
|
+
rucio/common/schema/generic_multi_vo.py,sha256=Owk9JMxycAcayTDnx-9kiXZSRBHC_jPaq79jjE1FiB0,15035
|
|
71
|
+
rucio/rse/__init__.py,sha256=imxCKNQN59aPqPhMd2yKg7mHBMFL00OkQT1Gqb8tF54,3290
|
|
72
|
+
rucio/rse/rsemanager.py,sha256=4vYikWrwCw6c3z6N2V2DaAioJPVtp_BBL5b8YLuFWDY,41037
|
|
73
|
+
rucio/rse/translation.py,sha256=qfqc4jEB1Rq6yj3xjTz3ivxT5Hg2716M8ldO1BleSDg,9013
|
|
74
|
+
rucio/rse/protocols/__init__.py,sha256=Q91iipvMQ0VzNMuYcYQfDujZ0vL-hrB4Kmd0YrgtHGQ,618
|
|
75
|
+
rucio/rse/protocols/bittorrent.py,sha256=ZBm_n7vU_NGXQaaZJWKQ-KUp6nYOMdbLqTvGuKN_LKk,7475
|
|
76
|
+
rucio/rse/protocols/cache.py,sha256=vJxwPa32TWMQSmETKJ_9ZcXmB4GS47yQGkB-d7IJAdc,4306
|
|
77
|
+
rucio/rse/protocols/dummy.py,sha256=-4drSHxyR3hTyHgqVum4ZJl2yg_ZUCSkgS_FzFUQMYg,3928
|
|
78
|
+
rucio/rse/protocols/gfal.py,sha256=rpWtR5uUV3tllkEArKDVo5xVR6TlKJvUBcdR3A0ehA0,29341
|
|
79
|
+
rucio/rse/protocols/globus.py,sha256=CsnYYEeBUslJMH7rX-DN7G3280OMrEwo_AvJ20SH6qQ,9743
|
|
80
|
+
rucio/rse/protocols/http_cache.py,sha256=UVovml9RFfLUNyCJRYkYjhDev00Dd-eahJpfmvX1VDY,3014
|
|
81
|
+
rucio/rse/protocols/mock.py,sha256=yZDK_xgC7aV9sXrbVsWOliQPS8i0SpsSFigDGy32NOk,4495
|
|
82
|
+
rucio/rse/protocols/ngarc.py,sha256=zrYMtuqRKMcK_ukXu11NZSoTYfgmiwJqyctMU1YVCl8,7224
|
|
83
|
+
rucio/rse/protocols/posix.py,sha256=jmKcFsrvFbbimKNw9WkK2R4d_XkXx_1zM-KOYa5--Ow,10435
|
|
84
|
+
rucio/rse/protocols/protocol.py,sha256=RffRogww34G62TzwFdQCfe19xrsf_G36SwlaR4U7YdE,15286
|
|
85
|
+
rucio/rse/protocols/rclone.py,sha256=beZewvum5BN1P7VvCISAdZMuPb-n-MbwBJqeSTHplVM,15293
|
|
86
|
+
rucio/rse/protocols/rfio.py,sha256=8TJ_60pWH7ragdNG9INz_oOK1LXLc-C43iENGAKfOEg,5768
|
|
87
|
+
rucio/rse/protocols/srm.py,sha256=GLij-YCb4uyTijXtFvjktdrOvzMaMVd93ujdbSf5pQ8,14689
|
|
88
|
+
rucio/rse/protocols/ssh.py,sha256=pHPAQx2bPNkMrtqbCqDfq7OXoy7XphQ-i2Stzdvnf1k,17506
|
|
89
|
+
rucio/rse/protocols/storm.py,sha256=Z4fzklxG-x70A0Lugg1jE1RicwCSeF27iz0MXO-4to0,7864
|
|
90
|
+
rucio/rse/protocols/webdav.py,sha256=nNMWEVqO1nYxJWrCVBoWLhG-XG2-ee5CL5H_MNRwkg0,24513
|
|
91
|
+
rucio/rse/protocols/xrootd.py,sha256=oJHueVR44dcW5nkg8jCbr9PetV9UIti3C0tka_m7yIk,12604
|
|
92
|
+
rucio_clients-37.0.0rc2.data/data/requirements.client.txt,sha256=uGqQvHApEbAsTgkHDqGFTmPmKtd2vL7o4rv4LO8ikjM,1790
|
|
93
|
+
rucio_clients-37.0.0rc2.data/data/etc/rse-accounts.cfg.template,sha256=IfDnXVxBPUrMnTMbJnd3P7eYHgY1C4Kfz7xKskJs-FI,543
|
|
94
|
+
rucio_clients-37.0.0rc2.data/data/etc/rucio.cfg.atlas.client.template,sha256=aHP1oX9m5yA8xVTTT2Hz6AyOYu92-Bcd5LF0i3AZRQw,1350
|
|
95
|
+
rucio_clients-37.0.0rc2.data/data/etc/rucio.cfg.template,sha256=iqtbivJDlngApmuJDiOLDQPRlxDRfljpLmiT_tzlUrM,8081
|
|
96
|
+
rucio_clients-37.0.0rc2.data/data/rucio_client/merge_rucio_configs.py,sha256=u62K1EcCGydM5nZA30zhlqWo4EX5N87b_MDkx5YfzVI,6163
|
|
97
|
+
rucio_clients-37.0.0rc2.data/scripts/rucio,sha256=xQRL_0mwut48KxOgWZexsSx9jfnaZHqSTAo7OnCHAgA,5081
|
|
98
|
+
rucio_clients-37.0.0rc2.data/scripts/rucio-admin,sha256=AhPO6-fAPviHObhB_Yi7GJXKfjpaH6m0RqxwctBeFlE,4229
|
|
99
|
+
rucio_clients-37.0.0rc2.dist-info/licenses/AUTHORS.rst,sha256=c4MEJjLcFZ5euNtPA7jGFL26javbFKpWTvxBoIs_l6w,4726
|
|
100
|
+
rucio_clients-37.0.0rc2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
101
|
+
rucio_clients-37.0.0rc2.dist-info/METADATA,sha256=Vh2EXmSlteJemY8M-AQC1xUopC7u5bWr7kLQqh2X-i0,1756
|
|
102
|
+
rucio_clients-37.0.0rc2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
103
|
+
rucio_clients-37.0.0rc2.dist-info/top_level.txt,sha256=lJM8plwW0ePPICkwFnpYzfdqHnSv6JZr1OD4JEysPgM,6
|
|
104
|
+
rucio_clients-37.0.0rc2.dist-info/RECORD,,
|
|
@@ -67,6 +67,8 @@ Individual contributors to the source code
|
|
|
67
67
|
- Aksel Lunde Aase <aksel.lunde.aase@gmail.com>, 2022
|
|
68
68
|
- Elena Gazzarrini <gazzarrini.elena@gmail.com>, 2022-2023
|
|
69
69
|
- Maximilian Linhoff, <maximilian.linhoff@tu-dortmund.de>, 2024
|
|
70
|
+
- Eric Banzuzi, <eric.banzuzi@gmail.com>, 2024
|
|
71
|
+
- Paul Millar, <paul.millar@desy.de>, 2025
|
|
70
72
|
|
|
71
73
|
Organisations employing contributors
|
|
72
74
|
------------------------------------
|
|
@@ -95,3 +97,4 @@ Organisations employing contributors
|
|
|
95
97
|
- University of Chicago (USA)
|
|
96
98
|
- Purdue University (USA)
|
|
97
99
|
- TU Dortmund University (Germany)
|
|
100
|
+
- Deutsches Elektronen-Synchrotron DESY (Germany)
|
rucio/common/schema/atlas.py
DELETED
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
# Copyright European Organization for Nuclear Research (CERN) since 2012
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
from jsonschema import ValidationError, validate
|
|
16
|
-
|
|
17
|
-
from rucio.common.exception import InvalidObject
|
|
18
|
-
|
|
19
|
-
ACCOUNT_LENGTH = 25
|
|
20
|
-
|
|
21
|
-
ACCOUNT = {"description": "Account name",
|
|
22
|
-
"type": "string",
|
|
23
|
-
"maxLength": ACCOUNT_LENGTH,
|
|
24
|
-
"pattern": "^[a-z0-9-_]+$"}
|
|
25
|
-
|
|
26
|
-
ACCOUNTS = {"description": "Array of accounts",
|
|
27
|
-
"type": "array",
|
|
28
|
-
"items": ACCOUNT,
|
|
29
|
-
"minItems": 0,
|
|
30
|
-
"maxItems": 1000}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ACCOUNT_TYPE = {"description": "Account type",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"enum": ["USER", "GROUP", "SERVICE"]}
|
|
36
|
-
|
|
37
|
-
ACTIVITY = {"description": "Activity name",
|
|
38
|
-
"type": "string",
|
|
39
|
-
"enum": ["Data Brokering", "Data Consolidation", "Data Rebalancing",
|
|
40
|
-
"Debug", "Express", "Functional Test", "Functional Test XrootD",
|
|
41
|
-
"Functional Test WebDAV", "Group Subscriptions",
|
|
42
|
-
"Production Input", "Production Output",
|
|
43
|
-
"Analysis Input", "Analysis Output", "Staging",
|
|
44
|
-
"T0 Export", "T0 Tape", "Upload/Download (Job)",
|
|
45
|
-
"Upload/Download (User)", "User Subscriptions",
|
|
46
|
-
"Globus Online Test", "Data Challenge"]}
|
|
47
|
-
|
|
48
|
-
SCOPE_LENGTH = 25
|
|
49
|
-
|
|
50
|
-
SCOPE = {"description": "Scope name",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"maxLength": SCOPE_LENGTH,
|
|
53
|
-
"pattern": "^[a-zA-Z_\\-.0-9]+$"}
|
|
54
|
-
|
|
55
|
-
R_SCOPE = {"description": "Scope name",
|
|
56
|
-
"type": "string",
|
|
57
|
-
"pattern": "\\w"}
|
|
58
|
-
|
|
59
|
-
NAME_LENGTH = 250
|
|
60
|
-
|
|
61
|
-
NAME = {"description": "Data Identifier name",
|
|
62
|
-
"type": "string",
|
|
63
|
-
"maxLength": NAME_LENGTH,
|
|
64
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9\\.\\-\\_]*$"}
|
|
65
|
-
|
|
66
|
-
R_NAME = {"description": "Data Identifier name",
|
|
67
|
-
"type": "string",
|
|
68
|
-
"pattern": "\\w"}
|
|
69
|
-
|
|
70
|
-
LOCKED = {"description": "Rule locked status",
|
|
71
|
-
"type": ["boolean", "null"]}
|
|
72
|
-
|
|
73
|
-
ASK_APPROVAL = {"description": "Rule approval request",
|
|
74
|
-
"type": ["boolean", "null"]}
|
|
75
|
-
|
|
76
|
-
ASYNCHRONOUS = {"description": "Asynchronous rule creation",
|
|
77
|
-
"type": ["boolean", "null"]}
|
|
78
|
-
|
|
79
|
-
DELAY_INJECTION = {"description": "Time (in seconds) to wait before starting applying the rule. Implies asynchronous rule creation.",
|
|
80
|
-
"type": ["integer", "null"]}
|
|
81
|
-
|
|
82
|
-
PURGE_REPLICAS = {"description": "Rule purge replica status",
|
|
83
|
-
"type": "boolean"}
|
|
84
|
-
|
|
85
|
-
IGNORE_AVAILABILITY = {"description": "Rule ignore availability status",
|
|
86
|
-
"type": "boolean"}
|
|
87
|
-
|
|
88
|
-
RSE = {"description": "RSE name",
|
|
89
|
-
"type": "string",
|
|
90
|
-
"pattern": "^([A-Z0-9]+([_-][A-Z0-9]+)*)$"}
|
|
91
|
-
|
|
92
|
-
RSE_ATTRIBUTE = {"description": "RSE attribute",
|
|
93
|
-
"type": "string",
|
|
94
|
-
"pattern": r'([A-Za-z0-9\._-]+[=<>][A-Za-z0-9_-]+)'}
|
|
95
|
-
|
|
96
|
-
DEFAULT_RSE_ATTRIBUTE = {"description": "Default RSE attribute",
|
|
97
|
-
"type": "string",
|
|
98
|
-
"pattern": r'([A-Z0-9]+([_-][A-Z0-9]+)*)'}
|
|
99
|
-
|
|
100
|
-
REPLICA_STATE = {"description": "Replica state",
|
|
101
|
-
"type": "string",
|
|
102
|
-
"enum": ["AVAILABLE", "UNAVAILABLE", "COPYING", "BEING_DELETED", "BAD", "SOURCE", "A", "U", "C", "B", "D", "S"]}
|
|
103
|
-
|
|
104
|
-
DATE = {"description": "Date",
|
|
105
|
-
"type": "string",
|
|
106
|
-
"pattern": r'((Mon)|(Tue)|(Wed)|(Thu)|(Fri)|(Sat)|(Sun))[,]\s\d{2}\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s(0\d|1\d|2[0-3])(\:)(0\d|1\d|2\d|3\d|4\d|5\d)(\:)(0\d|1\d|2\d|3\d|4\d|5\d)\s(UTC)'}
|
|
107
|
-
|
|
108
|
-
DID_TYPE = {"description": "DID type",
|
|
109
|
-
"type": "string",
|
|
110
|
-
"enum": ["DATASET", "CONTAINER", "FILE", "F"]}
|
|
111
|
-
|
|
112
|
-
GROUPING = {"description": "Rule grouping",
|
|
113
|
-
"type": ["string", "null"],
|
|
114
|
-
"enum": ["DATASET", "NONE", "ALL", None]}
|
|
115
|
-
|
|
116
|
-
NOTIFY = {"description": "Rule notification setting",
|
|
117
|
-
"type": ["string", "null"],
|
|
118
|
-
"enum": ["Y", "C", "N", "P", None]}
|
|
119
|
-
|
|
120
|
-
COMMENT = {"description": "Rule comment",
|
|
121
|
-
"type": ["string", "null"],
|
|
122
|
-
"maxLength": 250}
|
|
123
|
-
|
|
124
|
-
METADATA = {"description": "Rule wfms metadata",
|
|
125
|
-
"type": ["string", "null"],
|
|
126
|
-
"maxLength": 3999}
|
|
127
|
-
|
|
128
|
-
BYTES = {"description": "Size in bytes",
|
|
129
|
-
"type": "integer"}
|
|
130
|
-
|
|
131
|
-
ADLER32 = {"description": "adler32",
|
|
132
|
-
"type": "string",
|
|
133
|
-
"pattern": "^[a-fA-F\\d]{8}$"}
|
|
134
|
-
|
|
135
|
-
WEIGHT = {"description": "Rule weight",
|
|
136
|
-
"type": ["string", "null"]}
|
|
137
|
-
|
|
138
|
-
MD5 = {"description": "md5",
|
|
139
|
-
"type": "string",
|
|
140
|
-
"pattern": "^[a-fA-F\\d]{32}$"}
|
|
141
|
-
|
|
142
|
-
UUID = {"description": "Universally Unique Identifier (UUID)",
|
|
143
|
-
"type": "string",
|
|
144
|
-
"pattern": '^(\\{){0,1}[0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}(\\}){0,1}$'}
|
|
145
|
-
|
|
146
|
-
META = {"description": "Data Identifier(DID) metadata",
|
|
147
|
-
"type": "object",
|
|
148
|
-
"properties": {"guid": UUID},
|
|
149
|
-
"additionalProperties": True}
|
|
150
|
-
|
|
151
|
-
PFN = {"description": "Physical File Name", "type": "string"}
|
|
152
|
-
|
|
153
|
-
COPIES = {"description": "Number of replica copies", "type": "integer"}
|
|
154
|
-
|
|
155
|
-
RSE_EXPRESSION = {"description": "RSE expression", "type": "string"}
|
|
156
|
-
|
|
157
|
-
SOURCE_REPLICA_EXPRESSION = {"description": "RSE expression", "type": ["string", "null"]}
|
|
158
|
-
|
|
159
|
-
LIFETIME = {"description": "Lifetime", "type": "number"}
|
|
160
|
-
|
|
161
|
-
RULE_LIFETIME = {"description": "Rule lifetime", "type": ["number", "null"]}
|
|
162
|
-
|
|
163
|
-
SUBSCRIPTION_ID = {"description": "Rule Subscription id", "type": ["string", "null"]}
|
|
164
|
-
|
|
165
|
-
PRIORITY = {"description": "Priority of the transfers",
|
|
166
|
-
"type": "integer"}
|
|
167
|
-
|
|
168
|
-
SPLIT_CONTAINER = {"description": "Rule split container mode",
|
|
169
|
-
"type": ["boolean", "null"]}
|
|
170
|
-
|
|
171
|
-
RULE = {"description": "Replication rule",
|
|
172
|
-
"type": "object",
|
|
173
|
-
"properties": {"dids": {"type": "array"},
|
|
174
|
-
"account": ACCOUNT,
|
|
175
|
-
"copies": COPIES,
|
|
176
|
-
"rse_expression": RSE_EXPRESSION,
|
|
177
|
-
"grouping": GROUPING,
|
|
178
|
-
"weight": WEIGHT,
|
|
179
|
-
"lifetime": RULE_LIFETIME,
|
|
180
|
-
"locked": LOCKED,
|
|
181
|
-
"subscription_id": SUBSCRIPTION_ID,
|
|
182
|
-
"source_replica_expression": SOURCE_REPLICA_EXPRESSION,
|
|
183
|
-
"activity": ACTIVITY,
|
|
184
|
-
"notify": NOTIFY,
|
|
185
|
-
"purge_replicas": PURGE_REPLICAS,
|
|
186
|
-
"ignore_availability": IGNORE_AVAILABILITY,
|
|
187
|
-
"comment": COMMENT,
|
|
188
|
-
"ask_approval": ASK_APPROVAL,
|
|
189
|
-
"asynchronous": ASYNCHRONOUS,
|
|
190
|
-
"delay_injection": DELAY_INJECTION,
|
|
191
|
-
"priority": PRIORITY,
|
|
192
|
-
'split_container': SPLIT_CONTAINER,
|
|
193
|
-
'meta': METADATA},
|
|
194
|
-
"required": ["dids", "copies", "rse_expression"],
|
|
195
|
-
"additionalProperties": False}
|
|
196
|
-
|
|
197
|
-
RULES = {"description": "Array of replication rules",
|
|
198
|
-
"type": "array",
|
|
199
|
-
"items": RULE,
|
|
200
|
-
"minItems": 1,
|
|
201
|
-
"maxItems": 1000}
|
|
202
|
-
|
|
203
|
-
COLLECTION_TYPE = {"description": "Dataset or container type",
|
|
204
|
-
"type": "string",
|
|
205
|
-
"enum": ["DATASET", "CONTAINER"]}
|
|
206
|
-
|
|
207
|
-
COLLECTION = {"description": "Dataset or container",
|
|
208
|
-
"type": "object",
|
|
209
|
-
"properties": {"scope": SCOPE,
|
|
210
|
-
"name": NAME,
|
|
211
|
-
"type": COLLECTION_TYPE,
|
|
212
|
-
"meta": META,
|
|
213
|
-
"rules": RULES},
|
|
214
|
-
"required": ["scope", "name", "type"],
|
|
215
|
-
"additionalProperties": False}
|
|
216
|
-
|
|
217
|
-
COLLECTIONS = {"description": "Array of datasets or containers",
|
|
218
|
-
"type": "array",
|
|
219
|
-
"items": COLLECTION,
|
|
220
|
-
"minItems": 1,
|
|
221
|
-
"maxItems": 1000}
|
|
222
|
-
|
|
223
|
-
DID = {"description": "Data Identifier(DID)",
|
|
224
|
-
"type": "object",
|
|
225
|
-
"properties": {"scope": SCOPE,
|
|
226
|
-
"name": NAME,
|
|
227
|
-
"type": DID_TYPE,
|
|
228
|
-
"meta": META,
|
|
229
|
-
"rules": RULES,
|
|
230
|
-
"bytes": BYTES,
|
|
231
|
-
"adler32": ADLER32,
|
|
232
|
-
"md5": MD5,
|
|
233
|
-
"state": REPLICA_STATE,
|
|
234
|
-
"pfn": PFN},
|
|
235
|
-
"required": ["scope", "name"],
|
|
236
|
-
"additionalProperties": False}
|
|
237
|
-
|
|
238
|
-
DID_FILTERS = {"description": "Array to filter DIDs by metadata",
|
|
239
|
-
"type": "array",
|
|
240
|
-
"additionalProperties": True}
|
|
241
|
-
|
|
242
|
-
R_DID = {"description": "Data Identifier(DID)",
|
|
243
|
-
"type": "object",
|
|
244
|
-
"properties": {"scope": R_SCOPE,
|
|
245
|
-
"name": R_NAME,
|
|
246
|
-
"type": DID_TYPE,
|
|
247
|
-
"meta": META,
|
|
248
|
-
"rules": RULES,
|
|
249
|
-
"bytes": BYTES,
|
|
250
|
-
"adler32": ADLER32,
|
|
251
|
-
"md5": MD5,
|
|
252
|
-
"state": REPLICA_STATE,
|
|
253
|
-
"pfn": PFN},
|
|
254
|
-
"required": ["scope", "name"],
|
|
255
|
-
"additionalProperties": False}
|
|
256
|
-
|
|
257
|
-
DIDS = {"description": "Array of Data Identifiers(DIDs)",
|
|
258
|
-
"type": "array",
|
|
259
|
-
"items": DID,
|
|
260
|
-
"minItems": 1,
|
|
261
|
-
"maxItems": 1000}
|
|
262
|
-
|
|
263
|
-
R_DIDS = {"description": "Array of Data Identifiers(DIDs)",
|
|
264
|
-
"type": "array",
|
|
265
|
-
"items": R_DID,
|
|
266
|
-
"minItems": 1,
|
|
267
|
-
"maxItems": 1000}
|
|
268
|
-
|
|
269
|
-
ATTACHMENT = {"description": "Attachement",
|
|
270
|
-
"type": "object",
|
|
271
|
-
"properties": {"scope": SCOPE,
|
|
272
|
-
"name": NAME,
|
|
273
|
-
"rse": {"description": "RSE name",
|
|
274
|
-
"type": ["string", "null"],
|
|
275
|
-
"pattern": "^([A-Z0-9]+([_-][A-Z0-9]+)*)$"},
|
|
276
|
-
"dids": DIDS},
|
|
277
|
-
"required": ["dids"],
|
|
278
|
-
"additionalProperties": False}
|
|
279
|
-
|
|
280
|
-
ATTACHMENTS = {"description": "Array of attachments",
|
|
281
|
-
"type": "array",
|
|
282
|
-
"items": ATTACHMENT,
|
|
283
|
-
"minItems": 1,
|
|
284
|
-
"maxItems": 1000}
|
|
285
|
-
|
|
286
|
-
SUBSCRIPTION_FILTER = {"type": "object",
|
|
287
|
-
"properties": {"datatype": {"type": "array"},
|
|
288
|
-
"prod_step": {"type": "array"},
|
|
289
|
-
"stream_name": {"type": "array"},
|
|
290
|
-
"project": {"type": "array"},
|
|
291
|
-
"scope": {"type": "array"},
|
|
292
|
-
"pattern": {"type": "string"},
|
|
293
|
-
"excluded_pattern": {"type": "string"},
|
|
294
|
-
"group": {"type": "string"},
|
|
295
|
-
"provenance": {"type": "string"},
|
|
296
|
-
"account": ACCOUNTS,
|
|
297
|
-
"grouping": {"type": "string"},
|
|
298
|
-
"split_rule": {"type": "boolean"}}}
|
|
299
|
-
|
|
300
|
-
ADD_REPLICA_FILE = {"description": "add replica file",
|
|
301
|
-
"type": "object",
|
|
302
|
-
"properties": {"scope": SCOPE,
|
|
303
|
-
"name": NAME,
|
|
304
|
-
"bytes": BYTES,
|
|
305
|
-
"adler32": ADLER32},
|
|
306
|
-
"required": ["scope", "name", "bytes", "adler32"]}
|
|
307
|
-
|
|
308
|
-
ADD_REPLICA_FILES = {"description": "add replica files",
|
|
309
|
-
"type": "array",
|
|
310
|
-
"items": ADD_REPLICA_FILE,
|
|
311
|
-
"minItems": 1,
|
|
312
|
-
"maxItems": 1000}
|
|
313
|
-
|
|
314
|
-
CACHE_ADD_REPLICAS = {"description": "rucio cache add replicas",
|
|
315
|
-
"type": "object",
|
|
316
|
-
"properties": {"files": ADD_REPLICA_FILES,
|
|
317
|
-
"rse": RSE,
|
|
318
|
-
"lifetime": LIFETIME,
|
|
319
|
-
"operation": {"enum": ["add_replicas"]}},
|
|
320
|
-
"required": ['files', 'rse', 'lifetime', 'operation']}
|
|
321
|
-
|
|
322
|
-
DELETE_REPLICA_FILE = {"description": "delete replica file",
|
|
323
|
-
"type": "object",
|
|
324
|
-
"properties": {"scope": SCOPE,
|
|
325
|
-
"name": NAME},
|
|
326
|
-
"required": ["scope", "name"]}
|
|
327
|
-
|
|
328
|
-
DELETE_REPLICA_FILES = {"description": "delete replica files",
|
|
329
|
-
"type": "array",
|
|
330
|
-
"items": DELETE_REPLICA_FILE,
|
|
331
|
-
"minItems": 1,
|
|
332
|
-
"maxItems": 1000}
|
|
333
|
-
|
|
334
|
-
CACHE_DELETE_REPLICAS = {"description": "rucio cache delete replicas",
|
|
335
|
-
"type": "object",
|
|
336
|
-
"properties": {"files": DELETE_REPLICA_FILES,
|
|
337
|
-
"rse": RSE,
|
|
338
|
-
"operation": {"enum": ["delete_replicas"]}},
|
|
339
|
-
"required": ['files', 'rse', 'operation']}
|
|
340
|
-
|
|
341
|
-
MESSAGE_OPERATION = {"type": "object",
|
|
342
|
-
"properties": {'operation': {"enum": ["add_replicas", "delete_replicas"]}}}
|
|
343
|
-
|
|
344
|
-
ACCOUNT_ATTRIBUTE = {"description": "Account attribute",
|
|
345
|
-
"type": "string",
|
|
346
|
-
"pattern": r'^[a-zA-Z0-9-_\\/\\.]{1,30}$'}
|
|
347
|
-
|
|
348
|
-
SCOPE_NAME_REGEXP = '/(.*)/(.*)'
|
|
349
|
-
|
|
350
|
-
DISTANCE = {"description": "RSE distance",
|
|
351
|
-
"type": "object",
|
|
352
|
-
"properties": {
|
|
353
|
-
"src_rse_id": {"type": "string"},
|
|
354
|
-
"dest_rse_id": {"type": "string"},
|
|
355
|
-
"ranking": {"type": "integer"}
|
|
356
|
-
},
|
|
357
|
-
"required": ["src_rse_id", "dest_rse_id", "ranking"],
|
|
358
|
-
"additionalProperties": True}
|
|
359
|
-
|
|
360
|
-
IMPORT = {"description": "import data into rucio.",
|
|
361
|
-
"type": "object",
|
|
362
|
-
"properties": {
|
|
363
|
-
"rses": {
|
|
364
|
-
"type": "object"
|
|
365
|
-
},
|
|
366
|
-
"distances": {
|
|
367
|
-
"type": "object"
|
|
368
|
-
}
|
|
369
|
-
}}
|
|
370
|
-
|
|
371
|
-
VO = {"description": "VO tag",
|
|
372
|
-
"type": "string",
|
|
373
|
-
"pattern": "^([a-zA-Z_\\-.0-9]{3})?$"}
|
|
374
|
-
|
|
375
|
-
SCHEMAS = {'account': ACCOUNT,
|
|
376
|
-
'account_type': ACCOUNT_TYPE,
|
|
377
|
-
'activity': ACTIVITY,
|
|
378
|
-
'name': NAME,
|
|
379
|
-
'r_name': R_NAME,
|
|
380
|
-
'rse': RSE,
|
|
381
|
-
'rse_attribute': RSE_ATTRIBUTE,
|
|
382
|
-
'scope': SCOPE,
|
|
383
|
-
'r_scope': R_SCOPE,
|
|
384
|
-
'did': DID,
|
|
385
|
-
'did_filters': DID_FILTERS,
|
|
386
|
-
'r_did': R_DID,
|
|
387
|
-
'dids': DIDS,
|
|
388
|
-
'rule': RULE,
|
|
389
|
-
'r_dids': R_DIDS,
|
|
390
|
-
'collection': COLLECTION,
|
|
391
|
-
'collections': COLLECTIONS,
|
|
392
|
-
'attachment': ATTACHMENT,
|
|
393
|
-
'attachments': ATTACHMENTS,
|
|
394
|
-
'subscription_filter': SUBSCRIPTION_FILTER,
|
|
395
|
-
'cache_add_replicas': CACHE_ADD_REPLICAS,
|
|
396
|
-
'cache_delete_replicas': CACHE_DELETE_REPLICAS,
|
|
397
|
-
'account_attribute': ACCOUNT_ATTRIBUTE,
|
|
398
|
-
'import': IMPORT,
|
|
399
|
-
'vo': VO}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
def validate_schema(name, obj):
|
|
403
|
-
"""
|
|
404
|
-
Validate object against json schema
|
|
405
|
-
|
|
406
|
-
:param name: The json schema name.
|
|
407
|
-
:param obj: The object to validate.
|
|
408
|
-
"""
|
|
409
|
-
try:
|
|
410
|
-
if obj:
|
|
411
|
-
validate(obj, SCHEMAS.get(name, {}))
|
|
412
|
-
except ValidationError as error: # NOQA, pylint: disable=W0612
|
|
413
|
-
raise InvalidObject(f'Problem validating {name}: {error}')
|