Thanky you for reply.
Belows are my version and "-V 1.0" result.
ceph version 0.72.2
swift 1.0
root@cephT:~/swiftApiTest# swift -V 1.0 -A http://cephT/auth -U johndoe:swift -K 12hcpWyed4ycYNEV2btiI6qiaDR2EfgKhrLFpdfc post test
Traceback (most recent call last):
File "/usr/bin/swift", line 1972, in <module>
error_queue)
File "/usr/bin/swift", line 1594, in st_post
conn.post_container(args[0], headers=headers)
File "/usr/bin/swift", line 925, in post_container
return self._retry(None, post_container, container, headers)
File "/usr/bin/swift", line 862, in _retry
self.http_conn = self.http_connection()
File "/usr/bin/swift", line 850, in http_connection
return http_connection(self.url)
File "/usr/bin/swift", line 140, in http_connection
parsed = urlparse(url)
File "/usr/lib/python2.7/urlparse.py", line 135, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/usr/lib/python2.7/urlparse.py", line 174, in urlsplit
i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'
2014-02-20 11:48 GMT+09:00 Yehuda Sadeh <yehuda@xxxxxxxxxxx>:
On Wed, Feb 19, 2014 at 6:36 PM, JinHwan Hwang <calanchue@xxxxxxxxx> wrote:Should be v1, unless you're using keystone. What's the exact error?
> After i followed radosgw install and configuration
> document(http://ceph.com/docs/next/radosgw/config/), I have got stucked on
> using swift client. It just returns me "Auth GET failed", even though i can
> see that radosgw already have swift subuser and keys. how can i solve it?
>
> What i got from radosgw with swift client.
> # swift -V 2.0 -A http://cephT/auth -U johndoe:swift -K
> 12hcpWyed4ycYNEV2btiI6qiaDR2EfgKhrLFpdfc post test
> Auth GET failed: http://cephT:80/auth/tokens 200
> (The document said that "-V 1.0" but it looks like that ceph supports swift
> 2.0 api, So I changed it. If i do "-V 1.0", i get "AttributeError:
> 'NoneType' object has no attribute 'find'" )
what swift client version are you using, and what's the ceph version?
Yehuda
> _______________________________________________
>
> # sudo radosgw-admin user info --uid=johndoe
> { "user_id": "johndoe",
> "display_name": "John Doe",
> "email": "john@xxxxxxxxxxx",
> "suspended": 0,
> "max_buckets": 1000,
> "auid": 0,
> "subusers": [
> { "id": "johndoe:swift",
> "permissions": "full-control"}],
> "keys": [
> { "user": "johndoe",
> "access_key": "SOD9CED0A3SJ6ZFY7R6I",
> "secret_key": "Maj\/O4\/sdmZpdPgTEAIuvloapJIR2jrFmqdKJd4F"}],
> "swift_keys": [
> { "user": "johndoe:swift",
> "secret_key": "12hcpWyed4ycYNEV2btiI6qiaDR2EfgKhrLFpdfc"}],
> "caps": [],
> "op_mask": "read, write, delete",
> "default_placement": "",
> "placement_tags": [],
> "bucket_quota": { "enabled": false,
> "max_size_kb": -1,
> "max_objects": -1}}
>
>
> # cat /etc/apache2/sites-enabled/rgw.conf
> FastCgiExternalServer /var/www/s3gw.fcgi -socket /tmp/radosgw.sock
> <VirtualHost *:80>
> ServerName cephT
> ServerAdmin cloud@xxxxxxxxx
> DocumentRoot /var/www
>
>
> RewriteEngine On
> RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*)
> /s3gw.fcgi?page=$1¶ms=$2&%{QUERY_STRING}
> [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
>
>
> <IfModule mod_fastcgi.c>
> <Directory /var/www>
> Options +ExecCGI
> AllowOverride All
> SetHandler fastcgi-script
> Order allow,deny
> Allow from all
> AuthBasicAuthoritative Off
> </Directory>
> </IfModule>
>
>
> AllowEncodedSlashes On
> ErrorLog /var/log/apache2/error.log
> CustomLog /var/log/apache2/access.log combined
> ServerSignature Off
>
>
> SSLEngine on
> SSLCertificateFile /etc/apache2/ssl/apache.crt
> SSLCertificateKeyFile /etc/apache2/ssl/apache.key
> SetEnv SERVER_PORT_SECURE 443
> </VirtualHost>
>
>
> Thanks in advance
>
>
>
>
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com