croniter cause alarm time constraint fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
ZhiQiang Fan |
Bug Description
import croniter
import datetime
import pytz
start = '0 19 31 * *'
now = datetime.
print 'utcnow', now
cron = croniter.
print cron.get_
print cron.get_
print 'cron prev', cron.get_
the output is:
utcnow 2015-03-31 19:30:00
2015-03-31 19:00:00
2015-05-31 19:00:00
cron prev 2015-05-01 19:00:00
This cause our alarm will not be triggered correctly
The solution may be in croniter, or we can examine the way we use it.
A workaround can be, copy that object in alarm evaluator: https:/
Changed in ceilometer: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
description: | updated |
Changed in ceilometer: | |
importance: | Undecided → Medium |
Changed in ceilometer: | |
milestone: | none → kilo-rc1 |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/169713
Review: https:/