rucio-clients 34.0.0rc2__tar.gz → 34.2.0__tar.gz
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-clients-34.0.0rc2 → rucio_clients-34.2.0}/PKG-INFO +1 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/bin/rucio +24 -16
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/bin/rucio-admin +24 -14
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/__init__.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/alembicrevision.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/__init__.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/accountclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/accountlimitclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/baseclient.py +158 -139
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/client.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/configclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/credentialclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/didclient.py +22 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/diracclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/downloadclient.py +6 -8
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/exportclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/fileclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/importclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/lifetimeclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/lockclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/metaconventionsclient.py +6 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/pingclient.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/replicaclient.py +2 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/requestclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/rseclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/ruleclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/scopeclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/subscriptionclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/touchclient.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/client/uploadclient.py +17 -8
- {rucio-clients-34.0.0rc2/lib/rucio/rse/protocols → rucio_clients-34.2.0/lib/rucio/common}/__init__.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/cache.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/config.py +12 -11
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/constants.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/constraints.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/didtype.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/exception.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/extra.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/logging.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/pcache.py +4 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/plugins.py +2 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/policy.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/__init__.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/atlas.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/belleii.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/cms.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/domatpc.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/escape.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/generic.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/generic_multi_vo.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/icecube.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/schema/lsst.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/stomp_utils.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/stopwatch.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/test_rucio_server.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/types.py +6 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/common/utils.py +17 -18
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/__init__.py +3 -4
- {rucio-clients-34.0.0rc2/lib/rucio/common → rucio_clients-34.2.0/lib/rucio/rse/protocols}/__init__.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/bittorrent.py +3 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/cache.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/dummy.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/gfal.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/globus.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/gsiftp.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/http_cache.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/mock.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/ngarc.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/posix.py +4 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/protocol.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/rclone.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/rfio.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/srm.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/ssh.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/storm.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/webdav.py +5 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/protocols/xrootd.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/rse/rsemanager.py +2 -4
- rucio_clients-34.2.0/lib/rucio/vcsversion.py +11 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio/version.py +4 -5
- rucio_clients-34.2.0/pyproject.toml +61 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/setup.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/setuputil.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_abacus_account.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_abacus_collection_replica.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_abacus_rse.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_account.py +3 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_account_limits.py +1 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_api_external_representation.py +4 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_archive.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_auditor.py +2 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_auditor_hdfs.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_auditor_srmdumps.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_authentication.py +6 -8
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_automatix.py +3 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_bad_replica.py +8 -11
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_bb8.py +9 -9
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_belleii.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_bin_rucio.py +14 -11
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_boolean.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_clients.py +68 -18
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_common_types.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_config.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_conveyor.py +22 -21
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_conveyor_submitter.py +26 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_counter.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_credential.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_curl.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_daemons.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_dataset_replicas.py +5 -7
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_db.py +4 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_did.py +83 -12
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_did_meta_plugins.py +3 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_didtype.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_download.py +2 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_dumper.py +4 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_dumper_consistency.py +1 -7
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_dumper_data_model.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_dumper_path_parsing.py +2 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_filter_engine.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_heartbeat.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_hermes.py +4 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_identity.py +3 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_impl_upload_download.py +3 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_import_export.py +7 -10
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_judge_cleaner.py +3 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_judge_evaluator.py +3 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_judge_injector.py +5 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_judge_repairer.py +7 -8
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_lifetime.py +6 -8
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_message.py +3 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_meta_conventions.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_meta_did.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_module_import.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_monitor.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_multi_vo.py +10 -10
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_naming_convention.py +1 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_oauthmanager.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_oidc.py +5 -10
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_permission.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_pfns.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_ping.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_preparer.py +4 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_qos.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_quarantined_replica.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_reaper.py +5 -7
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_redirect.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_replica.py +8 -15
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_replica_recoverer.py +5 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_replica_sorting.py +6 -6
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_request.py +4 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_root_proxy.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse.py +27 -19
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_expression_parser.py +2 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_lfn2path.py +1 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_gfal2.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_gfal2_impl.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_posix.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_rclone.py +3 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_rsync.py +3 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_srm.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_ssh.py +3 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_webdav.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_protocol_xrootd.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rse_selector.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rucio_server.py +0 -1
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_rule.py +44 -17
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_schema_cms.py +0 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_scope.py +3 -4
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_subscription.py +25 -28
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_throttler.py +14 -8
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_tpc.py +9 -10
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_trace.py +5 -5
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_transfer.py +11 -11
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_transfer_plugins.py +7 -10
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_undertaker.py +2 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_upload.py +2 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tests/test_utils.py +1 -2
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/tools/merge_rucio_configs.py +2 -5
- rucio-clients-34.0.0rc2/lib/rucio/vcsversion.py +0 -11
- rucio-clients-34.0.0rc2/pyproject.toml +0 -3
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/AUTHORS.rst +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/ChangeLog +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/LICENSE +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/MANIFEST.in +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/README.rst +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/etc/rse-accounts.cfg.template +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/etc/rucio.cfg.atlas.client.template +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/etc/rucio.cfg.template +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/lib/rucio_clients.egg-info/SOURCES.txt +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/pylintrc +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/requirements.txt +0 -0
- {rucio-clients-34.0.0rc2 → rucio_clients-34.2.0}/setup.cfg +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
2
|
# Copyright European Organization for Nuclear Research (CERN) since 2012
|
|
4
3
|
#
|
|
5
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -27,27 +26,40 @@ import time
|
|
|
27
26
|
import traceback
|
|
28
27
|
import unittest
|
|
29
28
|
import uuid
|
|
29
|
+
from configparser import NoOptionError, NoSectionError
|
|
30
30
|
from copy import deepcopy
|
|
31
31
|
from datetime import datetime
|
|
32
32
|
from functools import wraps
|
|
33
33
|
|
|
34
|
-
from configparser import NoOptionError, NoSectionError
|
|
35
34
|
from tabulate import tabulate
|
|
36
35
|
|
|
37
36
|
# rucio module has the same name as this executable module, so this rule fails. pylint: disable=no-name-in-module
|
|
38
37
|
from rucio import version
|
|
39
38
|
from rucio.client import Client
|
|
40
39
|
from rucio.common.config import config_get, config_get_float
|
|
41
|
-
from rucio.common.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
from rucio.common.constants import ReplicaState
|
|
41
|
+
from rucio.common.exception import (
|
|
42
|
+
AccessDenied,
|
|
43
|
+
CannotAuthenticate,
|
|
44
|
+
DataIdentifierAlreadyExists,
|
|
45
|
+
DataIdentifierNotFound,
|
|
46
|
+
DIDFilterSyntaxError,
|
|
47
|
+
DuplicateContent,
|
|
48
|
+
DuplicateCriteriaInDIDFilter,
|
|
49
|
+
DuplicateRule,
|
|
50
|
+
InputValidationError,
|
|
51
|
+
InvalidObject,
|
|
52
|
+
InvalidRSEExpression,
|
|
53
|
+
InvalidType,
|
|
54
|
+
MissingDependency,
|
|
55
|
+
RSENotFound,
|
|
56
|
+
RucioException,
|
|
57
|
+
RuleNotFound,
|
|
58
|
+
UnsupportedOperation,
|
|
59
|
+
)
|
|
46
60
|
from rucio.common.extra import import_extras
|
|
47
61
|
from rucio.common.test_rucio_server import TestRucioServer
|
|
48
|
-
from rucio.common.utils import
|
|
49
|
-
parse_did_filter_from_string_fe, extract_scope, setup_logger, StoreAndDeprecateWarningAction
|
|
50
|
-
from rucio.common.constants import ReplicaState
|
|
62
|
+
from rucio.common.utils import Color, StoreAndDeprecateWarningAction, chunks, detect_client_location, extract_scope, parse_did_filter_from_string, parse_did_filter_from_string_fe, setup_logger, sizefmt
|
|
51
63
|
|
|
52
64
|
EXTRA_MODULES = import_extras(['argcomplete'])
|
|
53
65
|
|
|
@@ -488,7 +500,7 @@ def attach(args):
|
|
|
488
500
|
try:
|
|
489
501
|
f = open(dids[0], 'r')
|
|
490
502
|
dids = [did.rstrip() for did in f.readlines()]
|
|
491
|
-
except
|
|
503
|
+
except OSError:
|
|
492
504
|
logger.error("Can't open file '" + dids[0] + "'.")
|
|
493
505
|
return FAILURE
|
|
494
506
|
|
|
@@ -1139,7 +1151,7 @@ def set_metadata(args):
|
|
|
1139
1151
|
client = get_client(args)
|
|
1140
1152
|
value = args.value
|
|
1141
1153
|
if args.key == 'lifetime':
|
|
1142
|
-
value = float(args.value)
|
|
1154
|
+
value = None if args.value.lower() == 'none' else float(args.value)
|
|
1143
1155
|
scope, name = get_scope(args.did, client)
|
|
1144
1156
|
client.set_metadata(scope=scope, name=name, key=args.key, value=value)
|
|
1145
1157
|
return SUCCESS
|
|
@@ -1334,9 +1346,6 @@ def info_rule(args):
|
|
|
1334
1346
|
|
|
1335
1347
|
Retrieve information about a rule.
|
|
1336
1348
|
"""
|
|
1337
|
-
if args.estimate_ttc:
|
|
1338
|
-
logger.error('"--estimate-ttc" is deprecated!')
|
|
1339
|
-
return FAILURE
|
|
1340
1349
|
client = get_client(args)
|
|
1341
1350
|
if args.examine:
|
|
1342
1351
|
analysis = client.examine_replication_rule(rule_id=args.rule_id)
|
|
@@ -2352,7 +2361,6 @@ You can filter by key/value, e.g.::
|
|
|
2352
2361
|
info_rule_parser.set_defaults(function=info_rule)
|
|
2353
2362
|
info_rule_parser.add_argument(dest='rule_id', action='store', help='The rule ID')
|
|
2354
2363
|
info_rule_parser.add_argument('--examine', dest='examine', action='store_true', help='Detailed analysis of transfer errors')
|
|
2355
|
-
info_rule_parser.add_argument('--estimate-ttc', dest='estimate_ttc', action='store_true', help='Deprecated, specifying this will cause the program to fail.')
|
|
2356
2364
|
|
|
2357
2365
|
# The list_rules command
|
|
2358
2366
|
list_rules_parser = subparsers.add_parser('list-rules', help='List replication rules.', formatter_class=argparse.RawDescriptionHelpFormatter, epilog='''Usage example
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
2
|
# Copyright European Organization for Nuclear Research (CERN) since 2012
|
|
4
3
|
#
|
|
5
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -25,25 +24,36 @@ import signal
|
|
|
25
24
|
import sys
|
|
26
25
|
import time
|
|
27
26
|
import traceback
|
|
28
|
-
from
|
|
27
|
+
from configparser import NoOptionError, NoSectionError
|
|
29
28
|
from functools import wraps
|
|
29
|
+
from textwrap import dedent
|
|
30
30
|
|
|
31
|
-
from configparser import NoOptionError, NoSectionError
|
|
32
31
|
from tabulate import tabulate
|
|
33
32
|
|
|
34
33
|
from rucio import version
|
|
35
34
|
from rucio.client import Client
|
|
36
35
|
from rucio.common.config import config_get
|
|
37
|
-
from rucio.common.exception import (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
from rucio.common.exception import (
|
|
37
|
+
AccessDenied,
|
|
38
|
+
AccountNotFound,
|
|
39
|
+
CannotAuthenticate,
|
|
40
|
+
ConfigNotFound,
|
|
41
|
+
DataIdentifierAlreadyExists,
|
|
42
|
+
DataIdentifierNotFound,
|
|
43
|
+
Duplicate,
|
|
44
|
+
DuplicateContent,
|
|
45
|
+
InputValidationError,
|
|
46
|
+
InvalidObject,
|
|
47
|
+
InvalidRSEExpression,
|
|
48
|
+
ReplicaIsLocked,
|
|
49
|
+
ReplicaNotFound,
|
|
50
|
+
RSENotFound,
|
|
51
|
+
RSEOperationNotSupported,
|
|
52
|
+
RuleNotFound,
|
|
53
|
+
ScopeNotFound,
|
|
54
|
+
)
|
|
43
55
|
from rucio.common.extra import import_extras
|
|
44
|
-
from rucio.common.utils import
|
|
45
|
-
render_json, parse_response, extract_scope, clean_surls,
|
|
46
|
-
StoreAndDeprecateWarningAction)
|
|
56
|
+
from rucio.common.utils import StoreAndDeprecateWarningAction, chunks, clean_surls, construct_surl, extract_scope, get_bytes_value_from_string, parse_response, render_json, sizefmt
|
|
47
57
|
from rucio.rse import rsemanager as rsemgr
|
|
48
58
|
|
|
49
59
|
EXTRA_MODULES = import_extras(['argcomplete'])
|
|
@@ -1277,7 +1287,7 @@ def import_data(args):
|
|
|
1277
1287
|
print('There was problem with decoding your file.')
|
|
1278
1288
|
print(error)
|
|
1279
1289
|
return FAILURE
|
|
1280
|
-
except
|
|
1290
|
+
except OSError as error:
|
|
1281
1291
|
print('There was a problem with reading your file.')
|
|
1282
1292
|
print(error)
|
|
1283
1293
|
return FAILURE
|
|
@@ -1309,7 +1319,7 @@ def export_data(args):
|
|
|
1309
1319
|
print('File successfully written.')
|
|
1310
1320
|
print('Data successfully exported to %s' % args.file_path)
|
|
1311
1321
|
return SUCCESS
|
|
1312
|
-
except
|
|
1322
|
+
except OSError as error:
|
|
1313
1323
|
print('There was a problem with reading your file.')
|
|
1314
1324
|
print(error)
|
|
1315
1325
|
return FAILURE
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
1
|
# Copyright European Organization for Nuclear Research (CERN) since 2012
|
|
3
2
|
#
|
|
4
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -18,8 +17,7 @@ from urllib.parse import quote_plus
|
|
|
18
17
|
|
|
19
18
|
from requests.status_codes import codes
|
|
20
19
|
|
|
21
|
-
from rucio.client.baseclient import BaseClient
|
|
22
|
-
from rucio.client.baseclient import choice
|
|
20
|
+
from rucio.client.baseclient import BaseClient, choice
|
|
23
21
|
from rucio.common.utils import build_url
|
|
24
22
|
|
|
25
23
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
1
|
# Copyright European Organization for Nuclear Research (CERN) since 2012
|
|
3
2
|
#
|
|
4
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -18,8 +17,7 @@ from urllib.parse import quote_plus
|
|
|
18
17
|
|
|
19
18
|
from requests.status_codes import codes
|
|
20
19
|
|
|
21
|
-
from rucio.client.baseclient import BaseClient
|
|
22
|
-
from rucio.client.baseclient import choice
|
|
20
|
+
from rucio.client.baseclient import BaseClient, choice
|
|
23
21
|
from rucio.common.utils import build_url
|
|
24
22
|
|
|
25
23
|
|