ironic/ironic
Harald Jensås 4cf0147e86 Exclude current conductor from offline_conductors
In some cases the current conductor may have failed to updated
the heartbeat timestamp due to failure of resource starvation.
When this occurs the dbapi get_offline_conductors method will
include the current conductor in its return value.

In this scenario the conductor may end up forcefully remove
node reservations or allocations from itself, triggering takeover
which fail on-going operations.

This change adds a wrapper to exclude the current conductor.
The wrapper will log a warning to raise the issue.

Related-Bug: #1970484
Stroy: 2010016
Task: 45204
Change-Id: I6a8f38934b475f792433be6f0882540b82ca26c1
2022-04-28 10:28:26 +02:00
..
api Merge "Create API documentation from docstrings" 2022-03-17 15:35:42 +00:00
cmd Start API after conductor is started in the combined executable 2022-03-24 18:07:51 +01:00
common Prepare Yoga release with 20.1 2022-03-22 21:41:34 -03:00
conductor Exclude current conductor from offline_conductors 2022-04-28 10:28:26 +02:00
conf Merge "Add more sources to redfish firmware upgrade" 2022-03-01 15:10:19 +00:00
db Enable foreign keys in SQLite 2021-12-15 14:58:53 +01:00
dhcp Add dhcp options for each ip_version once 2022-01-07 16:33:05 +01:00
drivers Merge "[iRMC] Change the way to get irmc-info in raid" 2022-04-27 13:22:29 +00:00
hacking Fix the remaining hacking issues 2020-03-31 13:40:00 +00:00
objects Explicit parameter to distinguish partition/whole-disk images 2022-01-28 19:13:13 +01:00
tests Exclude current conductor from offline_conductors 2022-04-28 10:28:26 +02:00
__init__.py Move eventlet monkey patch code 2017-03-02 13:48:18 +02:00
version.py Correct version.py and update current version string 2014-03-21 13:50:05 -07:00