Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v7r1] FTS3: allow to alter TPC preference list and source SE with plugins #5096

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

chaen
Copy link
Contributor

@chaen chaen commented Apr 13, 2021

Because some links may be special or some sites shitty, this mechanism allows for more flexibility in choosing a third party protocol or a source SE when transferring with FTS.
This comes with a Default plugin which does exactly what the hardcoded behavior was doing, and serves as documentation. It is totally backward compatible.

This is currently tested in LHCb

BEGINRELEASENOTES

*Subsystem
NEW: FTS3 plugins to alter TPC and source SE preferences

ENDRELEASENOTES

@chaen chaen force-pushed the rel-v7r1_FEAT_fts3ProtoPlugin branch from 32c0485 to 4b0d4dc Compare April 13, 2021 09:38
Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for being picky and difficult. :/
I think the plugin needs to be VO-aware.

DataManagementSystem/private/FTS3Plugins/__init__.py Outdated Show resolved Hide resolved
DataManagementSystem/private/FTS3Plugins/__init__.py Outdated Show resolved Hide resolved
DataManagementSystem/private/FTS3Utilities.py Outdated Show resolved Hide resolved
DataManagementSystem/private/FTS3Utilities.py Outdated Show resolved Hide resolved
DataManagementSystem/Agent/FTS3Agent.py Outdated Show resolved Hide resolved
DataManagementSystem/Agent/FTS3Agent.py Outdated Show resolved Hide resolved
@chaen
Copy link
Contributor Author

chaen commented Apr 13, 2021

Ah, this bloody VO parameter... OK, I'll try to cook up something. But that basically means that the initialization done can only be VO agnostic. I'll modify accordingly, thanks for the review

@chaen
Copy link
Contributor Author

chaen commented Apr 13, 2021

@andresailer I changed the implementation, it should now propagate the vo parameter everywhere.

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for incorporating all my suggestions! Some more comments for docstrings and comments

andresailer
andresailer previously approved these changes Apr 14, 2021
@chaen
Copy link
Contributor Author

chaen commented Apr 14, 2021

Thanks for the very careful review. I've just squashed all the commit together, and it runs fine in LHCb. Please re-approve, I'll remove the WIP

@chaen chaen changed the title [WIP][v7r1] FTS3: allow to alter TPC preference list and source SE with plugins [v7r1] FTS3: allow to alter TPC preference list and source SE with plugins Apr 14, 2021
@chaen chaen marked this pull request as ready for review April 14, 2021 09:13
@atsareg atsareg merged commit 429d40f into DIRACGrid:rel-v7r1 Apr 14, 2021
@chaen chaen deleted the rel-v7r1_FEAT_fts3ProtoPlugin branch August 11, 2022 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants