From: Satheesh Rajendran <[email protected]> Hi Lucas and all,
This patchset will add the glusterfs support in virt-test. This will help to create a gluster volume and would run all the virt tests from the image it creates, on the gluster volume. The tests.cfg has to be edited for the below switch to enable the glusterfs support, no_glusterfs_support -> no glusterfs support (default). glusterfs_support -> to enable glusterfs support. I have attached the sample testcase run log using this patch. Please let me know your comments. 15:46:05 INFO | Starting test job at 2013-02-27 15:46:05 15:46:05 INFO | 15:46:05 INFO | Tests produced by config file /home/satheesh/autotest-working/client/tests/virt/qemu/cfg/tests.cfg 15:46:05 INFO | 15:46:05 INFO | The full test list was modified by the following: 15:46:05 INFO | 15:46:05 INFO | Filters applied: 15:46:05 INFO | only Fedora.17.x86_64 15:46:05 INFO | only smp2 15:46:05 INFO | only raw 15:46:05 INFO | only virtio_net 15:46:05 INFO | only virtio_blk 15:46:05 INFO | only unattended_install.cdrom.extra_cdrom_ks,, boot,, shutdown 15:46:05 INFO | 15:46:05 INFO | Different guest OS have different test lists 15:46:05 INFO | 15:46:05 INFO | Assignments applied: 15:46:05 INFO | mem = 512 15:46:05 INFO | qemu_binary = /usr/local/bin/qemu-system-x86_64 15:46:05 INFO | qemu_img_binary = /usr/bin/qemu-img 15:46:05 INFO | qemu_io_binary = /usr/bin/qemu-io 15:46:05 INFO | nettype = user 15:46:05 INFO | 15:46:05 INFO | Assignments override values previously set in the config file 15:46:05 INFO | 15:46:05 INFO | Defined test set: 15:46:05 INFO | Test 1: unattended_install.cdrom.extra_cdrom_ks 15:46:05 INFO | Test 2: boot 15:46:05 INFO | Test 3: shutdown 15:46:05 INFO | 15:46:05 INFO | Starting test unattended_install.cdrom.extra_cdrom_ks 15:46:05 INFO | Filtering out cfg b/c matches cfg 15:46:05 INFO | Filtering out cfg b/c matches cfg 15:46:07 INFO | Starting unattended install setup 15:46:09 INFO | Assuming dependencies met for user mode nic nic1, and ready to go 15:46:09 INFO | Running qemu command (reformatted): 15:46:09 INFO | /usr/local/bin/qemu-system-x86_64 15:46:09 INFO | -S 15:46:09 INFO | -name 'virt-tests-vm1' 15:46:09 INFO | -nodefaults 15:46:09 INFO | -chardev socket,id=hmp_id_hmp1,path=/tmp/monitor-hmp1-20130227-154607-wroCnw2N,server,nowait 15:46:09 INFO | -mon chardev=hmp_id_hmp1,mode=readline 15:46:09 INFO | -chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130227-154607-wroCnw2N,server,nowait 15:46:09 INFO | -device isa-serial,chardev=serial_id_serial1 15:46:09 INFO | -chardev socket,id=seabioslog_id_20130227-154607-wroCnw2N,path=/tmp/seabios-20130227-154607-wroCnw2N,server,nowait 15:46:09 INFO | -device isa-debugcon,chardev=seabioslog_id_20130227-154607-wroCnw2N,iobase=0x402 15:46:09 INFO | -chardev socket,id=anacondalog_chardev_20130227-154607-wroCnw2N,path=/tmp/anaconda-20130227-154607-wroCnw2N,server,nowait 15:46:09 INFO | -device virtio-serial-pci,id=anacondalog_vioser_20130227-154607-wroCnw2N 15:46:09 INFO | -device virtserialport,bus=anacondalog_vioser_20130227-154607-wroCnw2N.0,chardev=anacondalog_chardev_20130227-154607-wroCnw2N,name=org.fedoraproject.anaconda.log.0 15:46:09 INFO | -device ich9-usb-uhci1,id=usb1 15:46:09 INFO | -drive file='gluster://satheesh-laptop:0/test-vol/f17-64.raw',if=none,id=virtio0 15:46:09 INFO | -device virtio-blk-pci,drive=virtio0,bootindex=1 15:46:09 INFO | -device virtio-net-pci,netdev=idm84MBl,mac='9a:17:18:19:1a:1b',id='idq8ki5s' 15:46:09 INFO | -netdev user,id=idm84MBl,hostfwd=tcp::5000-:22,hostfwd=tcp::5001-:12323 15:46:09 INFO | -m 512 15:46:09 INFO | -smp 2,maxcpus=2,cores=1,threads=1,sockets=2 15:46:09 INFO | -cpu 'SandyBridge' 15:46:09 INFO | -M pc 15:46:09 INFO | -drive file='/home/satheesh/autotest-working/client/tests/virt/shared/data/isos/linux/Fedora-17-x86_64-DVD.iso',media=cdrom,index=2 15:46:09 INFO | -drive file='/home/satheesh/autotest-working/client/tests/virt/shared/data/images/f17-64/ks.iso',media=cdrom,index=1 15:46:09 INFO | -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 15:46:09 INFO | -kernel '/home/satheesh/autotest-working/client/tests/virt/shared/data/images/f17-64/vmlinuz' 15:46:09 INFO | -append 'repo=cdrom:/dev/sr1 ks=cdrom:/dev/sr0 nicdelay=60 console=ttyS0,115200 console=tty0' 15:46:09 INFO | -initrd '/home/satheesh/autotest-working/client/tests/virt/shared/data/images/f17-64/initrd.img' 15:46:09 INFO | -vnc :0 15:46:09 INFO | -vga std 15:46:09 INFO | -rtc base=utc,clock=host,driftfix=none 15:46:09 INFO | -boot order=cdn,once=d,menu=off 15:46:09 INFO | -enable-kvm 15:46:10 INFO | Waiting for installation to finish. Timeout set to 3000 s (50 min) 16:05:05 INFO | Guest reported successful installation after 1135 s (18 min) 16:05:05 INFO | Wait for guest to shutdown cleanly 16:05:26 INFO | Guest managed to shutdown cleanly 16:05:26 INFO | [qemu output] (Process terminated with status 0) 16:05:49 INFO | PASS unattended_install.cdrom.extra_cdrom_ks 16:05:49 INFO | 16:05:50 INFO | Starting test boot 16:05:50 INFO | Filtering out cfg b/c matches cfg 16:05:50 INFO | Filtering out cfg b/c matches cfg 16:05:52 INFO | Assuming dependencies met for user mode nic nic1, and ready to go 16:05:53 INFO | Running qemu command (reformatted): 16:05:53 INFO | /usr/local/bin/qemu-system-x86_64 16:05:53 INFO | -S 16:05:53 INFO | -name 'virt-tests-vm1' 16:05:53 INFO | -nodefaults 16:05:53 INFO | -chardev socket,id=hmp_id_hmp1,path=/tmp/monitor-hmp1-20130227-154607-wroCnw2N,server,nowait 16:05:53 INFO | -mon chardev=hmp_id_hmp1,mode=readline 16:05:53 INFO | -chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130227-154607-wroCnw2N,server,nowait 16:05:53 INFO | -device isa-serial,chardev=serial_id_serial1 16:05:53 INFO | -chardev socket,id=seabioslog_id_20130227-154607-wroCnw2N,path=/tmp/seabios-20130227-154607-wroCnw2N,server,nowait 16:05:53 INFO | -device isa-debugcon,chardev=seabioslog_id_20130227-154607-wroCnw2N,iobase=0x402 16:05:53 INFO | -device ich9-usb-uhci1,id=usb1 16:05:53 INFO | -drive file='gluster://satheesh-laptop:0/test-vol/f17-64.raw',if=none,id=virtio0 16:05:53 INFO | -device virtio-blk-pci,drive=virtio0,bootindex=1 16:05:53 INFO | -device virtio-net-pci,netdev=idm84MBl,mac='9a:1c:1d:1e:1f:20',id='idq8ki5s' 16:05:53 INFO | -netdev user,id=idm84MBl,hostfwd=tcp::5000-:22 16:05:53 INFO | -m 512 16:05:53 INFO | -smp 2,maxcpus=2,cores=1,threads=1,sockets=2 16:05:53 INFO | -cpu 'SandyBridge' 16:05:53 INFO | -M pc 16:05:53 INFO | -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 16:05:53 INFO | -vnc :1 16:05:53 INFO | -vga std 16:05:53 INFO | -rtc base=utc,clock=host,driftfix=none 16:05:53 INFO | -boot order=cdn,once=c,menu=off 16:05:53 INFO | -enable-kvm 16:06:22 INFO | PASS boot 16:06:22 INFO | 16:06:22 INFO | Starting test shutdown 16:06:22 INFO | Filtering out cfg b/c matches cfg 16:06:22 INFO | Filtering out cfg b/c matches cfg 16:06:27 INFO | [qemu output] (Process terminated with status 0) 16:06:28 INFO | Video creation failed for vm virt-tests-vm1: failed to link webmmux with filesink 16:06:29 INFO | PASS shutdown 16:06:29 INFO | 16:06:29 INFO | Job total elapsed time: 1223.38 s 16:06:29 INFO | Tests passed: 3 16:06:29 INFO | Tests failed: 0 16:06:29 INFO | Success rate: 100.00 % Satheesh Rajendran (4): qemu/cfg/tests.cfg: to add flag to enable the glusterfs support shared/cfg/guest-hw.cfg: to add configuration details for glusterfs support virttest/storage.py: to add the image file for glusterfs support virttest/gluster.py: to add the library for glusterfs support qemu/cfg/tests.cfg | 1 + shared/cfg/guest-hw.cfg | 6 ++ virttest/gluster.py | 134 +++++++++++++++++++++++++++++++++++++++++++++++ virttest/storage.py | 8 ++- 4 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 virttest/gluster.py _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
