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 <ceph-users-bounces@xxxxxxxxxxxxxx> 代表 zhu tong <besthopeall@xxxxxxxxxxx>
发送时间: 2016年9月10日 7:48:11 收件人: ceph-users@xxxxxxxxxxxxxx 主题: 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: 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
Thanks! |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com