Project

General

Profile

Bug #30798

Fix process alerts traceback

Added by William Grzybowski about 1 year ago. Updated 10 months ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 324, in run
    await self.future
  File "/usr/local/lib/python3.6/site-packages/middlewared/job.py", line 350, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/alert.py", line 160, in process_alerts
    await self.__run_alerts()
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/alert.py", line 267, in __run_alerts
    if not alert_source.schedule.should_run(datetime.utcnow(), self.alert_source_last_run[alert_source.name]):
  File "/usr/local/lib/python3.6/site-packages/middlewared/alert/schedule.py", line 23, in should_run
    local_last_run = last_run + tzlocal().utcoffset(last_run)
  File "/usr/local/lib/python3.6/site-packages/dateutil/tz/tz.py", line 178, in utcoffset
    if self._isdst(dt):
  File "/usr/local/lib/python3.6/site-packages/dateutil/tz/tz.py", line 250, in _isdst
    if self.is_ambiguous(dt):
  File "/usr/local/lib/python3.6/site-packages/dateutil/tz/tz.py", line 212, in is_ambiguous
    (naive_dst != self._naive_is_dst(dt - self._dst_saved)))
OverflowError: date value out of range

Associated revisions

Revision e7d8f686 (diff)
Added by Vladimir Vinogradenko about 1 year ago

fix(alert): Fix first run of anything under CrontabSchedule

Ticket: #30798

History

#1 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Not Started to In Progress

#2 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from In Progress to Done

#3 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Process alerts traceback to Fix process alerts traceback

#4 Updated by Dru Lavigne 12 months ago

  • Status changed from Done to Ready for Testing

#6 Updated by Dru Lavigne 10 months ago

  • Status changed from Ready for Testing to Done
  • Needs QA changed from Yes to No

Also available in: Atom PDF