Tempest swift tests fail randomly. get_object_delete function throws BucketAlreadyExits exception which should be handled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Medium
|
Sampat Ponnaganti |
Bug Description
Tempest Swift tests fail randomly with b'BucketAlready
Issue:
wait_for_
update is_resource_deleted function here and handle exception.Conflict and return False. (https:/
tempest.
class ObjectClient(
def is_resource_
try:
except exceptions.
return True
return False
Traceback:
Traceback (most recent call last):
File " /tempest/
self.delete_
File " /tempest/
delete_
File " /tempest/
object_
File " /tempest/
if self.is_
File " /tempest/
self.get_
File " /tempest/
resp, body = self.get(url, headers=headers)
File " /tempest/
return self.request('GET', url, extra_headers, headers)
File " /tempest/
self._error_
File " /tempest/
raise exceptions.
tempest.
Details: b'BucketAlready
HTTP Calls made:
2021-07-29 05:55:26,315 226 INFO [tempest.
2021-07-29 05:55:26,315 226 DEBUG [tempest.
Body: None
Response - Headers: {'date': 'Thu, 29 Jul 2021 05:55:26 GMT', 'content-type': 'text/plain; charset=utf-8', 'content-length': '19', 'connection': 'close', 'x-trans-id': 'tx000000000000
Body: b'BucketAlready
To reproduce:
run the test such that the object/container is not deleted within the build_interval:
https:/
description: | updated |
description: | updated |
description: | updated |
summary: |
- Tempest swift test fail. get_object_delete function throws + Tempest swift tests fail randomly. get_object_delete function throws BucketAlreadyExits exception which should be handled |
Changed in tempest: | |
importance: | Undecided → Medium |
assignee: | nobody → Sampat Ponnaganti (sp810x) |
Fix proposed to branch: master /review. opendev. org/c/openstack /tempest/ +/803058
Review: https:/