Thank Robin H. Johnson! I've set "debug rgw = 20" in RGW config file and I have seen "NOTICE: now = 1464998270, now_req = 1464973070, exp = 3600" in RGW log file. I see that now is the local time on the RGW server (my timezone is UTC + 7) and now_req is UTC time. This leads to one error in src/ rgw/rgw_rest_s3.cc: int RGW_Auth_S3::authorize_v4(......){ // if (now >= now_req + exp) { dout(10) << "NOTICE: now = " << now << ", now_req = " << now_req << ", exp = " << exp << dendl; return -EPERM; } // Then I tried to set the time on RGW server is UTC time and it works fine ! Is this a bug?
2016-06-03 11:44 GMT+07:00 Robin H. Johnson <robb...@gentoo.org>: > On Fri, Jun 03, 2016 at 11:34:35AM +0700, Khang Nguyễn Nhật wrote: > > s3 = boto3.client(service_name='s3', region_name='', use_ssl=False, > > endpoint_url='http://192.168.1.10:8888', aws_access_key_id=access_key, > > aws_secret_access_key= secret_key, > > config=Config(signature_version='s3v4', > region_name='')) > The region part doesn't seem right. Try setting it to 'ap' or > 'ap-southeast'. > > Failing that, turn up the RGW loglevel to 20, and run a request, then > look at the logs of how it created the signature, and manually compare > them to what your client should have built (with boto in verbose > debugging). > > -- > Robin Hugh Johnson > Gentoo Linux: Dev, Infra Lead, Foundation Trustee & Treasurer > E-Mail : robb...@gentoo.org > GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 > GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136 > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com