-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Fix "add_nested_replacing_spare" test case
Use 'zpool reopen' instead of 'zpool scrub' to kick in the spare device: this is required to avoid spurious failures caused by a race condition in events processing by the ZFS Event Daemon: P1 (zpool scrub) P2 (zed) --- zfs_ioc_pool_scan() -> dsl_scan() -> vdev_reopen() -> vdev_set_state(VDEV_STATE_CANT_OPEN) zfs_ioc_vdev_attach() -> spa_vdev_attach() -> dsl_resilver_restart() -> dsl_sync_task() -> dsl_scan_setup_check() <- dsl_scan_setup_check(): EBUSY Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Requires-builders: test
- Loading branch information
Showing
4 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# This file and its contents are supplied under the terms of the | ||
# Common Development and Distribution License ("CDDL"), version 1.0. | ||
# You may only use this file in accordance with the terms of version | ||
# 1.0 of the CDDL. | ||
# | ||
# A full copy of the text of the CDDL should have accompanied this | ||
# source. A copy of the CDDL is also available via the Internet at | ||
# http://www.illumos.org/license/CDDL. | ||
# | ||
|
||
[DEFAULT] | ||
pre = setup | ||
quiet = False | ||
pre_user = root | ||
user = root | ||
timeout = 600 | ||
post_user = root | ||
post = cleanup | ||
outputdir = /var/tmp/test_results | ||
tags = ['functional'] | ||
|
||
[tests/functional/cli_root/zpool_add] | ||
tests = ['add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare', | ||
'add_nested_replacing_spare', 'add_nested_replacing_spare'] | ||
tags = ['functional', 'cli_root', 'zpool_add'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters