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
(cherry picked from commit f6206269b71d9bcaf65aa0313c21cc6b75a54fb3)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /829049 /opendev. org/openstack/ nova/commit/ 513241a7e4f3f32 46c75e66a910db6 c864c3981e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 513241a7e4f3f32 46c75e66a910db6 c864c3981e
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 af65aa0313c21cc 6b75a54fb3)
Change-Id: I741cb6b29a67da
(cherry picked from commit f6206269b71d9bc