[Openstack] [OpenStack] [Swift] How to use s3curl or s3cmd with Swift3?

Alexandr Porunov alexandr.porunov at gmail.com
Thu Oct 13 08:29:24 UTC 2016


Hello,

I try to use s3curl to test swift3 but I miss something.

Here is the command which I use:
./s3curl.pl - 'swift' -key '3d8b70ad194a4cf6857e59ec6cccc38d' -get - -s -v
http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a

It shows:
Can't locate Digest/HMAC_SHA1.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./
s3curl.pl line 20.
BEGIN failed--compilation aborted at ./s3curl.pl line 20.

I am not sure that I write the command correctly.

*swift* - is the account
*3d8b70ad194a4cf6857e59ec6cccc38d* - is the X-Subject-Token I have got in
the header with this command:

curl -i \
  -H "Content-Type: application/json" \
  -d '
{ "auth": {
    "identity": {
      "methods": ["password"],
      "password": {
        "user": {
          "name": "swift",
          "domain": { "name": "default" },
          "password": "swift"
        }
      }
    },
    "scope": {
      "project": {
        "name": "service",
        "domain": { "name": "default" }
      }
    }
  }
}' \
  http://keystone:5000/v3/auth/tokens ; echo

*http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a
<http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a>* - is the
public endpoint

Am I doing correctly?

Why doesn't it work?

Sincerely,
Alexandr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161013/e16a695a/attachment.html>


More information about the Openstack mailing list