From a0b71ca4748d4208bd5c2b026c2eb4edb83ef25b Mon Sep 17 00:00:00 2001 From: Ding-Hwa Ho Date: Fri, 6 Mar 2026 17:01:10 -0500 Subject: [PATCH] DAOS-18621 test: Pool create after stopping rank 0 Description: add testcase test_create_after_stop_rank Skip-unit-tests: true Test-repeat: 3 Signed-off-by: Ding-Hwa Ho --- src/tests/ftest/pool/create.py | 22 +++++++++++++++++++++- src/tests/ftest/pool/create.yaml | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/tests/ftest/pool/create.py b/src/tests/ftest/pool/create.py index 89bd8a2bd75..b15a42af70b 100644 --- a/src/tests/ftest/pool/create.py +++ b/src/tests/ftest/pool/create.py @@ -1,6 +1,6 @@ """ (C) Copyright 2021-2023 Intel Corporation. -(C) Copyright 2025 Hewlett Packard Enterprise Development LP +(C) Copyright 2025-2026 Hewlett Packard Enterprise Development LP SPDX-License-Identifier: BSD-2-Clause-Patent """ @@ -137,3 +137,23 @@ def test_create_no_space_loop(self): self.fail( "Destroying a large capacity pool that spans across all but the first server " "should succeed.") + + def test_create_after_stop_rank(self): + """JIRA ID: DAOS-18621. + + Test Description: + Create a single pool with 40% usage that utilizes all the persistent memory and all + the SSD capacity on all of the servers after stop rank 0. + Verify that pool creation succeed. + + :avocado: tags=all,daily_regression + :avocado: tags=hw,medium + :avocado: tags=pool + :avocado: tags=PoolCreateTests,test_create_after_stop_rank + """ + # Stop rank 0 on server + self.server_managers[0].stop_ranks([0]) + + # Create 1 pool using 40% of the available capacity + pool = add_pool(self, namespace="/run/pool_3/*", create=False) + check_pool_creation(self, [pool], 120) diff --git a/src/tests/ftest/pool/create.yaml b/src/tests/ftest/pool/create.yaml index 87a5a385fab..53229600503 100644 --- a/src/tests/ftest/pool/create.yaml +++ b/src/tests/ftest/pool/create.yaml @@ -32,3 +32,6 @@ pool_2: size: 90% svcn: 1 quantity: 1 + +pool_3: + size: 40%