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)
(cherry picked from commit 513241a7e4f3f3246c75e66a910db6c864c3981e)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /866084 /opendev. org/openstack/ nova/commit/ 7168314dd125fca 8d1cecac035477e a0314ab828
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 7168314dd125fca 8d1cecac035477e a0314ab828
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) 46c75e66a910db6 c864c3981e)
Change-Id: I741cb6b29a67da
(cherry picked from commit f6206269b71d9bc
(cherry picked from commit 513241a7e4f3f32