Change in vdsm[master]: tests/functional: Add GlusterSD functional test

deepakcs at linux.vnet.ibm.com deepakcs at linux.vnet.ibm.com
Wed Jan 16 05:33:01 UTC 2013


Deepak C Shetty has posted comments on this change.

Change subject: tests/functional: Add GlusterSD functional test
......................................................................


Patch Set 6:

Addign steps/procedure to create and start a gluster volume named 'testvol' for running this functional test.

* Install the requisite gluster RPMs (incl the vdsm-gluster)

rpm -qa| grep gluster
glusterfs-3.2.7-2.fc17.x86_64
glusterfs-fuse-3.2.7-2.fc17.x86_64
vdsm-gluster-4.10.3-0.75.git87b668d.fc17.noarch
glusterfs-server-3.2.7-2.fc17.x86_64

* Start the glusterd service
systemctl start glusterd.service

* Create a brick to be used as storage for the gluster vol
* and give perms so that 'vdsm' user can access it

[root at vm-vdsm-de-1 ~]# mkdir /tmp/myglusterbrick
[root at vm-vdsm-de-1 ~]# chmod 777 /tmp/myglusterbrick
[root at vm-vdsm-de-1 ~]# gluster

* Start the gluster shell and create + start volume
* Note vm-vdsm-de-1 is my hostname, pls replace it based on ur env.

gluster> volume create testvol vm-vdsm-de-1:/tmp/myglusterbrick
volume create: testvol: success: please start the volume to access data
gluster> volume start testvol
volume start: testvol: success

* Now the gluster volume is created and started.

* Do the below settings to ensure qemu process started as user 'vdsm' is able to access gluster volume...

gluster> volume set testvol server.allow-insecure on 
volume set: success

* Press Ctrl-d to exit the gluster shell

vi /etc/glusterfs/glusterd.vol
and enable the below option...
option rpc-auth-allow-insecure on

* So glusterd.vol should look somethign like this...

volume management
    type mgmt/glusterd
    option working-directory /var/lib/glusterd
    option transport-type socket,rdma
    option transport.socket.keepalive-time 10
    option transport.socket.keepalive-interval 2
    option rpc-auth-allow-insecure on
end-volume

* To confirm if u do the below, u shud be able to see the glusterfsd process that owns the brick

ps -ef| grep testvol
root      1617     1  0 10:33 ?        00:00:00 /usr/local/sbin/glusterfsd -s localhost --volfile-id testvol.vm-vdsm-de-1.tmp-myglusterbrick -p /var/lib/glusterd/vols/testvol/run/vm-vdsm-de-1-tmp-myglusterbrick.pid -S /var/run/bcb90f1d07e32ef68ba8326311b452d1.socket --brick-name /tmp/myglusterbrick -l /usr/local/var/log/glusterfs/bricks/tmp-myglusterbrick.log --xlator-option *-posix.glusterd-uuid=38924441-5821-4a3b-b36a-27776c1c3d9e --brick-port 49155 --xlator-option testvol-server.listen-port=49155

* Now the gluster testvol is created successfully, and ready to be used for functional test

--
To view, visit http://gerrit.ovirt.org/10196
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibe27b138d78e0922a6455e0984813823a98aeb53
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Deepak C Shetty <deepakcs at linux.vnet.ibm.com>
Gerrit-Reviewer: Adam Litke <agl at us.ibm.com>
Gerrit-Reviewer: Deepak C Shetty <deepakcs at linux.vnet.ibm.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Gerrit-Reviewer: Zhou Zheng Sheng <zhshzhou at linux.vnet.ibm.com>
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list