Skip to content

Commit 5ed475e

Browse files
authored
Merge pull request #701 from anrao19/tfa_dbr
[TFA] issue with disabling dbr
2 parents 06dfe06 + c454b4c commit 5ed475e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,15 @@ def test_exec(config, ssh_con):
397397
if config.sharding_type == "dynamic":
398398
log.info("Verify if resharding list is empty")
399399
reshard_list_op = json.loads(utils.exec_shell_cmd("radosgw-admin reshard list"))
400-
if not reshard_list_op:
401-
log.info(
402-
"for dynamic number of shards created should be greater than or equal to number of expected shards"
403-
)
404-
log.info(f"no_of_shards_expected: {num_shards_expected}")
405-
if int(num_shards_created) >= int(num_shards_expected):
406-
log.info("Expected number of shards created")
407-
else:
400+
if reshard_list_op:
401+
for reshard in reshard_list_op:
402+
if reshard["bucket_name"] == bucket.name:
403+
raise TestExecError("bucket still exist in reshard list")
404+
log.info(
405+
"for dynamic number of shards created should be greater than or equal to number of expected shards"
406+
)
407+
log.info(f"no_of_shards_expected: {num_shards_expected}")
408+
if int(num_shards_created) < int(num_shards_expected):
408409
raise TestExecError("Expected number of shards not created")
409410

410411
if config.test_ops.get("upload_after_suspend", False):

0 commit comments

Comments
 (0)