Merge "Fix: increase timeout for remove-disk"

This commit is contained in:
Zuul 2023-03-27 16:32:21 +00:00 committed by Gerrit Code Review
commit 7b0bc3699f
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ def reweight_osd(osd_id, timeout=300):
], timeout=timeout)
def destroy(osd_id, purge=False, timeout=300):
def destroy(osd_id, purge=False, timeout=600):
"""Destroy or purge an OSD id."""
for _ in range(10):
# We might get here before the OSD is marked as down. As such,

View File

@ -94,7 +94,7 @@ class RemoveDiskActionTests(CharmTestCase):
)
check_call.assert_any_call(
prefix_args + ['osd', 'purge', 'osd.1', '--yes-i-really-mean-it'],
timeout=300
timeout=600
)
check_call.assert_any_call(
prefix_args + ['osd', 'crush', 'reweight', 'osd.1', '0'],