Re: Radosgw S3 - can't authenticate user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 2, 2013 at 5:47 PM, Mark Kirkwood
<mark.kirkwood@xxxxxxxxxxxxxxx> wrote:
> I have a test setup for Radosgw on a single box. The Swift side of things
> works fine, but trying S3 (via boto) I am encountering the error:
>
> error reading user info, uid=('X5E5BXJHCZGGII3HAWBB',) can't authenticate
>
> Now the access key above is correct (see below), and I have copied the
> secret key correctly. Also the secret key is 'nice' in that it contains no
> escapes etc.
>
> I've followed http://ceph.com/docs/next/radosgw/config/ for setting the
> gateway up (including the rewrite rule for S3). It *looks* like I'm running
> into a variant of http://tracker.ceph.com/issues/1522, unless I've done
> something silly...
>
> Any ideas?
>
>
> Cheers
>
> Mark
>
> ---------------------- Details ------------------------
>
>
> Ceph Version:
>
> 0.67-421-g56ff410 (56ff4101a12e190caea9805dd5fb250ab5fa8e8c)
>
> Radosgw config:
>
> [client.radosgw.gateway]
> host = zmori
> keyring = /etc/ceph/ceph.rados.gateway.keyring
> rgw_socket_path = /tmp/radosgw.sock
> rgw_data = /var/lib/ceph/radosgw/$cluster-$id
> log_file = /var/log/ceph/radosgw.log
> rgw_dns_name = zmori
> rgw print continue = false
> debug rgw = 20
>
>
> Boto prog:
>
> #!/usr/bin/python
>
> import boto
> import boto.s3.connection
>
> access_key = 'X5E5BXJHCZGGII3HAWBB',
> secret_key = '....................'   # redacted
>
> conn = boto.connect_s3(
>         aws_access_key_id = access_key,
>         aws_secret_access_key = secret_key,
>         host = 'zmori',
>         is_secure=False,
>         calling_format = boto.s3.connection.OrdinaryCallingFormat(),
>         )
>
> bucketlist = conn.get_all_buckets()
>
> User info:
>
> { "user_id": "markir",
>   "display_name": "Mark",
>   "email": "",
>   "suspended": 0,
>   "max_buckets": 1000,
>   "auid": 0,
>   "subusers": [
>         { "id": "markir:swift",
>           "permissions": "full-control"}],
>   "keys": [
>         { "user": "markir",
>           "access_key": "X5E5BXJHCZGGII3HAWBB",
>           "secret_key": ".................."}],
>   "swift_keys": [
>         { "user": "markir:swift",
>           "secret_key": "........................."}],
>   "caps": [],
>   "op_mask": "read, write, delete",
>   "default_placement": "",
>   "placement_tags": []}
>
>
> Radosgw log:
>
>
> 2013-09-01 16:24:31.435847 7fd3ecfa1700  2 req 3:0.000110:s3:GET
> /:list_buckets:authorizing
> 2013-09-01 16:24:31.435871 7fd3ecfa1700 20 get_obj_state:
> rctx=0x7fd3e8005eb0 obj=.users:('X5E5BXJHCZGGII3HAWBB',)

Those brackets and comma are really not in place, you got an extra
comma following your access key assignment in your python code.

Yehuda
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux