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'" )

# sudo radosgw-admin user info --uid=johndoe
{ "user_id": "johndoe",
  "display_name": "John Doe",
  "email": "[email protected]",
  "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 [email protected]
        DocumentRoot /var/www


        RewriteEngine On
        RewriteRule ^/([a-zA-Z0-9-_.]*)([/]?.*)
/s3gw.fcgi?page=$1&params=$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
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to