Objects, created with Rados Gateway, have incorrect UTC timestamp

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

 



Hi,

I have a problem with timestamps of objects created in Rados Gateway. Timestamps are supposed to be in UTC timezone but instead I have strange offset shift.

Server with Rados Gateway use MSK timezone (GMT +3). NTP is set, up and running correctly. Rados Gateway and Ceph has no objects (usage log is empty). Then I use Boto to create some buckets and objects:

$ date
Чтв Фев 26 11:29:05 MSK 2015
$ python fill_smth.py 
$ date
Чтв Фев 26 11:29:16 MSK 2015
As you can see, my local time is 11:29:05, in UTC it is 09:29:05. After that I fetch Rados Gateway usage log:

$ date Чтв Фев 26 11:35:35 MSK 2015 $ radosgw-admin usage show --uid=2733d594-2f5a-46f7-9174-68000ce754c8 { "entries": [ { "owner": "2733d594-2f5a-46f7-9174-68000ce754c8", "buckets": [ { "bucket": "0f2f1c7e-f420-4b36-8ff0-333fd9523902", "time": "2015-02-26 05:00:00.000000Z", "epoch": 1424926800, "categories": [ { "category": "create_bucket", "bytes_sent": 0, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "get_obj", "bytes_sent": 88, "bytes_received": 0, "ops": 4, "successful_ops": 4}, { "category": "list_bucket", "bytes_sent": 1585, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "put_obj", "bytes_sent": 0, "bytes_received": 88, "ops": 4, "successful_ops": 4}]}, { "bucket": "6ab239b4-1806-441f-8831-85fb3c0cf7a8", "time": "2015-02-26 05:00:00.000000Z", "epoch": 1424926800, "categories": [ { "category": "create_bucket", "bytes_sent": 0, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "get_obj", "bytes_sent": 110, "bytes_received": 0, "ops": 5, "successful_ops": 5}, { "category": "list_bucket", "bytes_sent": 1916, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "put_obj", "bytes_sent": 0, "bytes_received": 110, "ops": 5, "successful_ops": 5}]}, { "bucket": "b461cb37-c7a0-4e56-8444-b190452f5c6a", "time": "2015-02-26 05:00:00.000000Z", "epoch": 1424926800, "categories": [ { "category": "create_bucket", "bytes_sent": 0, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "get_obj", "bytes_sent": 44, "bytes_received": 0, "ops": 2, "successful_ops": 2}, { "category": "list_bucket", "bytes_sent": 923, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "put_obj", "bytes_sent": 0, "bytes_received": 44, "ops": 2, "successful_ops": 2}]}, { "bucket": "e7d7ef55-9eeb-4d43-9d58-48dd373261ba", "time": "2015-02-26 05:00:00.000000Z", "epoch": 1424926800, "categories": [ { "category": "create_bucket", "bytes_sent": 0, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "get_obj", "bytes_sent": 66, "bytes_received": 0, "ops": 3, "successful_ops": 3}, { "category": "list_bucket", "bytes_sent": 1254, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "put_obj", "bytes_sent": 0, "bytes_received": 66, "ops": 3, "successful_ops": 3}]}, { "bucket": "f4988ef9-ab83-40ef-8a51-b734a65374f5", "time": "2015-02-26 05:00:00.000000Z", "epoch": 1424926800, "categories": [ { "category": "create_bucket", "bytes_sent": 0, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "get_obj", "bytes_sent": 110, "bytes_received": 0, "ops": 5, "successful_ops": 5}, { "category": "list_bucket", "bytes_sent": 1916, "bytes_received": 0, "ops": 1, "successful_ops": 1}, { "category": "put_obj", "bytes_sent": 0, "bytes_received": 110, "ops": 5, "successful_ops": 5}]}]}], ... "total": { "bytes_sent": 8012, "bytes_received": 418, "ops": 48, "successful_ops": 48}}]}[ec2-user@node3 ~]$
Timestamp is "2015-02-26 05:00:00.000000Z" so it means that it is GMT -3 (expected timestamp is 2015-02-26 09:00:00.000000Z) . So it means, that tiimezone offset applied 2 times.
Right now if I want to fetch any usage information on the time range I have to query 3 hours back from UTC. The same problem with REST API. Could you please advise or suggest me anything?
Thanks!

--
WBR,
Sergey Arkhipov (+7 920 018-94-04)
ASD Technologies Company
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[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