~ubuntu-branches/debian/sid/glusterfs/sid

« back to all changes in this revision

Viewing changes to tests/bugs/bug-973073.t

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-04-22 10:00:41 UTC
  • mfrom: (1.3.25)
  • Revision ID: package-import@ubuntu.com-20140422100041-6mur2ttyvb8zzpfq
Tags: 3.5.0-1
* New upstream release.
  - Rewrite patch 01-spelling-error.
  - Adjust lintian overrides.
  - Install new files.
  - The offical tarball is not properly generated, hack it around.
  - Add symlink from fusermount-glusterfs manpage to mount.glusterfs.
  - Move gsync-sync-gfid from /usr/share to /usr/lib.
  - Add benchmarking directory.
* Remove old versioned build dependencies and build depend on libglib2.0-dev.
* Add lintian override for possible-gpl-code-linked-with-openssl. It is the
  same false positive like with the gluster-server package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
. $(dirname $0)/../include.rc
 
4
. $(dirname $0)/../dht.rc
 
5
 
 
6
## Steps followed are one descibed in bugzilla
 
7
 
 
8
cleanup;
 
9
 
 
10
function get_layout()
 
11
{
 
12
        layout1=`getfattr -n trusted.glusterfs.dht -e hex $1 2>&1`
 
13
 
 
14
        if [ $? -ne 0 ]
 
15
        then
 
16
                echo 1
 
17
        else
 
18
                echo 0
 
19
        fi
 
20
 
 
21
}
 
22
 
 
23
BRICK_COUNT=3
 
24
 
 
25
TEST glusterd
 
26
TEST pidof glusterd
 
27
 
 
28
TEST $CLI volume create $V0 $H0:$B0/${V0}0 $H0:$B0/${V0}1 $H0:$B0/${V0}2
 
29
TEST $CLI volume start $V0
 
30
 
 
31
## Mount FUSE
 
32
TEST glusterfs -s $H0 --volfile-id $V0 $M0;
 
33
 
 
34
TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}2 start
 
35
 
 
36
## remove-brick status == rebalance_status
 
37
EXPECT_WITHIN 30 "0" rebalance_completed
 
38
 
 
39
TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}2 stop
 
40
 
 
41
TEST $CLI volume rebalance $V0 fix-layout start
 
42
 
 
43
EXPECT_WITHIN 30 "0" rebalance_completed
 
44
 
 
45
TEST mkdir $M0/dir 2>/dev/null;
 
46
 
 
47
EXPECT "0" get_layout $B0/${V0}2/dir
 
48
cleanup;