Skip to content

Commit

Permalink
DAOS-9356 test: Fix rebuild/container_create_race.py test timeout on …
Browse files Browse the repository at this point in the history
…IOR (daos-stack#7884)

Update test to run on hardware.

Signed-off-by: Ding Ho [email protected]
  • Loading branch information
dinghwah authored Jan 20, 2022
1 parent 1be2729 commit 6edcb16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions src/tests/ftest/rebuild/container_create_race.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,19 @@ def add_containers_during_rebuild(self, qty=10, index=-1):
cont_oclass = self.params.get("oclass", "/run/io/*")
count = 0
self.container = []
while not self.pool.rebuild_complete() and count < qty:
rebuild_done = False
self.log.info("..Create %s containers and write data during rebuild.",
qty)
while not rebuild_done and count < qty:
count += 1
self.log.info(
"..Creating container %s/%s in pool %s during rebuild",
count, qty, self.pool.uuid)
self.container.append(self.get_container(self.pool))
rebuild_done = self.pool.rebuild_complete()
self.log.info(
"..Rebuild status, rebuild_done= %s", rebuild_done)

self.log.info("..Create %s containers and write data during rebuild.",
qty)
self.container[index].object_qty.value = object_qty
self.container[index].record_qty.value = record_qty
self.container[index].data_size.value = data_size
Expand Down Expand Up @@ -80,7 +84,7 @@ def test_rebuild_container_create(self):
Test steps:
(1)Start IOR before rebuild.
(2)Starting rebuild by killing rank.
(3)Wait for rebuild to start.
(3)Wait for rebuild to start for race condition.
(4)Race condition, create containers, data write/read during
rebuild.
(5)Wait for rebuild to finish.
Expand All @@ -89,7 +93,7 @@ def test_rebuild_container_create(self):
Basic rebuild of container objects of array values with sufficient
numbers of rebuild targets and no available rebuild targets.
:avocado: tags=all,full_regression
:avocado: tags=large
:avocado: tags=hw,large
:avocado: tags=rebuild
:avocado: tags=rebuild_cont_create
Expand Down Expand Up @@ -136,7 +140,7 @@ def test_rebuild_container_create(self):
self.server_managers[0].stop_ranks([rank], self.d_log, force=True)

# Wait for rebuild to start.
self.log.info("..(3)Wait for rebuild to start")
self.log.info("..(3)Wait for rebuild to start for race condition")
self.pool.wait_for_rebuild(True, interval=1)

# Race condition, create containers write and read during rebuild.
Expand Down
2 changes: 1 addition & 1 deletion src/tests/ftest/rebuild/container_create_race.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ testparams:
pool:
mode: 146
name: daos_server
scm_size: 7G
scm_size: 8G
svcn: 1
control_method: dmg
pool_query_timeout: 15
Expand Down

0 comments on commit 6edcb16

Please sign in to comment.