[Gluster-devel] Help needed: NFS Debugging for Glusto tests and Glusto help in general

Nigel Babu nigelb at redhat.com
Mon Nov 7 06:25:01 UTC 2016


Hello,

I've been working on getting the Glusto tests to work and it appears that we're
stuck in a situation which Shewtha and Jonathan haven't been able to fully
arrive at a solution. Here are the two problems:

1. Originally, we ran into issues with NFS with an error that looked like this:

        if 'nfs' in cls.mount_type:
            cmd = "showmount -e localhost"
            _, _, _ = g.run(cls.mnode, cmd)

            cmd = "showmount -e localhost | grep %s" % cls.volname
            ret, _, _ = g.run(cls.mnode, cmd)
>           assert (ret == 0), "Volume %s not exported" % cls.volname
E           AssertionError: Volume testvol_replicated not exported
E           assert 1 == 0

bvt/test_bvt_lite_and_plus.py:88: AssertionError

Entries in glustomain.log:

2016-11-07 06:17:06,007 INFO (run) root at 172.19.2.69 (cp): gluster volume info | egrep "^Brick[0-9]+" | grep -v "ss_brick"
2016-11-07 06:17:06,058 ERROR (get_servers_used_bricks_dict) error in getting bricklist using gluster v info
2016-11-07 06:17:06,059 INFO (run) root at 172.19.2.69 (cp): gluster volume info testvol_replicated --xml
2016-11-07 06:17:06,111 INFO (run) root at 172.19.2.69 (cp): gluster volume create testvol_replicated replica 3       172.19.2.69:/mnt/testvol_replicated_brick0 172.19.2.15:/mnt/testvol_replicated_brick1 172.19.2.3
8:/mnt/testvol_replicated_brick2 --mode=script force
2016-11-07 06:17:08,272 INFO (run) root at 172.19.2.69 (cp): gluster volume start testvol_replicated --mode=script
2016-11-07 06:17:19,066 INFO (run) root at 172.19.2.69 (cp): gluster volume info testvol_replicated
2016-11-07 06:17:19,125 INFO (run) root at 172.19.2.69 (cp): gluster vol status testvol_replicated
2016-11-07 06:17:19,189 INFO (run) root at 172.19.2.69 (cp): showmount -e localhost
2016-11-07 06:17:19,231 INFO (run) root at 172.19.2.69 (cp): showmount -e localhost | grep testvol_replicated
2016-11-07 06:17:19,615 INFO (main) Ending glusto via main()
2016-11-07 06:20:23,713 INFO (main) Starting glusto via main()

Today I tried to comment out the NFS bits and run the test again. Here's what
that got me:

        # Setup Volume
        ret = setup_volume(mnode=cls.mnode,
                           all_servers_info=cls.all_servers_info,
                           volume_config=cls.volume, force=True)
>       assert (ret == True), "Setup volume %s failed" % cls.volname
E       AssertionError: Setup volume testvol_distributed-replicated failed
E       assert False == True

bvt/test_bvt_lite_and_plus.py:73: AssertionError

Entries in glustomain.log:
2016-11-07 06:20:34,994 INFO (run) root at 172.19.2.69 (cp): gluster volume info | egrep "^Brick[0-9]+" | grep -v "ss_brick"
2016-11-07 06:20:35,048 ERROR (form_bricks_list) Not enough bricks available for creating the bricks
2016-11-07 06:20:35,049 ERROR (setup_volume) Number_of_bricks is greater than the unused bricks on servers

Does this make sense to anyone in terms of whether it's an error at Glusto-end
or an error in Gluster that's being caught?

--
nigelb


More information about the Gluster-devel mailing list