exception when running continuous audit

Bug #1782731 reported by licanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Undecided
licanwei

Bug Description

2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default [req-ef3778ba-f2aa-4dce-b802-4f75dd9250a5 - - - - -] Job "execute_audit (trigger: interval[0:00:50], next run at: 2018- 07-19 15:36:32 CST)" raised an exception: AttributeError: 'NoneType' object has no attribute 'remove_job'
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default Traceback (most recent call last):
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default File "/usr/lib/python2.7/site-packages/apscheduler/executors/base.py", line 112, in run_job
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default retval = job.func(*job.args, **job.kwargs)
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default File "/usr/lib/python2.7/site-packages/watcher/decision_engine/audit/continuous.py", line 96, in execute_audit
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default if not self._is_audit_inactive(audit):
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default File "/usr/lib/python2.7/site-packages/watcher/decision_engine/audit/continuous.py", line 68, in _is_audit_inactive
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default job.args[0].uuid == audit.uuid][0].remove()
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default File "/usr/lib/python2.7/site-packages/apscheduler/job.py", line 82, in remove
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default self._scheduler.remove_job(self.id, self._jobstore_alias)
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default AttributeError: 'NoneType' object has no attribute 'remove_job'
2018-07-19 15:35:42.047 12426 ERROR apscheduler.executors.default

licanwei (li-canwei2)
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

Fix proposed to branch: master
Review: https://review.openstack.org/584302

Changed in watcher:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.openstack.org/584302
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=4022714f5d5981c70f7569bf73505bef2221e0ae
Submitter: Zuul
Branch: master

commit 4022714f5d5981c70f7569bf73505bef2221e0ae
Author: licanwei <email address hidden>
Date: Fri Jul 20 03:07:59 2018 -0700

    Check job before removing it

    Change-Id: Ibbd4da25fac6016a0d76c8f810ac567f6fd075f1
    Closes-Bug: #1782731

Changed in watcher:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.11.0

This issue was fixed in the openstack/watcher 1.11.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/612643

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (stable/pike)

Reviewed: https://review.openstack.org/612643
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=343a65952a04eee526c1a88a1282b3f8da6ec750
Submitter: Zuul
Branch: stable/pike

commit 343a65952a04eee526c1a88a1282b3f8da6ec750
Author: licanwei <email address hidden>
Date: Fri Jul 20 03:07:59 2018 -0700

    Check job before removing it

    Change-Id: Ibbd4da25fac6016a0d76c8f810ac567f6fd075f1
    Closes-Bug: #1782731
    (cherry picked from commit 4022714f5d5981c70f7569bf73505bef2221e0ae)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.4.2

This issue was fixed in the openstack/watcher 1.4.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.