<div dir="ltr"><div>I did it.</div><div><br></div><div>First I need to create ec2 credentials:</div><div>openstack ec2 credentials create</div><div><br></div><div>Then I had to change "my @endpoints" parameter in <a href="http://s3curl.pl">s3curl.pl</a> as following:</div><div>my @endpoints = ( 'proxy');</div><div><br></div><div>And then just use my credentials with <a href="http://s3curl.pl">s3curl.pl</a></div><div><br></div><div>For example. For containers list:</div><div>./<a href="http://s3curl.pl">s3curl.pl</a> --id access_key --key secret_key <a href="http://proxy:8080">http://proxy:8080</a></div><div><br></div><div>For objects list in a container:</div><div>./<a href="http://s3curl.pl">s3curl.pl</a> --id access_key --key secret_key <a href="http://proxy:8080/my_container">http://proxy:8080/my_container</a></div><div><br></div><div>For stream an object:</div><div>./<a href="http://s3curl.pl">s3curl.pl</a> --id access_key --key secret_key <a href="http://proxy:8080/my_container/my_object">http://proxy:8080/my_container/my_object</a></div><div><br></div><div>Sincerely,</div><div>Alexandr</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 12:42 PM, Alexandr Porunov <span dir="ltr"><<a href="mailto:alexandr.porunov@gmail.com" target="_blank">alexandr.porunov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>To get token I use the next command:</div><span class=""><div><br></div><div>curl -i \</div><div> -H "Content-Type: application/json" \</div><div> -d '</div><div>{ "auth": {</div><div> "identity": {</div><div> "methods": ["password"],</div><div> "password": {</div><div> "user": {</div><div> "name": "swift",</div><div> "domain": { "name": "default" },</div><div> "password": "swift"</div><div> }</div><div> }</div><div> },</div><div> "scope": {</div><div> "project": {</div><div> "name": "service",</div><div> "domain": { "name": "default" }</div><div> }</div><div> }</div><div> }</div><div>}' \</div><div> <a href="http://keystone:5000/v3/auth/tokens" target="_blank">http://keystone:5000/v3/auth/<wbr>tokens</a> ; echo</div><div> </div></span><div>Here is the latest output:</div><div><br></div><div>HTTP/1.1 201 Created</div><div>Date: Thu, 13 Oct 2016 12:40:53 GMT</div><div>Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5</div><div>X-Subject-Token: 21d9ea93e9324fedb8853c94e6698d<wbr>79</div><div>Vary: X-Auth-Token</div><div>x-openstack-request-id: req-eaf0c587-fcaa-4294-bee6-<wbr>507385eea1e8</div><div>Content-Length: 1715</div><div>Content-Type: application/json</div><div><br></div><div>{"token": {"methods": ["password"], "roles": [{"id": "<wbr>908072b0551448a29793277b4ad716<wbr>88", "name": "admin"}], "expires_at": "2016-10-13T13:40:54.107598Z", "project": {"domain": {"id": "<wbr>839eff379a694db0b4c69716b7ee7c<wbr>32", "name": "default"}, "id": "<wbr>3f842db875cc48b99d7ff246c27a2e<wbr>6a", "name": "service"}, "catalog": [{"endpoints": [{"region_id": "RegionOne", "url": "<a href="http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a" target="_blank">http://proxy:8080/v1/AUTH_<wbr>3f842db875cc48b99d7ff246c27a2e<wbr>6a</a>", "region": "RegionOne", "interface": "internal", "id": "<wbr>19fe381617d84ca7a7953e1dfd89f1<wbr>81"}, {"region_id": "RegionOne", "url": "<a href="http://proxy:8080/v1" target="_blank">http://proxy:8080/v1</a>", "region": "RegionOne", "interface": "admin", "id": "<wbr>6ff73960ff4249e7a3f5d9fa7cbe90<wbr>e0"}, {"region_id": "RegionOne", "url": "<a href="http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a" target="_blank">http://proxy:8080/v1/AUTH_<wbr>3f842db875cc48b99d7ff246c27a2e<wbr>6a</a>", "region": "RegionOne", "interface": "public", "id": "<wbr>ec5e71ac89fc4a66a026ad96d8c0df<wbr>49"}], "type": "object-store", "id": "<wbr>83436928701349379c7e643954acbb<wbr>8d", "name": "swift"}, {"endpoints": [{"region_id": "USA_east_1", "url": "<a href="http://keystone:5000/v3" target="_blank">http://keystone:5000/v3</a>", "region": "USA_east_1", "interface": "public", "id": "<wbr>2b552dffdf564d7dab281d6676a5e8<wbr>6e"}, {"region_id": "USA_east_1", "url": "<a href="http://keystone:5000/v3" target="_blank">http://keystone:5000/v3</a>", "region": "USA_east_1", "interface": "internal", "id": "<wbr>8a73678a836a47bbb16a5df7e41576<wbr>df"}, {"region_id": "USA_east_1", "url": "<a href="http://keystone:35357/v3" target="_blank">http://keystone:35357/v3</a>", "region": "USA_east_1", "interface": "admin", "id": "<wbr>964dbc7a4920416588bc754bfed583<wbr>b7"}], "type": "identity", "id": "<wbr>77366d6be47a46ff94d56e1436fab2<wbr>aa", "name": "keystone"}], "user": {"domain": {"id": "<wbr>839eff379a694db0b4c69716b7ee7c<wbr>32", "name": "default"}, "id": "<wbr>1fb1511494744101b9cfab7b68d909<wbr>8e", "name": "swift"}, "audit_ids": ["lGLvUwAXQo2f2L6WNxvl-Q"], "issued_at": "2016-10-13T12:40:54.107633Z"}<wbr>}</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 12:40 PM, Alexandr Porunov <span dir="ltr"><<a href="mailto:alexandr.porunov@gmail.com" target="_blank">alexandr.porunov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you. You were right.<div><br></div><div>Now s3curl works but I don't know how to use it.. I try to check if swift3 is working with the next command:</div><div><div> ./<a href="http://s3curl.pl" target="_blank">s3curl.pl</a> --id 'swift' -key '384c48d6a26244aebcfa26cff4567<wbr>bc0' -get -s -v <a href="http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a" target="_blank">http://proxy:8080/v1/AUTH_3f84<wbr>2db875cc48b99d7ff246c27a2e6a</a></div></div><div><br></div><div>and</div><div><br></div><div><div> ./<a href="http://s3curl.pl" target="_blank">s3curl.pl</a> --id 'swift' -key 'swift' -get -s -v <a href="http://proxy:8080/v1/AUTH_3f842db875cc48b99d7ff246c27a2e6a" target="_blank">http://proxy:8080/v1/AUTH_3f84<wbr>2db875cc48b99d7ff246c27a2e6a</a></div></div><div><br></div><div>in both cases I get the same error:</div><div><div><?xml version='1.0' encoding='UTF-8'?></div><div><Error><Code>InvalidBucketName<wbr></Code><Message>The specified bucket is not valid.</Message><RequestId>tx7<wbr>5447f12c8434120b20cd-0057ff7ff<wbr>e</RequestId><BucketName>v1</<wbr>BucketName></Error></div></div><div><br></div><div>Do you know how to resolve it?</div></div><div class="m_-7555217943273978879HOEnZb"><div class="m_-7555217943273978879h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 12:10 PM, Turbo Fredriksson <span dir="ltr"><<a href="mailto:turbo@bayour.com" target="_blank">turbo@bayour.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Oct 13, 2016, at 9:29 AM, Alexandr Porunov wrote:<br>
<br>
> Can't locate Digest/HMAC_SHA1.pm in @INC (@INC contains:<br>
<br>
</span>You need to install the "libdigest-hmac-perl" package..<br>
<span class="m_-7555217943273978879m_3698483132915313863HOEnZb"><font color="#888888">--<br>
Try not. Do. Or do not. There is no try!<br>
- Yoda<br>
</font></span><div class="m_-7555217943273978879m_3698483132915313863HOEnZb"><div class="m_-7555217943273978879m_3698483132915313863h5"><br>
<br>
______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>