Wrap all DB write operations with oslo_db decorator to retry on deadlock. DBDeadlock exception can be raised quite often on Galera clusters under load. This also fixes an issue which causes conductor's periodic tasks to stop executing. Closes-Bug: #1637210 Closes-Bug: #1639338 Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com> Co-Authored-By: Joanna Taryma <joanna.taryma@intel.com> Change-Id: I61db83637adfd98a5394d1f570f3de4302c93497
13 lines
532 B
YAML
13 lines
532 B
YAML
---
|
|
fixes:
|
|
- Fixes an issue which caused conductor's periodic tasks to stop executing.
|
|
See https://bugs.launchpad.net/ironic/+bug/1637210
|
|
features:
|
|
- Adds DBDeadlock handling which may improve stability when using Galera.
|
|
See https://bugs.launchpad.net/ironic/+bug/1639338
|
|
upgrade:
|
|
- All DB API methods doing database writes now retry on deadlock. The
|
|
``[database]db_max_retries`` configuration option specifies the maximum
|
|
number of times to retry, and can be customised if necessary. It is 5 by
|
|
default.
|