question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for SwiftStack S3 API

See original GitHub issue

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I’m always frustrated when […]

I’m unable to connect to a repository located in SwiftStack using the S3 API. When attempting to start Triton, I get this error:

I1218 17:41:51.583433 1 server.cc:277] No server context available. Exiting immediately.
error: creating server: Internal - Could not get MetaData for bucket with name triton-repo

I’m able to connect to AWS s3 from Triton and load a model.  I’m also able to connect to SwiftStack using the AWS cli like this:

docker run -e "AWS_DEFAULT_REGION=z1-a" \
-e "AWS_ACCESS_KEY_ID=<key id>" \
-e "AWS_SECRET_ACCESS_KEY=<secret>" \
-it amazon/aws-cli --endpoint=https://z1-a.objectstorage.<domainname> s3 ls

Looking through the triton server code, it looks like it’s using the official AWS s3 client library, so I’d imagine the environment variables should be used in the same way, but maybe there’s a difference.  Here’s how I’m testing with triton:

docker run -e "AWS_DEFAULT_REGION=z1-a" \
-e “AWS_ACCESS_KEY_ID=<key id>" \
-e “AWS_SECRET_ACCESS_KEY=<secret>" \
--rm -p8000:8000 -p8001:8001 -p8002:8002 nvcr.io/nvidia/tritonserver:20.11-py3 tritonserver \
--model-repository=s3://z1-a.objectstorage.<domainname>:443/triton-repo/triton1 \
--strict-model-config=false --log-verbose=1

Describe the solution you’d like A clear and concise description of what you want to happen.

I would like to be able to load models from a repository located in SwiftStack using the S3 API. 😃

Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.

As a workaround I’m currently loading models from AWS, which works but is slower.

Additional context Add any other context or screenshots about the feature request here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
arunramancommented, May 4, 2021

I had no problem running this

docker run -e AWS_ACCESS_KEY_ID=<AWS_KEY_ID> -e AWS_SECRET_ACCESS_KEY=<AWS_SECRET_KEY> AWS_DEFAULT_REGION=<Region> --gpus device=1 --rm -p8000:8000 -p8001:8001 -p8002:8002 --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 nvcr.io/nvidia/tritonserver:20.12-py3 tritonserver --model-repository=s3://model_bucket/ --model-control-mode=poll --repository-poll-secs=5 --log-verbose=true --exit-on-error=false --strict-model-config=false

Are the double quotes on the environment variable an issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

S3 API Support — SwiftStack Documentation
S3 API Support ¶. The SwiftStack S3 API support provides Amazon S3 API compatibility. This functionality is enabled by default but can be...
Read more >
S3/Swift REST API Comparison Matrix
S3 REST API method Category Swift S3 API GET Object Core‑API Yes HEAD Object Core‑API Yes PUT Object Core‑API Yes
Read more >
Object Storage Swift - Getting started with the Swift S3 API
This guide will help you access objects in Swift using a software designed to interact with S3-compatible endpoints.
Read more >
How to manage the OpenStack S3 API - IBM
The OpenStack Swift S3 API maps S3 buckets to Swift containers. · Unauthorized S3 requests are not supported. · You cannot specify S3...
Read more >
Accessing Swift Object Storage with the S3 API - Zetta.IO
Swift has middleware emulating the S3 REST API. This means we can access and manage our swift containers using S3 compatible clients.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found