I want to see the output of rgw log, so turn the debug mode on. However, after 
running the following command, I can still see a limited log output. So how to 
turn on the debug mode of RGW?

# ceph daemon mon.ceph-node1 config show | grep debug_rgw
    "debug_rgw": "1\/5",

# ceph tell mon.ceph-node1 injectargs --debug-rgw 5/5
injectargs:debug_rgw=5/5



________________________________
发件人: ceph-users <[email protected]> 代表 zhu tong 
<[email protected]>
发送时间: 2016年9月10日 7:48:11
收件人: [email protected]
主题: [ceph-users] ceph admin ops 403 forever


Powerful list, please help!


I have spent hours on figuring out why server always responds with 403 for the 
following request:

GET /{admin}/usage?format=json HTTP/1.1
Host: {fqdn}

s3Key=someKey
s3Secret=someSecret
dateValue=`TZ=GMT date +"%a, %d %b %Y %T"`
dateValue="$dateValue GMT"
host=http://192.168.57.101
if [ "$1" = "--get-usage" ]; then
resource="/admin/usage?format=json"
stringToSign="GET\n\n\n${dateValue}\n${resource}"
signature=`echo -en ${stringToSign} | openssl sha1 -hmac ${s3Secret} -binary | 
base64`
curl -L -v --post301 --post302 -i -X GET \
  -H "Date: ${dateValue}" \
  -H "Authorization: AWS ${s3Key}:${signature}" \
  ${host}${resource}
fi


I have found some help examples:

The official:

https://github.com/ceph/ceph/blob/master/src/test/test_rgw_admin_log.cc


The community starred:

https://github.com/dyarnell/rgwadmin/blob/master/rgwadmin/rgw.py


And i made my authentication just like theirs, with the language only 
difference (I think).


Thanks!

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to