Replies: 3 comments 9 replies
-
Excellent troubleshooting. Regarding the region in the AwsClientFactory, the rationale is to force the us-west-1 region for "global" S3 operations. However, I agree that makes no sense in your case. You want to open an issue for it. In the case of region propagation for Fusion, I think you are right. Looking at this code it seems the AWS_REGION is not added to the Fusion environment. @jordeu What do you think? |
Beta Was this translation helpful? Give feedback.
-
All the providers that I've tested didn't require the region to be set (the endpoint already fixes the region). I'm going to prepare a snapshot version using the |
Beta Was this translation helpful? Give feedback.
-
Give it a try to this Fusion snapshot running Nextflow with:
Double check that |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I would like to know your experience before opening an issue, just in case I am having some mistake.
I am totally new to nextflow, but have made progress, I already have a local, slurm and Google Batch executors working fine, and now I am trying to use it with a managed k8s from OVH, and using their own custom block storage (with S3 interface), not an AWS bucket.
That means that I have to provide a custom endpoint and also a custom region for S3 to work.
In my config file, I have:
With this configuration, I get this error, that means that nextflow is not honoring my configuration with 'gra' region:
The same error raises when I remove the aws configuration and credentials from the config file and put them on
.aws/credentials
. Command line aws works fine, so credentials are ok.I have forked nextflow and looking at the code, I think that I have narrowed the origin of this problem to this line in
S3FileSystemProvider
The
new AwsClientFactory
line pass a fixed region (US_EAST_1) as parameter, and inside the constructor this fixed region is assigned in first place to the s3client region:I would expect that the assignment of the fixed region parameter to be at the end of the assignment block, and the first one to be the one from the config, so I have modified it like this:
After
make
andmake pack
, the staging of files works as expected with the fixed build, but a new problem arrises with Fusion.Pods and jobs are correctly created on the k8s cluster, but the Fusion file system fails with an error saying that region is empty and that it is not 'gra'. So I suspect that the fusion binary is not taking into account the region configuration, as it happens with nextflow.
I have also tried to define
AWS_REGION
, andAWS_DEFAULT_REGION
manually on the pod env, and the variables are populated to the pod, but they are not honored by the fusion binary:Please, someone with access to the fusion source code could see if region can be set?
Someone know a workaround of how can I tell fusion binary the region to use?
Beta Was this translation helpful? Give feedback.
All reactions