Activity log for bug #1427212

Date Who What changed Old value New value Message
2015-03-02 13:17:16 Ihar Hrachyshka bug added bug
2015-03-02 13:21:39 Ihar Hrachyshka description We are having a leap second in Juno: http://www.usatoday.com/story/tech/2015/01/08/computer-chaos-feares/21433363/ It will mean we'll have 61 seconds at that moment. datetime module is not leap aware and will fail with "ValueError: second must be in 0..59" if seconds=60 is passed. The proper response to it would be to avoid using datetime and switch to time module that operates with struct_time objects. The problem is that timeutils API is bound to datetime. Specifically, the following functions are affected: - parse_strtime - utcnow - unmarshall_time This may mean that we can't fix it as a bug, but may need to introduce new proper time API. An easy way to check that we're affected is e.g.: + def test_unmarshall_time_leap_second(self): + leap_time = dict(day=30, month=6, year=2015, + hour=23, minute=59, second=60, microsecond=0) + leap_datetime = timeutils.unmarshall_time(leap_time) + We are having a leap second in June: http://www.usatoday.com/story/tech/2015/01/08/computer-chaos-feares/21433363/ It will mean we'll have 61 seconds at that moment. datetime module is not leap aware and will fail with "ValueError: second must be in 0..59" if seconds=60 is passed. The proper response to it would be to avoid using datetime and switch to time module that operates with struct_time objects. The problem is that timeutils API is bound to datetime. Specifically, the following functions are affected: - parse_strtime - utcnow - unmarshall_time This may mean that we can't fix it as a bug, but may need to introduce new proper time API. An easy way to check that we're affected is e.g.: + def test_unmarshall_time_leap_second(self): + leap_time = dict(day=30, month=6, year=2015, + hour=23, minute=59, second=60, microsecond=0) + leap_datetime = timeutils.unmarshall_time(leap_time) +
2015-03-02 19:52:21 Doug Hellmann oslo.utils: status New Confirmed
2015-03-02 19:52:24 Doug Hellmann oslo.utils: importance Undecided Low
2015-03-03 09:57:32 Julien Danjou oslo.utils: assignee Julien Danjou (jdanjou)
2015-03-03 09:57:43 Julien Danjou bug added subscriber Julien Danjou
2015-03-06 17:29:30 Éric Araujo bug added subscriber Éric Araujo
2015-11-16 06:45:09 ChangBo Guo(gcb) oslo.utils: assignee Julien Danjou (jdanjou) Ihar Hrachyshka (ihar-hrachyshka)
2015-11-16 06:45:17 ChangBo Guo(gcb) oslo.utils: status Confirmed Fix Committed
2015-11-16 20:23:33 Davanum Srinivas (DIMS) oslo.utils: status Fix Committed Fix Released
2015-11-16 20:23:33 Davanum Srinivas (DIMS) oslo.utils: milestone 2.8.0