5 retries executed on deadlock by default but config shows 20
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Undecided
|
Joanna Taryma |
Bug Description
The number of retries in case of database deadlock depends on configuration option [database]
The default value of configuration option [database]
Due to that, sample configuration for ironic will contain:
#db_max_retries = 20
Which can be misleading for operators - they may think the default is 20.
There was a patch posted to oslo.db to decrease the value to 5, but the value of 20 was rationalized:
https:/
Due to that, overwriting of the default value should be removed from ironic.
Changed in ironic: | |
assignee: | nobody → Joanna Taryma (jtaryma) |
Changed in ironic: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/440865 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=66b0bcfd084 0a1c0e97c4337db 8a8ad2c98f66a7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 66b0bcfd0840a1c 0e97c4337db8a8a d2c98f66a7
Author: Joanna Taryma <email address hidden>
Date: Fri Mar 10 10:41:27 2017 -0800
Remove overwriting the default value of db_max_retries.
Remove overwriting the default value of db_max_retries, instead use
default value defined by oslo.db which is 20.
Adjust the default value of db_max_retries in the release note and sample
configuration file.
Closes-Bug: #1671629 ebab895cc91958d 502b9fce884
Change-Id: I1e5f632d687c1c