[radosgw] Admin REST API wrong results

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

 



Sending this again, because it wasn't published to the mailing list (I
think because I wasn't a subscriber).

Hi,

I'm using the radosgw REST API (via Python's boto library and also using
some radosgw-agent methods) to fetch some data from Ceph (version 0.85).

When I try to get the admin log for some specific dates, the radosgw seems
to give me bad results.

For example when I try to get entries since 2014-09-30 08:00:00+00:00, it
seems to give me ALL entries for this day instead of entries since 8 AM.

Here's a sample:

{u'marker': u'1_1412065259.449518_102.1', u'entries': [{u'timestamp':
u'2014-09-30 07:35:08.774367Z', u'key': u'testbucket:default.4146.33',
u'entity_type': u'bucket'}, {u'timestamp': u'2014-09-30 07:36:23.092266Z',
u'key': u'testbucket:default.4146.33', u'entity_type': u'bucket'},
{u'timestamp': u'2014-09-30 07:36:37.068249Z', u'key':
u'testbucket:default.4146.34', u'entity_type': u'bucket'}, {u'timestamp':
u'2014-09-30 07:37:38.431647Z', u'key': u'testbucket:default.4146.34',
u'entity_type': u'bucket'}, {u'timestamp': u'2014-09-30 07:37:45.589333Z',
u'key': u'testbucket:default.4146.35', u'entity_type': u'bucket'}, [...]
{u'timestamp': u'2014-09-30 08:20:59.449518Z', u'key':
u'testbucket:default.4146.52', u'entity_type': u'bucket'}], u'truncated':
False}


The apache's access logs:

ceph-rgw:80 192.168.43.1 - - [30/Sep/2014:08:21:09 +0000] "GET
/admin/log?start-time=2014-09-30+08%3A00%3A00%2B00%3A00&type=data&id=82
HTTP/1.1" 200 4480 "-" "Boto/2.31.1 Python/2.7.6 Linux/3.13.0-36-generic"
ceph-rgw:80 192.168.43.1 - - [30/Sep/2014:08:22:13 +0000] "GET
/admin/log?start-time=2014-09-30+08%3A00%3A00%2B00%3A00&type=data&id=82
HTTP/1.1" 200 4480 "-" "Boto/2.31.1 Python/2.7.6 Linux/3.13.0-36-generic"
ceph-rgw:80 192.168.43.1 - - [30/Sep/2014:08:23:29 +0000] "GET
/admin/log?start-time=1412064000.0&type=data&id=82 HTTP/1.1" 400 216 "-"
"Boto/2.31.1 Python/2.7.6 Linux/3.13.0-36-generic"



I've tried different dates (10AM, 7AM), etc, but nothing seems to change.
Full result of admin/log on pastebin in case it is useful to someone:
http://pastebin.com/KSTXdGw5


Thanks,


Patrycja Szab?owska
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20140930/d005d52b/attachment.htm>


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux