grow_replicas_001_pos fails intermittently
grow_replicas_001_pos fails intermittently - we set pool type using RANDOM in grow_replicas.cfg and include it from both setup and test case itself, which doesn't guarantee that set pool type is the same. The log snippet below shows that we used raidz in setup and are trying to add mirror in the test case.
Test: /opt/zfs-tests/tests/functional/grow_replicas/setup (run as root) [00:06] [PASS] 00:38:15.07 NOTE: Creating pool type: raidz 00:38:15.07 NOTE: No spare disks available. Using slices on c4t0d0 00:38:16.15 SUCCESS: set_partition 0 100mb c4t0d0 00:38:17.23 SUCCESS: set_partition 1 100mb c4t0d0 00:38:18.55 SUCCESS: set_partition 3 100mb c4t0d0 00:38:20.22 SUCCESS: set_partition 4 100mb c4t0d0 00:38:21.07 SUCCESS: /usr/sbin/zpool create -f testpool.730303 raidz c4t0d0s0 c4t0d0s1 00:38:21.17 SUCCESS: /usr/sbin/zfs create testpool.730303/testfs.730303 00:38:21.28 SUCCESS: /usr/sbin/zfs set mountpoint=/testdir730303 testpool.730303/testfs.730303 00:38:21.29 Last login: Mon Jan 25 00:38:14 2016 from antares Test: /opt/zfs-tests/tests/functional/grow_replicas/grow_replicas_001_pos (run as root) [00:29] [FAIL] 00:38:21.53 ASSERTION: A zpool mirror/raidz may be increased in capacity by adding a disk. 00:38:21.61 SUCCESS: /usr/sbin/zfs set compression=off testpool.730303/testfs.730303 00:38:49.65 write failed (-1), good_writes = 7121, error: No space left on device 00:38:50.36 invalid vdev specification use '-f' to override the following errors: mismatched replication level: pool uses raidz and new vdev is mirror 00:38:50.36 ERROR: /usr/sbin/zpool add testpool.730303 mirror c4t0d0s3 c4t0d0s4 exited 1 00:38:50.37 Last login: Mon Jan 25 00:38:14 2016 from antares Test: /opt/zfs-tests/tests/functional/grow_replicas/cleanup (run as root) [00:02] [PASS] 00:38:53.04 SUCCESS: /usr/sbin/zpool create -f ZZZ c4t0d0 00:38:53.27 Last login: Mon Jan 25 00:38:21 2016 from antares
Updated by Electric Monk over 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
commit 633aa8079184298dfc2ae6966d0d9cc897712b57 Author: Yuri Pankov <firstname.lastname@example.org> Date: 2016-02-25T05:58:25.000Z 6575 grow_replicas_001_pos fails intermittently Reviewed by: John Kennedy <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>