== sanity-sec test 59a: mirror resync of encrypted files without key ========================================================== 19:44:15 (1763340255) 192.168.202.141@tcp:/lustre /mnt/lustre lustre rw,checksum,encrypt,flock,lazystatfs,lruresize,nolock,statfs_project,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg241-client.virtnet /mnt/lustre (opts:) Starting client: oleg241-client.virtnet: -o user_xattr,flock,test_dummy_encryption 192.168.202.141@tcp:/lustre /mnt/lustre 1+0 records in 1+0 records out 5000 bytes (5.0 kB, 4.9 KiB) copied, 0.0019047 s, 2.6 MB/s 1+0 records in 1+0 records out 5000 bytes (5.0 kB, 4.9 KiB) copied, 0.068036 s, 73.5 kB/s /mnt/lustre/d59a.sanity-sec/f59a.sanity-sec lcm_layout_gen: 3 lcm_mirror_count: 2 lcm_entry_count: 2 lcme_id: 65537 lcme_mirror_id: 1 lcme_flags: init lcme_extent.e_start: 0 lcme_extent.e_end: EOF lmm_stripe_count: 1 lmm_stripe_size: 4194304 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 0 lmm_objects: - 0: { l_ost_idx: 0, l_fid: [0x280000401:0x225:0x0] } lcme_id: 131074 lcme_mirror_id: 2 lcme_flags: init,stale lcme_extent.e_start: 0 lcme_extent.e_end: EOF lmm_stripe_count: 1 lmm_stripe_size: 4194304 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 1 lmm_objects: - 0: { l_ost_idx: 1, l_fid: [0x2c0000401:0x219:0x0] } 192.168.202.141@tcp:/lustre /mnt/lustre lustre rw,checksum,encrypt,flock,lazystatfs,lruresize,nolock,statfs_project,test_dummy_encryption=%s,test_dummy_encryption,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg241-client.virtnet /mnt/lustre (opts:) Starting client: oleg241-client.virtnet: -o user_xattr,flock 192.168.202.141@tcp:/lustre /mnt/lustre 1 keys reaped lfs mirror mirror: fail to ftruncate mirror 2 to 8192: Required key not available (126) Chunks to be verified in /mnt/lustre/d59a.sanity-sec/otV97ZB6ZAnVnBdq5-pLvA: [0, 0xffffffffffffffff) [1, 2] 2 Verifying chunk [0, 0xffffffffffffffff) on mirror: 1 2 CRC-32 checksum value for chunk [0, 0x1388): Mirror 1: 0x7e0aec60 Mirror 2: 0x7e0aec60 Verifying chunk [0, 0xffffffffffffffff) on mirror: 1 2 PASS lfs read: cannot open '/mnt/lustre/d59a.sanity-sec/otV97ZB6ZAnVnBdq5-pLvA': Required key not available Read the content of a specified mirror of a file. usage: lfs mirror read --mirror-id|-N MIRROR_ID [--outfile|-o OUTPUT_FILE] MIRRORED_FILE lfs commands used to manage files with mirrored components: lfs mirror create - create a mirrored file or directory lfs mirror extend - add mirror(s) to an existing file lfs mirror split - split a mirror from an existing mirrored file lfs mirror resync - resynchronize out-of-sync mirrored file(s) lfs mirror read - read a mirror content of a mirrored file lfs mirror write - write to a mirror of a mirrored file lfs mirror copy - copy a mirror to other mirror(s) of a file lfs mirror verify - verify mirrored file(s) 877439874 192.168.202.141@tcp:/lustre /mnt/lustre lustre rw,checksum,encrypt,flock,lazystatfs,lruresize,nolock,statfs_project,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg241-client.virtnet /mnt/lustre (opts:) Starting client: oleg241-client.virtnet: -o user_xattr,flock,test_dummy_encryption 192.168.202.141@tcp:/lustre /mnt/lustre Chunks to be verified in /mnt/lustre/d59a.sanity-sec/f59a.sanity-sec: [0, 0xffffffffffffffff) [1, 2] 2 Verifying chunk [0, 0xffffffffffffffff) on mirror: 1 2 CRC-32 checksum value for chunk [0, 0x1388): Mirror 1: 0x279f0895 Mirror 2: 0x279f0895 Verifying chunk [0, 0xffffffffffffffff) on mirror: 1 2 PASS cmp: EOF on /tmp/f59a.sanity-sec after byte 5000 sanity-sec test_59a: @@@@@@ FAIL: corruption of mirror 1 Trace dump: = /home/green/git/lustre-release/lustre/tests/test-framework.sh:7314:error() = /home/green/git/lustre-release/lustre/tests/sanity-sec.sh:6701:verify_mirror() = /home/green/git/lustre-release/lustre/tests/sanity-sec.sh:6753:test_59a() = /home/green/git/lustre-release/lustre/tests/test-framework.sh:7690:run_one() = /home/green/git/lustre-release/lustre/tests/test-framework.sh:7753:run_one_logged() = /home/green/git/lustre-release/lustre/tests/test-framework.sh:7568:run_test() = /home/green/git/lustre-release/lustre/tests/sanity-sec.sh:6755:main() Dumping lctl log to /tmp/testlogs//sanity-sec.test_59a.*.1763340273.log 192.168.202.141@tcp:/lustre /mnt/lustre lustre rw,checksum,encrypt,flock,lazystatfs,lruresize,nolock,statfs_project,test_dummy_encryption=%s,test_dummy_encryption,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg241-client.virtnet /mnt/lustre (opts:) rsync: chown "/tmp/testlogs/.sanity-sec.test_59a.debug_log.oleg241-server.1763340273.log.35vMe5" failed: Operation not permitted (1) rsync: chown "/tmp/testlogs/.sanity-sec.test_59a.dmesg.oleg241-server.1763340273.log.CCU4Cx" failed: Operation not permitted (1) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1668) [generator=3.1.3] Starting client: oleg241-client.virtnet: -o user_xattr,flock 192.168.202.141@tcp:/lustre /mnt/lustre 1 keys reaped