nova/nova/tests/unit/volume
Takashi Kajinami f6206269b7 Fix the wrong exception used to retry detach API calls
When cinderclient receives an error response from API, it raises one
of the exceptions from the cinderclient.exceptions module instead of
the cinderclient.apiclient.exceptions module.

This change fixes the wrong exception used to detect 500 error from
cinder API, so that API calls to detach volumes are properly retried.

Closes-Bug: #1944043
Change-Id: I741cb6b29a67da8c60708c6251c441d778ca74d0
2021-09-20 11:23:40 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_cinder.py Fix the wrong exception used to retry detach API calls 2021-09-20 11:23:40 +00:00