Wrong exception is expected to retry volume detachment API calls
Bug #1944043 reported by
Takashi Kajinami
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Takashi Kajinami | ||
Queens |
New
|
Undecided
|
Unassigned | ||
Rocky |
New
|
Undecided
|
Unassigned | ||
Stein |
New
|
Undecided
|
Unassigned | ||
Train |
In Progress
|
Undecided
|
Unassigned | ||
Ussuri |
In Progress
|
Undecided
|
Unassigned | ||
Victoria |
Fix Committed
|
Undecided
|
Unassigned | ||
Wallaby |
Fix Committed
|
Undecided
|
Unassigned | ||
Xena |
Fix Released
|
Undecided
|
Unassigned | ||
Yoga |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
The following change introduced the logic to retry cinder API calls to detach volumes.
https:/
The logic detects the InternalServerError class from cindreclient.
However this is wrong and these API calls raises the ClientException class from cinderclient.
Steps to reproduce
==================
N/A
Actual result
=============
N/A
Environment
===========
N/A
Logs & Configs
==============
N/A
summary: |
- Wrong exception type is expected to retry volume detachment API calls + Wrong exception is expected to retry volume detachment API calls |
Changed in nova: | |
assignee: | nobody → Takashi Kajinami (kajinamit) |
To post a comment you must log in.
The following traceback was captured in stable/train base deployment. exceptions. ClientException is raised when API call fails.
In this case 504 is returned from cinder API instead of 503 but the traceback shows that cinderclient.
~~~ manager [req-d4ea1834- 53a1-4786- 8c9a-f495307ec9 d3 99f5628a6a55449 fae14d97881a054 ce e722c8ab654a440 e8d3cdc5ef592f2 1b - default default] [instance: 3a9b54b5- 35b7-4427- bc64-f88b0d8949 b3] Detaching volume 35ff73cd- ebe2-40b3- 8be6-f91aca202a a8 rpc.server [req-d4ea1834- 53a1-4786- 8c9a-f495307ec9 d3 99f5628a6a55449 fae14d97881a054 ce e722c8ab654a440 e8d3cdc5ef592f2 1b - default default] Exception during message handling: cinderclient.excep eption: Gateway Timeout (HTTP 504) rpc.server Traceback (most recent call last): rpc.server File "/usr/lib/ python3. 6/site- packages/ oslo_messaging/ rpc/server. py", line 165, in _process_incoming rpc.server res = self.dispatcher .dispatch( message) rpc.server File "/usr/lib/ python3. 6/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 274, in dispatch rpc.server return self._do_ dispatch( endpoint, method, ctxt, args) rpc.server File "/usr/lib/ python3. 6/site- packages/ nova/compute/ manager. py", line 6237, in _detach_volume rpc.server attachment_ id=attachment_ id, destroy_ bdm=destroy_ bdm) rpc.server File "/usr/lib/ python3. 6/site- packages/ nova/virt/ block_device. py", line 486, in detach rpc.server attachment_id, destroy_bdm) rpc.server File "/usr/lib/ python3. 6/site- packages/ cinderclient/ client. py", line 223, in delete rpc.server return self._cs_ request( url, 'DELETE', **kwargs) rpc.server File "/usr/lib/ python3. 6/site- packages/ cinderclient/ client. py", line 205, in _cs_request rpc.server return self.request(url, method, **kwargs) rpc.server File "/usr/lib/ python3. 6/site- packages/ cinderclient/ client. py", line 191, in request rpc.server raise exceptions. from_response( resp, body) rpc.server cinderclient. exceptions. ClientException : Gateway Timeout (HTTP 504) rpc.server
2021-09-09 12:11:14.000 7 INFO nova.compute.
...
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
tions.ClientExc
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
...
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
...
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
2021-09-09 12:12:14.512 7 ERROR oslo_messaging.
~~~