Hello Emmanuel,
Could you please replace the file ./tests/encryption/crypt.t
with the attached one, run the last one, and report about results?
Thanks,
Edward.
On Fri, 10 Oct 2014 02:00:28 +0200
[email protected] (Emmanuel Dreyfus) wrote:
> Edward Shishkin <[email protected]> wrote:
>
> > 1) What is the number of the failed step?
>
> Here is the log. The fact it happens after umount/remount suggests the
> metadata used changed a bit:
>
> Running tests in file ./tests/encryption/crypt.t
> [23:52:46] ./tests/encryption/crypt.t .. =========================
> TEST 1 (line 8): glusterd
> [23:52:46] ./tests/encryption/crypt.t .. 1/? RESULT 1: 0
> =========================
> TEST 2 (line 9): pidof glusterd
> RESULT 2: 0
> =========================
> TEST 3 (line 12): gluster --mode=script --wignore volume create patchy
> bacasable.example.net:/d/backends/patchy1
> [23:52:46] ./tests/encryption/crypt.t .. 3/? RESULT 3: 0
> =========================
> TEST 4 (line 13): patchy volinfo_field patchy Volume Name
> RESULT 4: 0
> =========================
> TEST 5 (line 14): Created volinfo_field patchy Status
> RESULT 5: 0
> =========================
> TEST 6 (line 15): 1 brick_count patchy
> [23:52:46] ./tests/encryption/crypt.t .. 6/? RESULT 6: 0
> =========================
> TEST 7 (line 19): gluster --mode=script --wignore volume set patchy
> performance.quick-read off
> RESULT 7: 0
> =========================
> TEST 8 (line 20): off volinfo_field patchy performance.quick-read
> [23:52:46] ./tests/encryption/crypt.t .. 8/? RESULT 8: 0
> =========================
> TEST 9 (line 21): gluster --mode=script --wignore volume set patchy
> performance.write-behind off
> RESULT 9: 0
> =========================
> TEST 10 (line 22): off volinfo_field patchy performance.write-behind
> [23:52:46] ./tests/encryption/crypt.t .. 10/? RESULT 10: 0
> =========================
> TEST 11 (line 23): gluster --mode=script --wignore volume set patchy
> performance.open-behind off
> RESULT 11: 0
> =========================
> TEST 12 (line 24): off volinfo_field patchy performance.open-behind
> RESULT 12: 0
> =========================
> TEST 13 (line 27): gluster --mode=script --wignore volume set patchy
> encryption on
> [23:52:46] ./tests/encryption/crypt.t .. 13/? RESULT 13: 0
> =========================
> TEST 14 (line 28): on volinfo_field patchy features.encryption
> RESULT 14: 0
> =========================
> TEST 15 (line 31): gluster --mode=script --wignore volume set patchy
> encryption.master-key /tmp/patchy-master-key
> [23:52:46] ./tests/encryption/crypt.t .. 15/? RESULT 15: 0
> =========================
> TEST 16 (line 38): gluster --mode=script --wignore volume start patchy
> [23:52:46] ./tests/encryption/crypt.t .. 16/? RESULT 16: 0
> =========================
> TEST 17 (line 39): Started volinfo_field patchy Status
> RESULT 17: 0
> =========================
> TEST 18 (line 42): glusterfs --attribute-timeout=0 --entry-timeout=0
> --volfile-server=bacasable.example.net --volfile-id=patchy
> /mnt/glusterfs/0
> RESULT 18: 0
> =========================
> TEST 19 (line 48): ./tests/encryption/frag /mnt/glusterfs/0/testfile
> /tmp/patchy-goodfile 262144 500
> [23:52:46] ./tests/encryption/crypt.t .. 19/? RESULT 19: 0
> =========================
> TEST 20 (line 52): ln /mnt/glusterfs/0/testfile
> /mnt/glusterfs/0/testfile-link
> RESULT 20: 0
> =========================
> TEST 21 (line 53): mv /mnt/glusterfs/0/testfile
> /mnt/glusterfs/0/testfile-renamed
> RESULT 21: 0
> =========================
> TEST 22 (line 54): ln -s /mnt/glusterfs/0/testfile-link
> /mnt/glusterfs/0/testfile-symlink
> RESULT 22: 0
> =========================
> TEST 23 (line 55): rm -f /mnt/glusterfs/0/testfile-renamed
> RESULT 23: 0
> =========================
> TEST 24 (line 58): Y force_umount /mnt/glusterfs/0
> RESULT 24: 0
> =========================
> TEST 25 (line 59): glusterfs --volfile-server=bacasable.example.net
> --volfile-id=patchy /mnt/glusterfs/0
> RESULT 25: 0
> =========================
> TEST 26 (line 61): diff -u /mnt/glusterfs/0/testfile-symlink
> /tmp/patchy-goodfile
> diff: /mnt/glusterfs/0/testfile-symlink: Invalid argument
>
> not ok 26
> RESULT 26: 2
>
>
> > 2) What endianess does your machine have?
>
> Little endian (i386)
>
#!/bin/bash
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
cleanup;
TEST glusterd
TEST pidof glusterd
## Create a volume with one brick
TEST $CLI volume create $V0 $H0:$B0/${V0}1;
EXPECT "$V0" volinfo_field $V0 'Volume Name';
EXPECT 'Created' volinfo_field $V0 'Status';
EXPECT '1' brick_count $V0
## Turn off performance translators
TEST $CLI volume set $V0 performance.quick-read off
EXPECT 'off' volinfo_field $V0 'performance.quick-read'
TEST $CLI volume set $V0 performance.write-behind off
EXPECT 'off' volinfo_field $V0 'performance.write-behind'
TEST $CLI volume set $V0 performance.open-behind off
EXPECT 'off' volinfo_field $V0 'performance.open-behind'
## Turn on crypt xlator by setting features.encryption to on
TEST $CLI volume set $V0 encryption on
EXPECT 'on' volinfo_field $V0 'features.encryption'
## Specify location of master key
TEST $CLI volume set $V0 encryption.master-key /tmp/$V0-master-key
## Create a file with master key
echo "0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff" > /tmp/$V0-master-key
## Start the volume
TEST $CLI volume start $V0;
EXPECT 'Started' volinfo_field $V0 'Status';
## Mount the encrypted volume
TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0;
## Create a file on the encrypted volume
TEST touch $M0/testfile
TEST umount $M0
TEST glusterfs --volfile-server=$H0 --volfile-id=$V0 $M0;
TEST cat $M0/testfile
TEST rm -f $M0/testfile
## Cleanup files
TEST rm -f /tmp/$V0-master-key
TEST umount $M0
## Stop the volume
TEST $CLI volume stop $V0;
EXPECT 'Stopped' volinfo_field $V0 'Status';
## Delete the volume
TEST $CLI volume delete $V0;
TEST ! $CLI volume info $V0;
TEST rm -rf $(dirname $0)/frag
cleanup;
_______________________________________________
Gluster-devel mailing list
[email protected]
http://supercolony.gluster.org/mailman/listinfo/gluster-devel