Skip to content

S3 input/output support #20

Closed
Closed

Description

@erikvdbergh

Filer needs to support S3 upload and download (public buckets)

Not sure if private buckets should also be supported.

Activity

  1. self-assigned this
    on Mar 21, 2018
  2. added this to the milestone on May 8, 2018
  3. susheel commented on May 11, 2018

    @susheel
    Contributor

    Inputs Test Setup

    1. Build multi-filer container
    2. Obtain S3 cerdentials from Gianni (see slack)

    Inputs Test Script

    1. Create a test.file in `s3://tesk-bucket/test/test.file
    2. Create test.json file
    {
        "inputs": [
          {
            "name": "input1",
            "description": "Example",
            "url": "s3://tesk-bucket/test/test.file",
            "path": "/tmp/test.file",
            "type": "FILE"
          }
        ]
    }
    
    1. Run multi-filer
    docker run -it <multi-filer CONTAINER> \
    -v $(PWD):/globus/
    -e SRC_S3_ACCESS_KEY_ID='<access-key-id>' \
    -e SRC_S3_SECRET_ACCESS_KEY='<secret-access-key>' \
    inputs test.json
    
  4. psafont commented on May 14, 2018

    @psafont
    Contributor

    This is the command that worked for me:

    $ docker run -v $PWD:/globus/ \
      -e SRC_S3_ACCESS_KEY_ID=<snipped> \
      -e SRC_S3_SECRET_ACCESS_KEY=<snipped> \
      susheel/multi-filer:latest \
      /multi-filer.sh inputs /globus/test.json
    

    output:

    /multi-transfer.sh s3://tesk-bucket/test/test.file /tmp/test.file
    

    It finished without errors, but how do I make sure the files was uploaded correctly?

  5. susheel commented on May 18, 2018

    @susheel
    Contributor

    Sorry I missed this. I would try uploading a file using the tool first and then try downloading the same file.

  6. psafont commented on May 18, 2018

    @psafont
    Contributor

    Would this be the correct command line for outputting a file?

    $ docker run -v $PWD:/globus/ \
      -e SRC_S3_ACCESS_KEY_ID=<snipped> \
      -e SRC_S3_SECRET_ACCESS_KEY=<snipped> \
      susheel/multi-filer:latest \
      /multi-filer.sh outputs /globus/test.json
    

    It's not clear to me how the file from the bucket is chosen to output to local system.

    or what is the relation between input/output and import/export.

  7. susheel commented on May 18, 2018

    @susheel
    Contributor

    Try this...

    S3 File Upload Test Script

    1. Create a dummy test.file in you local $(pwd)
    2. Rebuild multi-filer - I forgot to remove the logging comments
    3. Use this test.json
    {
        "inputs": [
          {
            "name": "input1",
            "description": "Example Input",
            "url": "s3://tesk-bucket/test/test.file",
            "path": "/globus/test.file",
            "type": "FILE"
          }
        ],
    	"outputs": [
          {
            "name": "output1",
            "description": "Example Output",
            "url": "s3://tesk-bucket/test/test.file",
            "path": "/globus/test.file",
            "type": "FILE"
          }
        ]
    }
    
    1. Upload using multi-filer for outputs
    docker run -v $(pwd):/globus/ \
      -e DEST_S3_ACCESS_KEY_ID=<snipped> \
      -e DEST_S3_SECRET_ACCESS_KEY=<snipped> \
      susheel/multi-filer:latest \
      /multi-filer.sh outputs /globus/test.json
    

    This will have created placed a new file

    1. Download using multi-filer for inputs
    docker run -v $(pwd):/globus/ \
      -e SRC_S3_ACCESS_KEY_ID=<snipped> \
      -e SRC_S3_SECRET_ACCESS_KEY=<snipped> \
      susheel/multi-filer:latest \
      /multi-filer.sh inputs /globus/test.json
    
  8. psafont commented on May 18, 2018

    @psafont
    Contributor

    I'm not able to upload the dummy file:

    2018/05/18 11:45:02 ERROR : : error reading destination directory: AllAccessDisabled: All access to this object has been disabled
            status code: 403
    2018/05/18 11:45:02 ERROR : S3 bucket test path test.file/: not deleting files as there were IO errors
    2018/05/18 11:45:02 ERROR : S3 bucket test path test.file/: not deleting directories as there were IO errors
    2018/05/18 11:45:02 ERROR : Attempt 1/3 failed with 1 errors and: not deleting files as there were IO errors
    
  9. self-assigned this
    on May 21, 2018
  10. removed this from the milestone on Jun 19, 2018
  11. kfox1111 commented on Jul 3, 2019

    @kfox1111

    I'm interested in this too. Plus the ability to target minio as the s3 backend.

  12. added 2 commits that reference this issue on Jan 11, 2024
  13. added a commit that references this issue on May 9, 2024
  14. added
    type: feature
    and removed on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

type: feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions