NVIDIA / docker-swift

Docker image for Swift all-in-one demo deployment
https://hub.docker.com/r/dockerswiftaio/docker-swift/
GNU General Public License v2.0
82 stars 37 forks source link

POST /v2.0/tokens fails with HTTP 400 #50

Open lol768 opened 4 years ago

lol768 commented 4 years ago
POST http://tabula-objectstorage:8080/v2.0/tokens HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [<html><h1>Bad Request</h1><p>The server could not comply with the request since it is either malformed or otherwise incorrect.</p></html>]

Can confirm this code seems to work in a real environment, so not sure what's wrong here. Any suggestions on where to start troubleshooting?

timuralp commented 4 years ago

@lol768 for v2 auth you'll need to have a keystone server setup. It's possible to configure docker swift with keystone, but you'll need another container (like: https://hub.docker.com/r/stephenhsu/keystone/) or add all of the keystone stuff inside the docker-swift container itself.

After that, you'd need to make a few changes to add keystone to Swift. This is a good starting guide for it: https://docs.openstack.org/swift/latest/overview_auth.html#keystone-auth.

Hope this helps!