Here is log output for request to gateway:
2014-04-14 12:39:20.547012 7f1377aa97c0 20 enqueued request req=0x8ca280
2014-04-14 12:39:20.547036 7f1377aa97c0 20 RGWWQ:
2014-04-14 12:39:20.547038 7f1377aa97c0 20 req: 0x8ca280
2014-04-14 12:39:20.547044 7f1377aa97c0 10 allocated request req=0x8a6d30
2014-04-14 12:39:20.547062 7f133f7ee700 20 dequeued request req=0x8ca280
2014-04-14 12:39:20.547066 7f133f7ee700 20 RGWWQ: empty
2014-04-14 12:39:20.547072 7f133f7ee700 1 ====== starting new request
req=0x8ca280 =====
2014-04-14 12:39:20.547171 7f133f7ee700 2 req 2:0.000099::GET
/::initializing
2014-04-14 12:39:20.547178 7f133f7ee700 10 host=cephgw.example.com
rgw_dns_name=cephgw
2014-04-14 12:39:20.547190 7f133f7ee700 10 meta>> HTTP_X_AMZ_DATE
2014-04-14 12:39:20.547197 7f133f7ee700 10 x>> x-amz-date:Mon, 14 Apr
2014 11:39:01 +0000
2014-04-14 12:39:20.547227 7f133f7ee700 10 s->object=<NULL>
s->bucket=<NULL>
2014-04-14 12:39:20.547234 7f133f7ee700 20 FCGI_ROLE=RESPONDER
2014-04-14 12:39:20.547235 7f133f7ee700 20 SCRIPT_URL=/
2014-04-14 12:39:20.547235 7f133f7ee700 20
SCRIPT_URI=http://cephgw.example.com
2014-04-14 12:39:20.547236 7f133f7ee700 20 HTTP_AUTHORIZATION=AWS
718UJ2F9TFIEC5FT8XYU:hx94rY3BJn7HQKA6ERaksNMQPRs=
2014-04-14 12:39:20.547237 7f133f7ee700 20 HTTP_HOST=cephgw.example.com
2014-04-14 12:39:20.547237 7f133f7ee700 20 HTTP_ACCEPT_ENCODING=identity
2014-04-14 12:39:20.547238 7f133f7ee700 20 CONTENT_LENGTH=0
2014-04-14 12:39:20.547239 7f133f7ee700 20 HTTP_X_AMZ_DATE=Mon, 14 Apr
2014 11:39:01 +0000
2014-04-14 12:39:20.547239 7f133f7ee700 20 HTTP_VIA=1.
proxy.example.com.:3128 (squid/2.6.STABLE21)
2014-04-14 12:39:20.547240 7f133f7ee700 20
HTTP_X_FORWARDED_FOR=10.10.10.10
2014-04-14 12:39:20.547241 7f133f7ee700 20
HTTP_CACHE_CONTROL=max-age=259200
2014-04-14 12:39:20.547241 7f133f7ee700 20 HTTP_CONNECTION=keep-alive
2014-04-14 12:39:20.547242 7f133f7ee700 20
PATH=/usr/local/bin:/usr/bin:/bin
2014-04-14 12:39:20.547243 7f133f7ee700 20
SERVER_SIGNATURE=<address>Apache/2.2.22 (Ubuntu) Server at
cephgw.example.com Port 80</address>
2014-04-14 12:39:20.547255 7f133f7ee700 20
SERVER_SOFTWARE=Apache/2.2.22 (Ubuntu)
2014-04-14 12:39:20.547256 7f133f7ee700 20 SERVER_NAME=cephgw.example.com
2014-04-14 12:39:20.547257 7f133f7ee700 20 SERVER_ADDR=10.10.10.10
2014-04-14 12:39:20.547258 7f133f7ee700 20 SERVER_PORT=80
2014-04-14 12:39:20.547258 7f133f7ee700 20 REMOTE_ADDR=10.10.10.11
2014-04-14 12:39:20.547259 7f133f7ee700 20 DOCUMENT_ROOT=/var/www
2014-04-14 12:39:20.547260 7f133f7ee700 20
SERVER_ADMIN=t...@cephgw.example.com
2014-04-14 12:39:20.547260 7f133f7ee700 20
SCRIPT_FILENAME=/var/www/s3gw.fcgi
2014-04-14 12:39:20.547261 7f133f7ee700 20 REMOTE_PORT=51981
2014-04-14 12:39:20.547262 7f133f7ee700 20 GATEWAY_INTERFACE=CGI/1.1
2014-04-14 12:39:20.547262 7f133f7ee700 20 SERVER_PROTOCOL=HTTP/1.0
2014-04-14 12:39:20.547263 7f133f7ee700 20 REQUEST_METHOD=GET
2014-04-14 12:39:20.547264 7f133f7ee700 20 QUERY_STRING=page=¶ms=
2014-04-14 12:39:20.547264 7f133f7ee700 20 REQUEST_URI=/
2014-04-14 12:39:20.547265 7f133f7ee700 20 SCRIPT_NAME=/
2014-04-14 12:39:20.547266 7f133f7ee700 2 req 2:0.000195:s3:GET
/::getting op
2014-04-14 12:39:20.547287 7f133f7ee700 2 req 2:0.000216:s3:GET
/:list_buckets:authorizing
2014-04-14 12:39:20.547326 7f133f7ee700 20 get_obj_state:
rctx=0x7f135c01d1a0 obj=.us-master.users:718UJ2F9TFIEC5FT8XYU
state=0x7f135c01d268 s->prefetch_data=0
2014-04-14 12:39:20.547336 7f133f7ee700 10 moving
.us-master.users+718UJ2F9TFIEC5FT8XYU to cache LRU end
2014-04-14 12:39:20.547339 7f133f7ee700 10 cache get:
name=.us-master.users+718UJ2F9TFIEC5FT8XYU : type miss (requested=6,
cached=3)
2014-04-14 12:39:20.554368 7f133f7ee700 10 cache put:
name=.us-master.users+718UJ2F9TFIEC5FT8XYU
2014-04-14 12:39:20.554372 7f133f7ee700 10 moving
.us-master.users+718UJ2F9TFIEC5FT8XYU to cache LRU end
2014-04-14 12:39:20.554381 7f133f7ee700 20 get_obj_state: s->obj_tag
was set empty
2014-04-14 12:39:20.554390 7f133f7ee700 10 moving
.us-master.users+718UJ2F9TFIEC5FT8XYU to cache LRU end
2014-04-14 12:39:20.554391 7f133f7ee700 10 cache get:
name=.us-master.users+718UJ2F9TFIEC5FT8XYU : hit
2014-04-14 12:39:20.554445 7f133f7ee700 20 get_obj_state:
rctx=0x7f135c01d580 obj=.us-master.users.uid:test state=0x7f135c01da58
s->prefetch_data=0
2014-04-14 12:39:20.554451 7f133f7ee700 10 moving
.us-master.users.uid+test to cache LRU end
2014-04-14 12:39:20.554452 7f133f7ee700 10 cache get:
name=.us-master.users.uid+test : type miss (requested=6, cached=3)
2014-04-14 12:39:20.555975 7f133f7ee700 10 cache put:
name=.us-master.users.uid+test
2014-04-14 12:39:20.555977 7f133f7ee700 10 moving
.us-master.users.uid+test to cache LRU end
2014-04-14 12:39:20.555981 7f133f7ee700 20 get_obj_state: s->obj_tag
was set empty
2014-04-14 12:39:20.555984 7f133f7ee700 10 moving
.us-master.users.uid+test to cache LRU end
2014-04-14 12:39:20.555986 7f133f7ee700 10 cache get:
name=.us-master.users.uid+test : hit
2014-04-14 12:39:20.556082 7f133f7ee700 10 get_canon_resource(): dest=/
2014-04-14 12:39:20.556085 7f133f7ee700 10 auth_hdr:
GET
x-amz-date:Mon, 14 Apr 2014 11:39:01 +0000
/
2014-04-14 12:39:20.556125 7f133f7ee700 15 calculated
digest=TQ5LP8ZeufSqKLumak6Aez4o+Pg=
2014-04-14 12:39:20.556127 7f133f7ee700 15
auth_sign=hx94rY3BJn7HQKA6ERaksNMQPRs=
2014-04-14 12:39:20.556127 7f133f7ee700 15 compare=20
2014-04-14 12:39:20.556130 7f133f7ee700 10 failed to authorize request
2014-04-14 12:39:20.556167 7f133f7ee700 2 req 2:0.009095:s3:GET
/:list_buckets:http status=403
2014-04-14 12:39:20.556396 7f133f7ee700 1 ====== req done
req=0x8ca280 http_status=403 ======
On 04/14/2014 10:47 AM, Peter wrote:
i have the following in ceph.conf:
[client.radosgw.gateway]
host = cephgw
keyring = /etc/ceph/keyring.radosgw.gateway
rgw print continue = false
rgw region = us
rgw region root pool = .us.rgw.root
rgw zone = us-master
rgw zone root pool = .us-master.rgw.root
rgw dns name = cephgw
rgw socket path = /tmp/radosgw-us-master.sock
log file = /var/log/ceph/radosgw-us-master.log
rgw data = /var/lib/ceph/radosgw/ceph-radosgw.us-master-1
i run the following to create a gateway user on gateway node:
radosgw-admin user create --uid=test1 --display-name=test --name
client.radosgw.gateway
Then i setup s3cmd with the access and secret key, and still the same,
'Access Denied'
On 04/12/2014 09:35 PM, Craig Lewis wrote:
On 4/11/14 02:36 , Peter wrote:
Hello,
I am testing out federated gateways. I have created one gateway with
one region and one zone. The gateway appears to work. I am trying to
test it with s3cmd before I continue with more regions and zones.
I create a test gateway user:
radosgw-admin user create --uid=test --display-name=test
but s3cmd keeps getting 'ERROR: S3 error: 403 (AccessDenied):'
i have tried specifying zone and region when creating test gateway
user:
radosgw-admin user create --uid=test1 --rgw-zone=us-master
--rgw-region=us --display-name=test
but i still get S3 403 error.
What am i doing wrong?
thanks
Try your radosgw-admin user create command again with
--name=$radosgw_name .
$radosgw_name is whatever name you gave the radosgw agent in
ceph.conf. Mine is client.radosgw.ceph2, on the host named ceph2.
--
Systems and Storage Engineer, Digital Repository of Ireland (DRI)
High Performance & Research Computing, IS Services
Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
http://www.tchpc.tcd.ie/ |ptier...@tchpc.tcd.ie
Tel: +353-1-896-4466
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
--
Systems and Storage Engineer, Digital Repository of Ireland (DRI)
High Performance & Research Computing, IS Services
Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
http://www.tchpc.tcd.ie/ | ptier...@tchpc.tcd.ie
Tel: +353-1-896-4466
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com