Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case: zfs_allow_004_pos #7249

Closed
behlendorf opened this issue Feb 27, 2018 · 0 comments
Closed

Test case: zfs_allow_004_pos #7249

behlendorf opened this issue Feb 27, 2018 · 0 comments
Labels
Component: Test Suite Indicates an issue with the test framework or a test case

Comments

@behlendorf
Copy link
Contributor

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 17.10
Linux Kernel
Architecture x86_64
ZFS Version zfs-0.7.0-334-g7088545
SPL Version spl-0.7.0-29-g378c6ed

Describe the problem you're observing

Rare failure of zfs_allow_004_pos test case.

Describe how to reproduce the problem

Rarely reproduced by buildbot during automated testing.

Include any warning/errors/backtraces from the system logs

http://build.zfsonlinux.org/builders/Ubuntu%2017.10%20x86_64%20%28TEST%29/builds/395

Test: /usr/share/zfs/zfs-tests/tests/functional/delegate/zfs_allow_004_pos (run as root) [00:09] [FAIL]
19:53:48.95 ASSERTION: Verify option '-d' allow permission to the descendent datasets.
19:53:48.98 SUCCESS: zfs create testpool/testfs/childfs
19:53:49.00 SUCCESS: zfs allow -d staff1 snapshot,reservation,compression,checksum,userprop testpool/testfs
19:53:49.09 SUCCESS: zfs umount testpool/testfs
19:53:49.09 NOTE: user:staff1 zfs snapshot testpool/testfs@snap.snapshot.staff1.2018-02-16-19:53:49-011923239
19:53:49.19 NOTE: user:staff1 zfs set reservation=33554432 testpool/testfs
19:53:49.31 SUCCESS: zfs set reservation=0 testpool/testfs
19:53:49.32 NOTE: staff1 zfs set compression=on testpool/testfs
19:53:49.32 NOTE: user:staff1 zfs set compression=on testpool/testfs
19:53:49.43 NOTE: staff1 zfs set checksum=off testpool/testfs
19:53:49.43 NOTE: user:staff1 zfs set checksum=off testpool/testfs
19:53:49.52 NOTE: user:staff1 zfs set staff1:ts=userprop.staff1.2018-02-16-19:53:49-524621614 testpool/testfs
19:53:49.63 SUCCESS: verify_noperm testpool/testfs snapshot,reservation,compression,checksum,userprop staff1
19:53:49.66 NOTE: user:staff1 zfs snapshot testpool/testfs/childfs@snap.snapshot.staff1.2018-02-16-19:53:49-650431276
19:53:49.82 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.staff1.2018-02-16-19:53:49-650431276
19:53:49.85 SUCCESS: zfs mount testpool/testfs/childfs
19:53:49.85 NOTE: user:staff1 zfs snapshot testpool/testfs/childfs@snap.snapshot.staff1.2018-02-16-19:53:49-650431276
19:53:49.98 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.staff1.2018-02-16-19:53:49-650431276
19:53:49.98 NOTE: user:staff1 mkdir /testpool/testfs/childfs/.zfs/snapshot/snap.snapshot.staff1.2018-02-16-19:53:49-650431276
19:53:50.13 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.staff1.2018-02-16-19:53:49-650431276
19:53:50.13 NOTE: Check filesystem staff1 snapshot testpool/testfs/childfs
19:53:50.13 NOTE: user:staff1 zfs set reservation=33554432 testpool/testfs/childfs
19:53:50.26 SUCCESS: zfs set reservation=0 testpool/testfs/childfs
19:53:50.26 NOTE: Check filesystem staff1 reservation testpool/testfs/childfs
19:53:50.26 NOTE: staff1 zfs set compression=on testpool/testfs/childfs
19:53:50.26 NOTE: user:staff1 zfs set compression=on testpool/testfs/childfs
19:53:50.37 NOTE: Check filesystem staff1 compression testpool/testfs/childfs
19:53:50.37 NOTE: staff1 zfs set checksum=off testpool/testfs/childfs
19:53:50.37 NOTE: user:staff1 zfs set checksum=off testpool/testfs/childfs
19:53:50.47 NOTE: Check filesystem staff1 checksum testpool/testfs/childfs
19:53:50.47 NOTE: user:staff1 zfs set staff1:ts=userprop.staff1.2018-02-16-19:53:50-469992849 testpool/testfs/childfs
19:53:50.58 NOTE: Check filesystem staff1 userprop testpool/testfs/childfs
19:53:50.58 SUCCESS: verify_perm testpool/testfs/childfs snapshot,reservation,compression,checksum,userprop staff1
19:53:50.66 SUCCESS: zfs destroy -Rf testpool/testfs
19:53:50.69 SUCCESS: zfs create testpool/testfs
19:53:50.72 SUCCESS: zfs destroy -Rf testpool/testvol.delegate
19:53:50.76 SUCCESS: zfs create -V 150m testpool/testvol.delegate
19:53:51.44 SUCCESS: restore_root_datasets
19:53:51.48 SUCCESS: zfs create testpool/testfs/childfs
19:53:51.50 SUCCESS: zfs allow -d -g zfsgrp snapshot,reservation,compression,checksum,userprop testpool/testfs
19:53:51.59 SUCCESS: zfs umount testpool/testfs
19:53:51.59 NOTE: user:staff2 zfs snapshot testpool/testfs@snap.snapshot.staff2.2018-02-16-19:53:51-507625346
19:53:51.69 NOTE: user:staff2 zfs set reservation=33554432 testpool/testfs
19:53:51.81 SUCCESS: zfs set reservation=0 testpool/testfs
19:53:51.82 NOTE: staff2 zfs set compression=on testpool/testfs
19:53:51.82 NOTE: user:staff2 zfs set compression=on testpool/testfs
19:53:51.94 NOTE: staff2 zfs set checksum=off testpool/testfs
19:53:51.94 NOTE: user:staff2 zfs set checksum=off testpool/testfs
19:53:52.06 NOTE: user:staff2 zfs set staff2:ts=userprop.staff2.2018-02-16-19:53:52-057563292 testpool/testfs
19:53:52.18 SUCCESS: verify_noperm testpool/testfs snapshot,reservation,compression,checksum,userprop staff2
19:53:52.21 NOTE: user:staff2 zfs snapshot testpool/testfs/childfs@snap.snapshot.staff2.2018-02-16-19:53:52-197097952
19:53:52.38 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.staff2.2018-02-16-19:53:52-197097952
19:53:52.41 SUCCESS: zfs mount testpool/testfs/childfs
19:53:52.41 NOTE: user:staff2 zfs snapshot testpool/testfs/childfs@snap.snapshot.staff2.2018-02-16-19:53:52-197097952
19:53:52.55 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.staff2.2018-02-16-19:53:52-197097952
19:53:52.55 NOTE: user:staff2 mkdir /testpool/testfs/childfs/.zfs/snapshot/snap.snapshot.staff2.2018-02-16-19:53:52-197097952
19:53:52.68 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.staff2.2018-02-16-19:53:52-197097952
19:53:52.68 NOTE: Check filesystem staff2 snapshot testpool/testfs/childfs
19:53:52.69 NOTE: user:staff2 zfs set reservation=33554432 testpool/testfs/childfs
19:53:52.81 SUCCESS: zfs set reservation=0 testpool/testfs/childfs
19:53:52.81 NOTE: Check filesystem staff2 reservation testpool/testfs/childfs
19:53:52.82 NOTE: staff2 zfs set compression=on testpool/testfs/childfs
19:53:52.82 NOTE: user:staff2 zfs set compression=on testpool/testfs/childfs
19:53:52.93 NOTE: Check filesystem staff2 compression testpool/testfs/childfs
19:53:52.93 NOTE: staff2 zfs set checksum=off testpool/testfs/childfs
19:53:52.93 NOTE: user:staff2 zfs set checksum=off testpool/testfs/childfs
19:53:53.05 NOTE: Check filesystem staff2 checksum testpool/testfs/childfs
19:53:53.05 NOTE: user:staff2 zfs set staff2:ts=userprop.staff2.2018-02-16-19:53:53-054152752 testpool/testfs/childfs
19:53:53.16 NOTE: Check filesystem staff2 userprop testpool/testfs/childfs
19:53:53.16 SUCCESS: verify_perm testpool/testfs/childfs snapshot,reservation,compression,checksum,userprop staff2
19:53:53.23 SUCCESS: zfs destroy -Rf testpool/testfs
19:53:53.28 SUCCESS: zfs create testpool/testfs
19:53:53.30 SUCCESS: zfs destroy -Rf testpool/testvol.delegate
19:53:53.34 SUCCESS: zfs create -V 150m testpool/testvol.delegate
19:53:54.05 SUCCESS: restore_root_datasets
19:53:54.09 SUCCESS: zfs create testpool/testfs/childfs
19:53:54.11 SUCCESS: zfs allow -d -e snapshot,reservation,compression,checksum,userprop testpool/testfs
19:53:54.20 SUCCESS: zfs umount testpool/testfs
19:53:54.20 NOTE: user:other1 zfs snapshot testpool/testfs@snap.snapshot.other1.2018-02-16-19:53:54-120421981
19:53:54.29 NOTE: user:other1 zfs set reservation=33554432 testpool/testfs
19:53:54.42 SUCCESS: zfs set reservation=0 testpool/testfs
19:53:54.43 NOTE: other1 zfs set compression=on testpool/testfs
19:53:54.43 NOTE: user:other1 zfs set compression=on testpool/testfs
19:53:54.55 NOTE: other1 zfs set checksum=off testpool/testfs
19:53:54.55 NOTE: user:other1 zfs set checksum=off testpool/testfs
19:53:54.65 NOTE: user:other1 zfs set other1:ts=userprop.other1.2018-02-16-19:53:54-650581155 testpool/testfs
19:53:54.78 NOTE: user:other2 zfs snapshot testpool/testfs@snap.snapshot.other2.2018-02-16-19:53:54-772375830
19:53:54.88 NOTE: user:other2 zfs set reservation=33554432 testpool/testfs
19:53:55.03 SUCCESS: zfs set reservation=0 testpool/testfs
19:53:55.04 NOTE: other2 zfs set compression=on testpool/testfs
19:53:55.04 NOTE: user:other2 zfs set compression=on testpool/testfs
19:53:55.15 NOTE: other2 zfs set checksum=off testpool/testfs
19:53:55.15 NOTE: user:other2 zfs set checksum=off testpool/testfs
19:53:55.28 NOTE: user:other2 zfs set other2:ts=userprop.other2.2018-02-16-19:53:55-279360804 testpool/testfs
19:53:55.39 SUCCESS: verify_noperm testpool/testfs snapshot,reservation,compression,checksum,userprop other1 other2
19:53:55.42 NOTE: user:other1 zfs snapshot testpool/testfs/childfs@snap.snapshot.other1.2018-02-16-19:53:55-410115502
19:53:55.56 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.other1.2018-02-16-19:53:55-410115502
19:53:55.59 SUCCESS: zfs mount testpool/testfs/childfs
19:53:55.59 NOTE: user:other1 zfs snapshot testpool/testfs/childfs@snap.snapshot.other1.2018-02-16-19:53:55-410115502
19:53:55.72 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.other1.2018-02-16-19:53:55-410115502
19:53:55.73 NOTE: user:other1 mkdir /testpool/testfs/childfs/.zfs/snapshot/snap.snapshot.other1.2018-02-16-19:53:55-410115502
19:53:55.86 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.other1.2018-02-16-19:53:55-410115502
19:53:55.86 NOTE: Check filesystem other1 snapshot testpool/testfs/childfs
19:53:55.87 NOTE: user:other1 zfs set reservation=33554432 testpool/testfs/childfs
19:53:55.99 SUCCESS: zfs set reservation=0 testpool/testfs/childfs
19:53:55.99 NOTE: Check filesystem other1 reservation testpool/testfs/childfs
19:53:56.00 NOTE: other1 zfs set compression=on testpool/testfs/childfs
19:53:56.00 NOTE: user:other1 zfs set compression=on testpool/testfs/childfs
19:53:56.10 NOTE: Check filesystem other1 compression testpool/testfs/childfs
19:53:56.10 NOTE: other1 zfs set checksum=off testpool/testfs/childfs
19:53:56.10 NOTE: user:other1 zfs set checksum=off testpool/testfs/childfs
19:53:56.21 NOTE: Check filesystem other1 checksum testpool/testfs/childfs
19:53:56.21 NOTE: user:other1 zfs set other1:ts=userprop.other1.2018-02-16-19:53:56-217821677 testpool/testfs/childfs
19:53:56.31 NOTE: Check filesystem other1 userprop testpool/testfs/childfs
19:53:56.39 SUCCESS: zfs umount testpool/testfs/childfs
19:53:56.39 NOTE: user:other2 zfs snapshot testpool/testfs/childfs@snap.snapshot.other2.2018-02-16-19:53:56-318703332
19:53:56.53 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.other2.2018-02-16-19:53:56-318703332
19:53:56.56 SUCCESS: zfs mount testpool/testfs/childfs
19:53:56.56 NOTE: user:other2 zfs snapshot testpool/testfs/childfs@snap.snapshot.other2.2018-02-16-19:53:56-318703332
19:53:56.70 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.other2.2018-02-16-19:53:56-318703332
19:53:56.70 NOTE: user:other2 mkdir /testpool/testfs/childfs/.zfs/snapshot/snap.snapshot.other2.2018-02-16-19:53:56-318703332
19:53:56.85 SUCCESS: zfs destroy testpool/testfs/childfs@snap.snapshot.other2.2018-02-16-19:53:56-318703332
19:53:56.85 NOTE: Check filesystem other2 snapshot testpool/testfs/childfs
19:53:56.85 NOTE: user:other2 zfs set reservation=33554432 testpool/testfs/childfs
19:53:56.98 SUCCESS: zfs set reservation=0 testpool/testfs/childfs
19:53:56.98 NOTE: Check filesystem other2 reservation testpool/testfs/childfs
19:53:56.99 NOTE: other2 zfs set compression=off testpool/testfs/childfs
19:53:56.99 NOTE: user:other2 zfs set compression=off testpool/testfs/childfs
19:53:57.08 NOTE: Check filesystem other2 compression testpool/testfs/childfs
19:53:57.09 NOTE: other2 zfs set checksum=on testpool/testfs/childfs
19:53:57.09 NOTE: user:other2 zfs set checksum=on testpool/testfs/childfs
19:53:57.20 NOTE: Check filesystem other2 checksum testpool/testfs/childfs
19:53:57.21 NOTE: user:other2 zfs set other2:ts=userprop.other2.2018-02-16-19:53:57-208118329 testpool/testfs/childfs
19:53:57.33 NOTE: Check filesystem other2 userprop testpool/testfs/childfs
19:53:57.36 SUCCESS: verify_perm testpool/testfs/childfs snapshot,reservation,compression,checksum,userprop other1 other2
19:53:57.41 ERROR: zfs destroy -Rf testpool/testfs exited 1
19:53:57.41 cannot destroy 'testpool/testfs/childfs': dataset is busy
@behlendorf behlendorf added the Component: Test Suite Indicates an issue with the test framework or a test case label Feb 27, 2018
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue May 4, 2018
Datasets can be busy when calling zfs destroy. Introduce
a helper function to destroy datasets and use it to destroy
datasets in zfs_allow_004_pos, zfs_promote_008_pos, and
zfs_destroy_002_pos.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes openzfs#7224
Closes openzfs#7246
Closes openzfs#7249
Closes openzfs#7267
tonyhutter pushed a commit that referenced this issue May 10, 2018
Datasets can be busy when calling zfs destroy. Introduce
a helper function to destroy datasets and use it to destroy
datasets in zfs_allow_004_pos, zfs_promote_008_pos, and
zfs_destroy_002_pos.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #7224
Closes #7246
Closes #7249
Closes #7267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Test Suite Indicates an issue with the test framework or a test case
Projects
None yet
Development

No branches or pull requests

1 participant