是否可以通过s3cmd与OpenStack Swift的单节点部署进行交互

时间:2017-05-02 19:36:01

标签: openstack openstack-swift s3cmd

我使用Raspbian = Debian Jessie 8.0在Raspberry Pi 3上部署了存储服务OpenStack Swift。 (感谢Swift on Pi,安装不是一个大问题。)

$ curl -i -H "X-Auth-User: test:tester" -H "X-Auth-Key: testing" http://10.0.0.253:8080/auth/v1.0/
HTTP/1.1 200 OK
X-Storage-Url: http://10.0.0.253:8080/v1/AUTH_test
X-Auth-Token-Expires: 77438
X-Auth-Token: AUTH_tka8fff6782f86486a84e3905daa60f308
Content-Type: text/html; charset=UTF-8
X-Storage-Token: AUTH_tka8fff6782f86486a84e3905daa60f308
Content-Length: 0
X-Trans-Id: txa21566e67e8143b1b32db-005908cf2f
X-Openstack-Request-Id: txa21566e67e8143b1b32db-005908cf2f
Date: Tue, 02 May 2017 18:25:51 GMT

我没有进一步运行OpenStack服务(如Keystone)。只有斯威夫特。

我的目标是使用s3cmd与Swift服务进行交互。

我在~/.s3cfg文件中修改了这些值:

access_key = tester
host_base = 10.0.0.253:8080
host_bucket = 10.0.0.253:8080
secret_key = testing
signature_v2 = True 

但这没有帮助:

$ s3cmd ls
ERROR: Error parsing xml: Malformed error XML returned from remote server..  ErrorXML: <html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>
ERROR: S3 error: 401 (Unauthorized)

是否可以使用s3cmd与Swift服务进行交互以及我错过了哪些步骤?

0 个答案:

没有答案