Merge "Use min_command_interval when ironic does IPMI retries"

This commit is contained in:
Zuul 2020-07-15 12:43:47 +00:00 committed by Gerrit Code Review
commit 079b22a800
3 changed files with 8 additions and 5 deletions

View File

@ -486,10 +486,7 @@ def _exec_ipmitool(driver_info, command, check_exit_code=None,
args.append('1')
args.append('-N')
if CONF.ipmi.use_ipmitool_retries:
args.append(str(CONF.ipmi.min_command_interval))
else:
args.append('1')
args.append(str(CONF.ipmi.min_command_interval))
extra_args = {}

View File

@ -1057,7 +1057,7 @@ class IPMIToolPrivateMethodTestCase(
'-U', self.info['username'],
'-v',
'-R', '1',
'-N', '1',
'-N', '5',
'-f', awesome_password_filename,
'A', 'B', 'C',
]

View File

@ -0,0 +1,6 @@
---
fixes:
- |
When Ironic is doing IPMI retries the configured ``min_command_interval``
should be used instead of a default value of ``1``, which may be too short
for some BMCs.