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.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /809934 /opendev. org/openstack/ nova/commit/ f6206269b71d9bc af65aa0313c21cc 6b75a54fb3
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit f6206269b71d9bc af65aa0313c21cc 6b75a54fb3
Author: Takashi Kajinami <email address hidden>
Date: Sun Sep 19 00:06:56 2021 +0900
Fix the wrong exception used to retry detach API calls
When cinderclient receives an error response from API, it raises one exceptions module instead of apiclient. exceptions module.
of the exceptions from the cinderclient.
the cinderclient.
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 8c60708c6251c44 1d778ca74d0
Change-Id: I741cb6b29a67da