]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix the eqlx driver to retry on ssh timeout
authorrajinir <rajini_ram@dell.com>
Tue, 20 Jan 2015 19:52:32 +0000 (13:52 -0600)
committerrajinir <rajini_ram@dell.com>
Fri, 23 Jan 2015 00:39:51 +0000 (18:39 -0600)
commit440beba26d0bc6c27ff837a6772c05a901ec23de
treeb38c0db38d0b1faf82264bfe57fa780416a7c433
parent7512734c80d5ed11915d8e85805918d480d1ecba
Fix the eqlx driver to retry on ssh timeout

When the ssh session is timing out, the driver
should make attempts to retry based on the value
in eqlx_cli_max_retries. Instead it was raising
the exception and bailing out on a single attempt.

Fixed the driver to raise a different exception
so the ssh sessions can be retried.

Added unit tests to ensure the max retries
happen

Also fixed the actual attempts made in the message

Change-Id: I9bda46f9ef63eec436a381da3c96c09ce77c31ef
Closes-Bug: #1412940
cinder/tests/test_eqlx.py
cinder/volume/drivers/eqlx.py