Re: Radosgw S3 - can't authenticate user

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

 



On 03/09/13 15:25, Yehuda Sadeh wrote:

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()

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.


Doh! Ah yes, the trailing ',' is the problem. Works fine when that is removed! Of course in hindsight very obvious - the error message was actually telling me : viz user 'X5E5BXJHCZGGII3HAWBB', as opposed to user 'X5E5BXJHCZGGII3HAWBB'

Awesome, thanks for spotting my silly mistake!

Mark
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux