Increase server side retries

This is to take into account possible increases in time gap between
operations from recent firmware versions, for example in Dell idrac
series 5.x where the time gap increased to almost 20 seconds from
the 10 seconds of the 4.x series, and avoid timeouts.

Change-Id: I371e4a2d294a3a87eddb230f13bca713e304f948
This commit is contained in:
Riccardo Pittau 2022-11-07 10:42:55 +01:00
parent 5d6e5486fa
commit 67185bf4af
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,6 @@
fixes:
- |
To avoid timeouts with recent versions of firmwares we need to increase
the number of server side retries.
For example, in idrac firmware series 5.x the time gap between operations
is almost 20 seconds instead of the 10 seconds in the 4.x series.

View File

@ -28,7 +28,7 @@ from sushy import utils
LOG = logging.getLogger(__name__)
_SERVER_SIDE_RETRIES = 5
_SERVER_SIDE_RETRIES = 10
_SERVER_SIDE_RETRY_DELAY = 3

View File

@ -401,8 +401,8 @@ class ConnectorOpTestCase(base.TestCase):
self.conn._op('GET', 'http://foo.bar')
exc = cm.exception
self.assertEqual(http_client.INTERNAL_SERVER_ERROR, exc.status_code)
self.assertEqual(5, mock_sleep.call_count)
self.assertEqual(6, self.request.call_count)
self.assertEqual(10, mock_sleep.call_count)
self.assertEqual(11, self.request.call_count)
def test_access_error(self):
self.conn._auth = None