Ask Your Question
0

how to use s3curl to upload objects in swift with swift3 and swauth?

asked 2013-11-01 07:41:47 -0600

qi-weining gravatar image

I installed swift3 v1.7(S3). The auth of swift is swauth 1.0.8.

But I can not connect to the proxy server in another swift client.

when i use "./s3curl.pl --id 'test:tester' --key 'testing' --get -- -k -v -s http://210.75 . .:8080"

  • About to connect() to 210.75.225.40 port 8080 (#0)
  • Trying 210.75.225.40... connected > GET / HTTP/1.1 > User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 > Host: 210.75.225.40:8080 > Accept: / > Date: 五, 01 11月 2013 07:32:40 +0000 > Authorization: AWS testtest:testertester:FU25jKbl1wQJt4DKvVnVPH2xNII= > < HTTP/1.1 403 Forbidden < Content-Length: 124 < Content-Type: text/xml < Date: Fri, 01 Nov 2013 07:32:39 GMT < <error> AccessDenied <message>Access denied</message> </error>
  • Connection #0 to host 210.75.225.40 left intact
  • Closing connection #0

[DEFAULT] #cert_file = /etc/swift/cert.crt #key_file = /etc/swift/cert.key
bind_port = 8080 #workers = 8 user = swift log_facility = LOG_LOCAL0

[pipeline:main] pipeline = healthcheck cache swift3 swauth proxy-server

[app:proxy-server] use = egg:swift#proxy allow_account_management = true account_autocreate = true

[filter:swauth] use = egg:swauth#swauth

Highly recommended to change this.

super_admin_key = swauthkey default_swift_cluster = local#http://210.75..:8080/v1#http://192.168.1.2:8080/v1

[filter:swift3] use = egg:swift3#swift3

[filter:healthcheck] use = egg:swift#healthcheck

#[filter:catch_errors] #use = egg:swift#catch_errors

[filter:cache] use = egg:swift#memcache memcache_servers = 192.168.1.2:11211

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2013-11-01 09:07:50 -0600

I think you should have to update swauth section for username test:tester and password: testing

edit flag offensive delete link more
0

answered 2013-11-01 09:07:49 -0600

I think you should have to update swauth section for username test:tester and password: testing

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-01 07:41:47 -0600

Seen: 682 times

Last updated: Nov 01 '13