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

Asked by Qi Weining

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
<
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>AccessDenied</Code>
  <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

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kun Huang (academicgareth) said :
#1

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

Revision history for this message
Kun Huang (academicgareth) said :
#2

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

Can you help with this problem?

Provide an answer of your own, or ask Qi Weining for more information if necessary.

To post a message you must log in.