Open jjjermiah opened 5 months ago
Looks like it was also triggered here: https://github.com/snakemake/snakemake/issues/2501
I believe this might be because the snakemake-storage-plugin-http
plugin is not installed on the node, makes sense since the only default arg for the http plugin is the allow-redirects argument = True and so its passed on automatically.
I think I've possibly? narrowed it down to this piece of code.
package_name = StoragePluginRegistry().get_plugin_package_name(
self.workflow.storage_settings.default_storage_provider
)
precommand.append(
f"pip install --target '{common.PIP_DEPLOYMENTS_PATH}' {package_name}"
)
It looks like this only tells the node to install the default storage provider.
I think the fix would be to add a command to install any of the registered storage providers.
workflow.storage_settings
? not sure how its organized. side note: I'm not actually sure if f"{storage_provider_args}"
is declared or instantiated anywhere but i dont think thats the issue here
It seems like when I use the http storage plugin with the kubernetes executer, it submits the job but with an added argument
--storage-http-allow-redirects
.Snakefile:
profile:
log:
bold text in the logged command shows where its inserted:
Executing job: pip install --target '.snakemake/pip-deployments' snakemake-storage-plugin-gcs && python -m snakemake --deploy-sources gs://orcestradata/snakemake8_test/snakemake-workflow-sources.aa2971cef4d04f37d9a1a2a2ba973d589bf0fb2e4c198081e94539acfe32f4fc.tar.xz aa2971cef4d04f37d9a1a2a2ba973d589bf0fb2e4c198081e94539acfe32f4fc --default-storage-prefix gs://orcestradata/snakemake8_test --default-storage-provider gcs --storage-gcs-retries 5 --storage-http-allow-redirects True && python -m snakemake --snakefile Snakefile --target-jobs 'get_file:' --allowed-rules 'getfile' --cores 1 --attempt 1 --force-use-threads --force --target-files-omit-workdir-adjustment --keep-storage-local-copies --max-inventory-time 0 --nocolor --notemp --no-hooks --nolock --ignore-incomplete --verbose --rerun-triggers params software-env mtime code input --conda-frontend mamba --shared-fs-usage none --wrapper-prefix https://github.com/snakemake/snakemake-wrappers/raw/ --latency-wait 5 --scheduler ilp --local-storage-prefix .snakemake/storage --storage-gcs-retries 5 **--storage-http-allow-redirects_** True --default-storage-prefix gs://orcestradata/snakemake8_test --default-storage-provider gcs --default-resources base64//dG1wZGlyPXN5c3RlbV90bXBkaXI= --mode remote