Rescheduling continuous audits from FAILED nodes

This patch set adds background job that reschedules CONTINUOUS
audits from FAILED to ACTIVE decision engine nodes using round-robin
algorithm. It also contains fix for main[1] HA PS about filtering audits.

[1]: https://review.openstack.org/#/c/578102/

Partially-Implements: blueprint support-watcher-ha-active-active-mode
Change-Id: Ib248a6cd3adbd3927c47db6bb819300361492411
This commit is contained in:
Alexander Chadin
2018-07-26 12:23:33 +03:00
committed by Alexander Chadin
parent e426a015ee
commit 20ffb5945f
6 changed files with 51 additions and 15 deletions

View File

@@ -62,7 +62,7 @@ class TestCancelOngoingAudits(db_base.DbTestCase):
goal=self.goal,
hostname='hostname1',
state=objects.audit.State.ONGOING)
cfg.CONF.set_override('host', 'hostname1')
cfg.CONF.set_override("host", "hostname1")
@mock.patch.object(objects.audit.Audit, 'save')
@mock.patch.object(objects.audit.Audit, 'list')