Project

General

Profile

Bug #14160

Updated by Toomas Soome 9 months ago

<pre> 
     tsoome@openindiana:~$ /opt/zfs-tests/bin/zfstest -l /var/tmp/test_results/20211012T105218/log 
     Traceback (most recent call last): 
       File "/opt/test-runner/bin/run", line 973, in <module> 
         main() 
       File "/opt/test-runner/bin/run", line 960, in main 
         filter_tests(testrun, options) 
       File "/opt/test-runner/bin/run", line 867, in filter_tests 
         line = fh.readline() 
       File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode 
         return codecs.ascii_decode(input, self.errors)[0] 
     UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 526: ordinal not in range(128) 
     tsoome@openindiana:~$ 
 </pre> 

 The chars I do not know if this is the source for the error, but indeed there seems to be garbage in question are appearing from test bootfs_004_neg: log file according to hexdump -C: 
 <pre> 
 Test: /opt/zfs-tests/tests/functional/bootfs/bootfs_004_neg (run as root) [00:00 0010e1e0    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1.10:59:| 
 ] [PASS] 
 10:59:34.83 ASSERTION: Invalid pool names are rejected by zpool set bootfs 
 10:59:34.91 0010e1f0    33 35 2e 31 34 20 53 55    43 43 45 53 53 3a 20 7a    |35.14 SUCCESS: zpool create pool//1715/testfs /bootfs_004.1715.dat exited  
 1 z| 
 10:59:34.93 SUCCESS: zfs 0010e200    70 6f 6f 6c 20 63 72 65    61 74 65 20 25 73 c2 a3    |pool create pool//1715/testfs/testfs exited 1 %s..| 
 10:59:34.94 SUCCESS: zpool set bootfs=pool//1715/testfs/testfs pool//1715/testfs 
  exited 1 0010e210    c2 a3 25 5e 2f 74 65 73    74 66 73 20 2f 62 6f 6f    |..%^/testfs /boo| 
 10:59:34.95 SUCCESS: zpool create pool%d123/testfs /bootfs_004.1715.dat exited 1 0010e220    74 66 73 5f 30 30 34 2e    31 37 31 35 2e 64 61 74    |tfs_004.1715.dat| 
 10:59:34.97 SUCCESS: zfs create pool%d123/testfs/testfs 0010e230    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1 1.10:59:| 
 10:59:34.98 0010e240    33 35 2e 31 35 20 53 55    43 43 45 53 53 3a 20 7a    |35.15 SUCCESS: zpool set bootfs=pool%d123/testfs/testfs pool%d123/testfs e z| 
 xited 1 
 10:59:34.99 SUCCESS: zpool 0010e250    66 73 20 63 72 65 61 74    65 20 25 73 c2 a3 c2 a3    |fs create mirror/testfs /bootfs_004.1715.dat exited 1 %s....| 
 10:59:35.04 SUCCESS: zfs create mirror/testfs/testfs exited 1 0010e260    25 5e 2f 74 65 73 74 66    73 2f 74 65 73 74 66 73    |%^/testfs/testfs| 
 10:59:35.06 SUCCESS: zpool set bootfs=mirror/testfs/testfs mirror/testfs 0010e270    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited  
 1 1.10:59:| 
 10:59:35.07 0010e280    33 35 2e 31 35 20 53 55    43 43 45 53 53 3a 20 7a    |35.15 SUCCESS: zpool create c0t0d0s0/testfs /bootfs_004.1715.dat exited 1 z| 
 10:59:35.08 SUCCESS: zfs create c0t0d0s0/testfs/testfs exited 1 
 10:59:35.08 SUCCESS: zpool 0010e290    70 6f 6f 6c 20 73 65 74    20 62 6f 6f 74 66 73 3d    |pool set bootfs=c0t0d0s0/testfs/testfs c0t0d0s0/testfs exi bootfs=| 
 ted 1 0010e2a0    25 73 c2 a3 c2 a3 25 5e    2f 74 65 73 74 66 73 2f    |%s....%^/testfs/| 
 10:59:35.09 SUCCESS: zpool create pool*23*/testfs /bootfs_004.1715.dat exited 1 0010e2b0    74 65 73 74 66 73 20 25    73 c2 a3 c2 a3 25 5e 2f    |testfs %s....%^/| 
 10:59:35.10 SUCCESS: zfs create pool*23*/testfs/testfs 0010e2c0    74 65 73 74 66 73 20 65    78 69 74 65 64 20 31 0a    |testfs exited 1 1.| 
 10:59:35.11 SUCCESS: 0010e2d0    31 30 3a 35 39 3a 33 35    2e 31 36 20 53 55 43 43    |10:59:35.16 SUCC| 
 0010e2e0    45 53 53 3a 20 7a 70 6f    6f 6c 20 63 72 65 61 74    |ESS: zpool set bootfs=pool*23*/testfs/testfs pool*23*/testfs exi creat| 
 ted 1 0010e2f0    65 20 6f 6f 6f 6f 6f 6f    6f 6f 6f 6f 6f 6f 6f 6f    |e oooooooooooooo| 
 10:59:35.12 SUCCESS: zpool create *po!l/testfs /bootfs_004.1715.dat exited 1 0010e300    6f 6f 6f 6f 6f 6f 6f 6f    6f 6f 6f 6f 6f 6f 6f 6f    |oooooooooooooooo| 
 10:59:35.12 SUCCESS: zfs create *po!l/testfs/testfs exited 1 * 
 10:59:35.13 SUCCESS: zpool set bootfs=*po!l/testfs/testfs *po!l/testfs exited 1 0010e6f0    6f 6f 6f 6f 2f 74 65 73    74 66 73 20 2f 62 6f 6f    |oooo/testfs /boo| 
 10:59:35.14 SUCCESS: zpool create %s<C2><A3><C2><A3>%^/testfs /bootfs_004.1715.d 0010e700    74 66 73 5f 30 30 34 2e    31 37 31 35 2e 64 61 74    |tfs_004.1715.dat| 
 at 0010e710    20 65 78 69 74 65 64 20    31 0a 31 30 3a 35 39 3a    | exited 1 1.10:59:| 
 10:59:35.15 0010e720    33 35 2e 31 37 20 53 55    43 43 45 53 53 3a 20 7a    |35.17 SUCCESS: zfs z| 
 0010e730    66 73 20 63 72 65 61 74    65 20 6f 6f 6f 6f 6f 6f    |fs create %s<C2><A3><C2><A3>%^/testfs/testfs exited 1 oooooo| 
 10:59:35.15 SUCCESS: zpool set bootfs=%s<C2><A3><C2><A3>%^/testfs/testfs %s<C2><<A3><C2><A3>%^/testfs exited 1 0010e740    6f 6f 6f 6f 6f 6f 6f 6f    6f 6f 6f 6f 6f 6f 6f 6f    |oooooooooooooooo| 
 </pre> 

 apparently, adding errors='replace' to open() does allow the log file    to be processed. 

 Testing done: zfstest -l logfile is now able to work: 

 <pre> 
 tsoome@openindiana:~$ /opt/zfs-tests/bin/zfstest -l /var/tmp/test_results/20211012T105218/log 
 Test: /opt/zfs-tests/tests/functional/acl/nontrivial/setup (run as root) [00:15] [PASS] 
 Test: /opt/zfs-tests/tests/functional/acl/nontrivial/zfs_acl_chmod_inherit_003_pos (run as root) [00:25] [FAIL] 
 Test: /opt/zfs-tests/tests/functional/acl/nontrivial/cleanup (run as root) [00:09] [PASS] 
 Test: /opt/zfs-tests/tests/functional/bootfs/setup (run as root)    [00:00] [PASS] 
 ... 
 </pre>

Back