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

Validate Rclone remotes in initializer #2952

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

robinkar
Copy link
Contributor

@robinkar robinkar commented Aug 9, 2023

This PR adds a configuration option that can be enabled to add only valid and accessible Rclone remotes to favorite paths.

The remotes are validates by trying to list the directories in the remote in parallel with a timeout of 6s (this is mostly chosen due to strange Rclone timeout behaviour). The feature is disabled by default, enable by setting OOD_REMOTE_VALIDATION to true. This might not be the best name for the configuration option, but was the shortest reasonable name I could think of (maybe OOD_RCLONE_REMOTE_VALIDATION would be better?).

Validates by trying to query in parallel with a timeout of 6s. Disabled
by default, enable by setting OOD_REMOTE_FILES_VALIDATION.
@@ -5,6 +5,7 @@ bc_simple_auto_accounts: true
per_cluster_dataroot: true
file_navigator: true
remote_files_enabled: true
remote_validation: true
Copy link
Contributor

Choose a reason for hiding this comment

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

OK - let's keep the option but can we rename it to remote_files_validation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed.

@robinkar robinkar force-pushed the validate-rclone-remotes branch from 0e18c11 to 6e53c35 Compare August 14, 2023 09:43
Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

Thanks!

@johrstrom johrstrom merged commit 727ad86 into OSC:master Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants