test_list_get_volume_attachments calling detach volume twice but failed to receive the right exception in the second call
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
New
|
Undecided
|
Unassigned |
Bug Description
In this test, we attach the volume to an instance and detach it after.
There are two calls of detaching the volume:
- first call is done by the test (https:/
- second call is done by a cleanup at the end of the tests ( self.addCleanup
)
The first call for detaching the volume is a success. But the second call returns this error: "{"badRequest": {"message": "Invalid volume: Invalid input received: Invalid volume: Unable to detach volume. Volume status must be 'in-use' and attach_status must be 'attached' to detach. (HTTP 400) (Request-ID: req-f7a17aff-
We hit the issue in our third party CI running for Cinder.
The second call will call the method "call_ignore_
In our CI, it doesn't receive this exception because the rest client raises BadRequest exception (400) instead of NotFound (404).
The complete logs of the tests can be found here (http://
summary: |
test_list_get_volume_attachments calling detach volume twice but failed - to receive the exception in the second call + to receive the right exception in the second call |
fix is up for this- https:/ /review. openstack. org/#/c/ 510951/