[Openstack] [OpenStack] [Swift] How to use s3curl or s3cmd with Swift3?
Kota TSUYUZAKI
tsuyuzaki.kota at lab.ntt.co.jp
Thu Oct 13 09:01:12 UTC 2016
Hello again,
I'm not familier with s3curl in detail though,
> ./s3curl.pl - 'swift' -key '3d8b70ad194a4cf6857e59ec6cccc38d' -get - -s -v
> http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a
>
could you try:
./s3curl.pl - 'swift' -key 'swift' -get - -s -v http://proxy:8080/
IIRC, secret_key is not a swift token but a password you set in your keystone and swift3 doesn't require Swift url so you can request to the host directly.
Regards,
Kota
(2016/10/13 17:29), Alexandr Porunov wrote:
> 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
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
--
----------------------------------------------------------
Kota Tsuyuzaki(露﨑 浩太) <tsuyuzaki.kota at lab.ntt.co.jp>
NTT Software Innovation Center
Cloud Solution Project
Phone 0422-59-2837
Fax 0422-59-2965
-----------------------------------------------------------
More information about the Openstack
mailing list