Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virsh domiftune #1

Open
wants to merge 278 commits into
base: local
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
278 commits
Select commit Hold shift + click to select a range
53b6d1e
qemu: Reset image_extra_params parameter in some block tests.
zhouqt Jul 3, 2013
c47e497
tests.boot_savevm: Get parameters with new method in virt-test
zhouqt Jul 3, 2013
7c66a5f
Merge pull request #526 from yangdongsheng/remote_edit
ypu Jul 3, 2013
3f96f1d
virt: repair Cart config unittest test data.
Jul 3, 2013
0cc2c69
Merge pull request #595 from jzupka/repair_cart_unit
lmr Jul 4, 2013
179370a
qemu.test: make block_stream test work with qmp monitor
Jul 2, 2013
f266283
qemu.tests: move snapshot file to images dir
Jul 3, 2013
62b5b02
Merge pull request #592 from zhouqt/minor-fix
Jul 4, 2013
c0b3b49
Merge pull request #588 from xutian/fix_block_stream
ldoktor Jul 4, 2013
f40a504
Fix virsh.start to return CmdResult object
Jun 21, 2013
36e9b5b
Fix the nodedev_xml.
Jul 3, 2013
2a9acdc
virttest: Fix utils_selinux module.
Jul 3, 2013
978b98f
virttest.remote_unittest: Permission fix
lmr Jul 4, 2013
9c24f76
virt: Replace deprecated template with eval in cart-config.
Jul 4, 2013
b01c545
tests/autotest_regression.py: do not depend on wget
clebergnu Jul 4, 2013
f0226d2
qemu.tests.cfg: Give the 'usb_default' variant a meaningful name
zhouqt Jul 3, 2013
0338644
qemu.tests.usb: Make usb hotplug test able to run multiple times
zhouqt Jul 3, 2013
72d187e
qemu.cfg: Update KSM query_regex for check KSM status
ypu Jul 4, 2013
0562ed5
qemu.tests: fix die() not response in ksm_overcommit.ksm_serial
ypu Jul 4, 2013
015a70e
Merge pull request #589 from ldoktor/framework
lmr Jul 5, 2013
5d4c007
qemu.tests: Add new test timerdevice.tscwrite
zhouqt Jul 1, 2013
53a6b0a
shared.deps: Add time-warp-test source code
zhouqt Jul 1, 2013
606f610
qemu.test: Add test for checking TSC sync for long time
zhouqt Jul 1, 2013
6767f57
qemu.tests: Add test timerdevice.tscsync.change_host_clksource
zhouqt Jul 1, 2013
8e15763
qemu.tests: Add test timerdevice.clock_drift_with_ntp
zhouqt Jul 1, 2013
e1d1c61
virttest.qemu_devices: Remove readconfig-like format of qemu represen…
ldoktor Jun 27, 2013
f87c660
virttest.qemu_devices: Support for NO_EQUAL_STRING and EMPTY_STRING
ldoktor Jun 27, 2013
d188d8c
virttest.qemu_devices: Fix __getitem__() of QSparseBus
ldoktor Jun 27, 2013
05f0dda
virttest.qemu_devices: Fix the _dev2addr() function of QSparseBus
ldoktor Jun 27, 2013
09f2a90
virttest.qemu_devices_unittest: Add qemu_devices unittest
ldoktor Jun 27, 2013
733fdfc
virttest.qemu_devices_unittest: Add tests related to buses
ldoktor Jun 27, 2013
b9cf3a0
virttest.qemu_devices: Remove tailing ']' in DevContainer.str_long()
ldoktor Jul 1, 2013
36e8f97
virttest.qemu_devices: Use is None for checking
ldoktor Jul 1, 2013
9ec0661
virttest.qemu_devices: Fix DevContainer.cmdline() to start with char
ldoktor Jul 1, 2013
8932d5b
virttest.qemu_devices: Fix HMP commands regexp
ldoktor Jul 1, 2013
3a5c4f1
virttest.qemu_devices: Fix machine_by_params name
ldoktor Jul 2, 2013
40ec23f
virttest.qemu_devices_unittest: Add unittest for DevContainer
ldoktor Jul 2, 2013
1f75e00
virttest.qemu_devices_unittest: Fix path references
lmr Jul 5, 2013
b654c67
Merge pull request #566 from zhouqt/no-suspend-on-ppc
ypu Jul 8, 2013
2af9b42
Merge pull request #587 from zhouqt/usb
ldoktor Jul 8, 2013
39f1942
virttest.virsh: Add nodedev functions.
Jul 8, 2013
4238317
Add test for virsh nodedev-detach and nodedev-reatach.
Jul 8, 2013
fc65afa
Fedora 18: remove sg3_utils package from kickstart file
clebergnu Jul 8, 2013
54f9502
Guest support: add Fedora 19 asset file
clebergnu Jul 4, 2013
2e42632
Guest support: add Fedora 19 kickstart file
clebergnu Jul 4, 2013
bbd27f2
Guest support: add Fedora 19 x86_64, i386 and ppc64 configuration
clebergnu Jul 8, 2013
c4e6dca
qemu.qemu_vm: spice related bug fix
Jul 8, 2013
92c93d4
virttest.virsh: Fix typo
lmr Jul 8, 2013
e939495
virt: enhancement of class utils_libguestfs.LibguestfsBase.
Apr 16, 2013
54c4433
virttest.utils_libguestfs: Add guestfish about classes.
Jun 25, 2013
0859bdb
libguestfs.tests: Add a sample test about guestfish.
Jun 25, 2013
186503a
virttest.utils_libguestfs: Replace dictionary args.
Jul 3, 2013
7a94ebf
virttest: Add unittest for utils_libguestfs module.
Jul 3, 2013
e773352
virttest.utils_libguestfs: Fix GuestfishSession constructor
lmr Jul 8, 2013
be9107b
virttest.env_process: Update iscsi setup related code
ypu Jun 8, 2013
57d5b31
virttest.env_process : add pci msi on/off support in autotest
Jul 9, 2013
82e83b1
add commas of qemu cpu flags in cfg, not qemu_vm(issue 604)
xiaoqing-wei Jul 5, 2013
2eeb1b7
tests.netperf: Update iptables stop command to ignore fail status
Jul 9, 2013
e8727ef
MAINTAINERS: Add Yang Dongsheng as libvirt subsystem maintainer
lmr Jul 9, 2013
8f868a4
utils_cgroup: Fix the remaining imports
ldoktor Jul 9, 2013
cbfa08f
virttest.env_process: Process all images at once
ldoktor Jul 9, 2013
8619905
virttest.env_process: Avoid autotest hang in postprocess
ldoktor Jul 9, 2013
65acf7f
qemu.tests.hdparm: Fix issue that start VM twice
Jul 9, 2013
f9e348c
qemu.tests.physical_resources_check: Always use human monitor info co…
Jul 9, 2013
8efde9d
qemu.tests.cfg: Enable usb_nodev variant on RHEL host
zhouqt Jul 10, 2013
7ddbeff
shared.cfg: Fix the s4_support_chk_cmd for Fedora guest
zhouqt Jul 10, 2013
d1a6625
shared.cfg.guest-os.Windows: Ignore post_cmd status in multi_disk case
Jul 10, 2013
c0ce525
qemu.qemu_vm: support vhostfd in netdev.
Jun 28, 2013
c7de693
utils_libvirtd: if libvirt is not availible in host, No error, but a …
Jul 11, 2013
a8d2044
virt: modify libvirtd_status() to libvirtd_is_running()
Jul 12, 2013
df3f719
virttest.aexpect: Fix old class Spawn definition.
Jul 12, 2013
5bff6d4
README.rst: add basic troubleshooting instructions
clebergnu Jul 14, 2013
fd52ca7
virttest.env_process: Fix postprocess logging
ldoktor Jul 15, 2013
b9419cc
qemu.tests.cfg: Enable qemu guest agent test for RHEL guest
zhouqt Jul 16, 2013
2130213
qemu.tests.cfg: Disable xhci on old windows for RHEL host
zhouqt Jul 16, 2013
52de024
qemu.tests.cfg: Move usb_(re)boot config for win guest to Windows.cfg
zhouqt Jul 16, 2013
121e1f4
qemu.balloon_check: reset the memory to origin value
QiuMike Jul 16, 2013
83d70b6
Merge pull request #638 from zhouqt/minor-fix
Jul 17, 2013
281c232
virttest.qemu_devices: Fix QStringDevice.cmdline problem
ldoktor Jul 16, 2013
fc0e410
tests: Correct the wrong import module for trans_hugepage_memory_stress
ypu Jul 12, 2013
7a3d0b9
shared.control: Update the stress_memory_heavy.control
ypu Jul 12, 2013
3c8ce07
virttest.aexpect: A work aound for new style class pickle
ypu Jul 12, 2013
0e98970
Fix libvirt_xml/vm_xml.
Jun 21, 2013
e94f5cc
libvirt.tests: Fix testcases to new XML define-undefine.
Jul 16, 2013
5e8a69a
Merge pull request #641 from QiuMike/qemu.balloon_check_reset_the_mem…
Jul 18, 2013
c50b220
virttest.qemu_devices: Fix in-code OrderedDict
ldoktor Jul 18, 2013
501ad82
Merge pull request #647 from ldoktor/add_device2
Jul 18, 2013
84637b0
virttest.libvirt_xml.vm_xml: Fix undefined variable error
lmr Jul 18, 2013
46405eb
monitor: fix pattern of float
amoskong Jun 13, 2013
247f904
enable mq feature in qemu cmdline/commands
amoskong Jun 13, 2013
66b13a8
update config file to assign the queue number
amoskong Jun 13, 2013
46ef8d8
add testcase to enable MQ feature in guests
amoskong Jun 13, 2013
2b7b3de
shared: Add GPG keys dir
lmr Jul 17, 2013
67f94d7
virttest.build_helper: Fix problem with verifying signed tags
lmr Jul 17, 2013
9c5f674
virt.test : Make file_transfer support vhostforce on and off
Jun 20, 2013
34e7126
rename qcow3 to qcow2_v3 and disable it on unsupported hosts
xiaoqing-wei Jul 19, 2013
9c7331b
virttest.virsh: Allow pool-info return result.
Jul 18, 2013
ae1c779
libvirt.tests: Recover missing virsh_pool_create_as configuration.
Jul 18, 2013
4d8f27a
Merge pull request #627 from ypu/thp_stress
Jul 19, 2013
84aa02a
Merge pull request #651 from xiaoqing-wei/qcow2_v3
Jul 19, 2013
70605dc
virttest.utils_misc: Add cpu model Opteron_G5 to get_host_cpu_models
ypu Jul 19, 2013
be0e3ef
Merge pull request #654 from ypu/cpumodel
Jul 22, 2013
55ab0fa
env_process: preprocess_vm start_vm fix.
Jul 10, 2013
b62595b
Add kill_vm_before_test=no in base.cfg
Jul 16, 2013
07cafe0
Merge pull request #577 from FengYang/fix
ypu Jul 22, 2013
32cfd67
virttest.env_process: Remove unused import libvirt_vm
ypu Jul 22, 2013
aab3cde
Merge pull request #620 from ypu/libvirtd
Jul 22, 2013
a1ee5c3
disable hdparm test for virtio-scsi disk
Jul 22, 2013
d5a8280
qemu.tests: disable lsi device on Host_RHEL6.5 and Host_RHEL7.0
Jul 22, 2013
745cd80
virttest: fix save_to_file time when use qmp monitor
Jul 22, 2013
56425f4
virt.tests.jumbo : Fix some issues of jumbo test
Jul 23, 2013
15ef554
Merge pull request #664 from humanux/jumbo
Jul 24, 2013
d74a975
Merge pull request #659 from xutian/small_fix
Jul 24, 2013
c8a94ea
shared.deps.finish.bat: Add vds service start in finish.bat
ypu Nov 21, 2012
677ad7c
tests: Add a function for copy image from nfs when install failed
ypu Jun 20, 2013
da7e294
shared.unattended: Make win2008r2 support key during installation.
May 3, 2012
feaa5e5
tests: Read serial output from the log file in unattended_install
ypu May 25, 2012
2e75944
tests: unattended_install: Fix serial log file path
zhouqt Oct 30, 2012
8874044
tests: unattended_install: Create missing serial log file
zhouqt Oct 30, 2012
998e135
tests: Support copy iso file to local host in unattended_install.cdro…
Nov 8, 2012
9111342
tests: Update the unattended install string update function
ypu Jun 21, 2013
d9909cc
tests: Read driver id from inf file for Windows drivers
Jun 21, 2013
a35554a
virttest.utils_test: Update get_driver_hardware_id to ignore device i…
ypu Jul 8, 2013
24dd981
tests: Win guest unattended_install support latest driver
Feb 1, 2013
bf71a5a
test: Store the boot disk to results dir
ypu Jul 9, 2013
6a8045c
tests: Copy image when unattended install failed even in the start steps
ypu Jul 10, 2013
294881d
shared.unattended: Update the unattended files
ypu Jul 10, 2013
cb7d7c2
test.cfg: Add some sub test in unattended install
ypu Jul 17, 2013
b1a08f2
virt: Replace Versionable class with new version.
Jun 20, 2013
57da1f0
virt: Adds compatibility with new versionable class.
Jun 20, 2013
356d4e7
qemu_vm: Update qemu_binary to be able to use LD_LIBRARY_PATH
swapnakrishnan2k Jul 22, 2013
5f89bc0
Removing spice_common as it's obsolete
swapnakrishnan2k Jul 23, 2013
0eb07ee
tests.mac_change : change mac when the interface is active
Jul 22, 2013
6aba112
Merge pull request #658 from humanux/mac_change_v1
Jul 25, 2013
5b6077e
qemu.tests.virtio_console: Raise correct exception
ldoktor Jul 25, 2013
1887847
share.cfg: disable xfstests on old RHEL OSes dont have xfs support
xiaoqing-wei Jul 25, 2013
ab6d9ba
Merge pull request #623 from ypu/unatteded
Jul 26, 2013
fa4a7e4
tests.boot: Support multi VMs
Jul 26, 2013
2a17857
virt: Fix bug in cart config.
Jul 26, 2013
13132a1
virttest: Correct default sysfs_dir parameter
Jul 26, 2013
a6a2e30
virt: Modify cgroup service control function
Jul 17, 2013
274c0cb
autotest_regression: Too few arguments for format string
Jul 29, 2013
c792b5f
autotest_regression: replace error.ValueError with ValueError
Jul 29, 2013
889a2cf
autotest_regression: move copy of install-autotest-server*log outside…
Jul 29, 2013
08672f9
Merge pull request #578 from FengYang/cpu_hotplug
ypu Jul 29, 2013
9eaded3
virttest: enhanced run_autotest function
Jul 2, 2013
d4f51d7
virt.tests: update autotest.iozone cfg
Jul 2, 2013
3a4b257
shared.control: make xfstests run on real partation
Jul 2, 2013
6c24df9
virt.tests: sync linus_stress testing to autotest_control testsuite
Jul 2, 2013
3e751bf
virt.tests: sync signaltest to autotest_control testsuite
Jul 2, 2013
291d947
virt.tests: sync parallel_dd to autotest_control testsuite
Jul 2, 2013
b6873b0
virt.tests: update autotest.cpu_hotplug cfg
Jul 2, 2013
5e70ef1
virt.tests: sync compliebench to autotest_control testsuite
Jul 2, 2013
439cea2
virt.tests: sync fsstress testing to autotest_control testsuite
Jul 2, 2013
07b5c90
virt.tests: sync aiostress testing to autotest_control testsuite
Jul 2, 2013
e334fed
virt.tests: sync interbench testing to autotest_control testsuite
Jul 2, 2013
e6dcd7a
virt.tests: sync kernbench testing to autotest_control testsuite
Jul 2, 2013
56165e7
virt.tests: sync posixtest to autotest_control testsuite
Jul 2, 2013
0c74b84
virt.tests: sync rmaptest to autotest_control testsuite
Jul 2, 2013
7f160df
virt.tests: sync synctest to autotest_control testsuite
Jul 2, 2013
d667cb7
virt.tests: sync tbench testing to autotest_control testsuite
Jul 2, 2013
36106c2
virt.tests: sync tiobench testing to autotest_control testsuite
Jul 2, 2013
36bd0ec
virt.tests: sync fio test to autotest_control testsuite
Jul 16, 2013
0e3c5b0
virt.tests: sync unixbench5 to autotest_control testsuite
Jul 16, 2013
ef032a2
virt.tests: sync wb_kupdate test to autotest_control testsuite
Jul 16, 2013
bb08387
Merge pull request #676 from FengYang/boot
Jul 29, 2013
d177050
libvirt: Fix a bug in virsh_change_media test and modify format
Aug 1, 2013
adfe1a9
qemu.tests: enhance base_copy modules
Jul 15, 2013
2d439c5
qemu.tests: fix bug in get_image_file()
Jul 29, 2013
212e315
qemu.tests: enhanced drive_mirror module
Jul 15, 2013
ab2307c
qemu.tests: update mirroring with reboot test
Jul 15, 2013
f1f0803
qemu.tests: enhance drive mirror with stress test
Jul 15, 2013
0aae60f
qemu.tests: update powerup with target image step
Jul 15, 2013
d07427f
qemu.tests: refactor block mirror test with exist framework
Jul 15, 2013
761689a
qemu.tests: update drive_mirror test cfg
Jul 15, 2013
5375426
qemu.tests: add steps to install stress app if not installed
Jul 15, 2013
ea12111
qemu.tests: move snapshot image to image dir
Jul 15, 2013
ed13130
qemu.tests: update block copy test configuration
Jul 15, 2013
479f696
qemu.tests: update config filter some qemu images case
Jul 16, 2013
cdb7626
virttest:new interface to clear a kind of events
Jul 16, 2013
91879bc
qemu.tests: fix incorrect test steps in qemu_img.rebase test
Jul 16, 2013
623e191
qemu.tests: correct configuration for qemu_img tests
Jul 16, 2013
7861392
qemu.tests: remove duplicated function in block_copy module
Jul 21, 2013
5625096
qemu.tests: refactor block_stream test with exist framework
Jul 21, 2013
a1afc65
virttest: enhanced block_stream/drive_mirror related interface
Jul 26, 2013
2e818ed
virttest: auto correct command before send
Jul 26, 2013
95c0ae6
qemu.tests: update block stream testing cfg accroding test-case
Jul 29, 2013
b23a62b
shared.unattended: include some autotest requried pkgs
Jul 30, 2013
5b5dc73
qemu.tests: disable qemu_iotests for some image format on RHEL host
Jul 30, 2013
3779651
virttest.qemu_vm : Get vcpu threads by funtion get_vcpu_pids
Jul 18, 2013
1e9b2aa
Shared/cfg/base.cfg: make 'vcpu_thread_pattern' support both type mon…
Jul 18, 2013
e2426ae
shared.cfg: Check SSDT for both S3/S4 tests
zhouqt Jul 16, 2013
c736b72
virttest.virsh: Fix argument error for vol_create_as.
Aug 6, 2013
88ec94e
virsh_managedsave: Fix configuration option
pipo Aug 1, 2013
d353a50
libvirt: Add 'EDITOR' configuration in control
Jul 29, 2013
3b795a2
virttest.staging.utils_memory: Add utils_memory in virttest staging
ypu Aug 5, 2013
c842911
Update memory related calls in scripts
ypu Aug 6, 2013
49883b7
Add virttest.staging.utils_cgroup
lmr Aug 6, 2013
ffdf619
cgroup: Add CgconfigService class
lmr Aug 6, 2013
ff9c678
qemu_vm: don't hide TestNAError exceptions
ehabkost Aug 2, 2013
9119da3
.gitignore: add cpuid_test_kernel binary
ehabkost Aug 5, 2013
4e1e061
qemu_vm: add comma before CPU flags if necessary
ehabkost Aug 5, 2013
47d77a4
qemu_cpu.cfg: create named variants for multiple QEMU versions
ehabkost Aug 2, 2013
b5189cf
cpuid: convenience functions for logging
ehabkost Aug 2, 2013
b8760fb
cpuid: always parse and convert CPUID dump to a dictionary
ehabkost Aug 2, 2013
fd6c619
cpuid: remove unnecessary exception-catching code
ehabkost Aug 2, 2013
dad4171
cpuid: get_guest_cpuid(): allow extra VM creation parameters to be sp…
ehabkost Aug 5, 2013
424e44c
cpuid: remove exception traceback code
ehabkost Aug 5, 2013
a072e0f
cpuid: eliminate MiniSubtest class
ehabkost Aug 5, 2013
1e5a5ce
shared.cfg.guest-os: Add serial number check command for Windows guest
ypu Aug 1, 2013
102b00e
shared.control: update bonnie control file
Aug 5, 2013
adfdde2
qemu: Remove the host kernel file at the beginning of control.kernel-…
ypu Aug 5, 2013
6943306
tests.boot: Create new session for every VM in loop
Aug 2, 2013
518e904
virttest.qemu_devices: Add parameter to workaround qemu qmp crash bug
ldoktor Jul 26, 2013
36d23bd
qemu.tests: Add negative test for usb host
zhouqt Jul 17, 2013
b8b84e9
qemu.tests: Make usb host test can repeat multiple times
zhouqt Jul 17, 2013
c1a7e66
qemu.tests: Add a test for checking isobufs option for usb
zhouqt Jul 17, 2013
33ccd5a
kill_app.py: Kill selected application
Dec 20, 2012
8ec10a3
rv_disconnect: Remove test
Dec 21, 2012
a6ca395
rv_video.py: Spice video test
Jan 28, 2013
db216cd
rv_connect: SSL, audio, smartcard, ipv6, menu updates.
krcmarik Jun 3, 2013
98a3d2c
virttest/qemu_vm.py: spice related updates.
tjamrisk Feb 26, 2013
4107eea
tests/rv_audio.py: Adds rv_audio test
tjamrisk Mar 27, 2013
64b656c
utils_misc.py: Add function to convert ipv4 address to ipv6 format.
vi-patel Apr 25, 2013
9ef59f0
qemu/tests/cfg/spice.cfg: Add spice tests.
krcmarik Jun 8, 2013
abae4b2
qemu/cfg/tests-spice.cfg: Add spice test variants
krcmarik Jun 8, 2013
542a916
tests/rv_vdagent.py:Add basic tests to test the spice vdagent service.
vi-patel May 9, 2013
8c8562e
virttest/utils_spice.py: Adding get_vdagent_status method.
vi-patel May 9, 2013
3f7c82e
tests/rv_smartcard.py: Adding 2 Smart Card tests.
vi-patel May 24, 2013
940d51d
tests/smartcard_setup.py:Adding a setup test for smartcards.
vi-patel May 24, 2013
6d49208
tests/rv_clearx.py: Restarts X server by killing Xorg
tjamrisk Jun 14, 2013
aafc6d2
tests/rv_vmshutdown.py: Increase timeout for VM to be dead.
krcmarik Jun 17, 2013
bda945f
shared/downloads/video-sample.ini: Video file asset
krcmarik Jun 24, 2013
bc0d6a6
shared/unattended/RHEL-6.3.ks
krcmarik Jul 29, 2013
ae2f962
tests.rv_video: Fix logging parameters
lmr Aug 7, 2013
5683cdb
libvirt: fix virsh edit test.
Aug 6, 2013
de39881
libvirt: fix virsh_edit.py from pep8
Aug 6, 2013
a2fedc7
virttest.staging: fix module import error
Aug 7, 2013
d09da62
virsh-schedinfo-qemu-posix: fix the cgroup path
phrdina Aug 5, 2013
86949bc
libvirt: Restrict default test set
lmr Aug 7, 2013
e3d7301
unattended_install: Fix problem with libvirt
lmr Aug 7, 2013
35db881
Merge pull request #695 from liyangfnst/change_media
cevich Aug 7, 2013
8913948
Merge pull request #710 from yangdongsheng/virsh_edit
Aug 9, 2013
7b98fc4
add images before image name
QiuMike Aug 5, 2013
e8bdd97
Merge pull request #683 from rbbratta/autotest_regression_fixes
ypu Aug 9, 2013
d2db680
virt-libvirt: Add virsh domiftune commands function wrapper
chuanchangjia Jul 1, 2013
9827066
virt-libvirt: Get virtual interface parameters from guest XML
chuanchangjia Jul 1, 2013
fa0e332
virt-libvirt: Add Deprecate TODOs for VMXML
cevich Jul 5, 2013
d3660bb
virt-libvirt: Add test cases for domain's virtual interface tuning
chuanchangjia Jul 1, 2013
5442764
virt-libvirt: Add domain's virtual interface tuning test configuration
chuanchangjia Jul 1, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*.so
.settings
shared/data
shared/deps/cpuid_test_kernel/cpuid_dump_kernel.bin
qemu/env
logs
qemu/unittests
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pull request maintenance - Libvirt subtests

M: Christopher Evich <[email protected]>
M: Yu Mingfei <[email protected]>

M: Yang Dongsheng <[email protected]>

Pull request maintenance - Libguestfs
-------------------------------------
Expand Down
27 changes: 27 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,30 @@ platform. Autotest is a modular framework, and this suite can be used as
a submodule of the client module. If you do not want to use or know about
autotest, this is fine too, and we'll provide documentation and tools to
perform development style testing with it.


Basic Troubleshooting
---------------------

If you have problems with the basic usage described here, it's possible
that there's some local change in your working copy of virt-test. These
changes can come in (at least) two different categories:

- Code changes, which you can check with the git tools (try "git diff"
and "git branch" first)
- Configuration changes that can you reset with "update_config.py"

If you find that you have local changes in the code, please try to reset
your checked out copy to upstream's master by running::

$ git checkout master
$ git pull


And then, reset you configuration. If you're going to run qemu tests, run::

$ qemu/update_config.py


If you're still having problems after these basic troubleshoot steps,
please contact us!
25 changes: 25 additions & 0 deletions libguestfs/tests/cfg/guestfs_add.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- guestfs_add:
type = guestfs_add
start_vm = "no"
# If login to check whether write content successfully.
login_to_check_write = "yes"
variants:
- normal_test:
status_error = "no"
guestfs_add_readonly = "no"
variants:
- add_disk:
guestfs_add_ref = "disk"
- add_domain:
guestfs_add_ref = "domain"
- error_test:
status_error = "yes"
guestfs_add_readonly = "yes"
# normally write content will be failed.
login_to_check_write = "no"
variants:
# Write content to readonly disk or domain
- add_disk_ro:
guestfs_add_ref = "disk"
- add_domain_ro:
guestfs_add_ref = "domain"
188 changes: 188 additions & 0 deletions libguestfs/tests/guestfs_add.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
import logging, re, commands
from autotest.client.shared import error
from virttest import utils_libguestfs as lgf
from virttest import aexpect


def set_guestfs_args(guestfs, ignore_status=True, debug=False, timeout=60):
"""
Maintain Guestfish class' arguments.
"""
guestfs.set_ignore_status(ignore_status)
guestfs.set_debug(debug)
guestfs.set_timeout(timeout)


def add_disk_or_domain(guestfs, disk_or_domain, add_ref="domain",
readonly=False):
"""
Add disk or domain to guestfish

@param guestfs: a session of guestfish
@param disk_or_domain: a disk or a domain
@param add_ref: domain or disk
@param readonly: is added disk or domain readonly.
"""
if add_ref == "domain":
add_result = guestfs.add_domain(disk_or_domain, readonly=readonly)
elif add_ref == "disk":
add_result = guestfs.add_drive_opts(disk_or_domain, readonly=readonly)
else:
guestfs.close_session()
raise error.TestFail("Added must be a disk or a domain.")

if add_result.exit_status:
guestfs.close_session()
raise error.TestFail("Add %s failed:%s" % (add_ref, add_result))
logging.debug("Add %s successfully.", add_ref)


def launch_disk(guestfs):
# Launch added disk or domain
launch_result = guestfs.run()
if launch_result.exit_status:
guestfs.close_session()
raise error.TestFail("Launch failed:%s" % launch_result)
logging.debug("Launch successfully.")


def get_root(guestfs):
getroot_result = guestfs.inspect_os()
roots_list = getroot_result.stdout.splitlines()
if getroot_result.exit_status or not len(roots_list):
guestfs.close_session()
raise error.TestFail("Get root failed:%s" % getroot_result)
return roots_list[0]


def mount_filesystem(guestfs, filesystem, mountpoint):
mount_result = guestfs.mount(filesystem, mountpoint)
if mount_result.exit_status:
guestfs.close_session()
raise error.TestFail("Mount filesystem failed:%s" % mount_result)
logging.debug("Mount filesystem successfully.")


def run_guestfs_add(test, params, env):
"""
Test of built-in 'add-xxx' commands in guestfish.

1) Get parameters for test
2) Set options for commands
3) Run key commands:
a.add disk or domain with readonly or not
b.launch
c.mount root device
4) Write a file to help result checking
5) Check result
"""

vm_name = params.get("main_vm")
vm = env.get_vm(vm_name)

# Get parameters
add_ref = params.get("guestfs_add_ref", "domain")
add_readonly = "yes" == params.get("guestfs_add_readonly", "no")
status_error = "yes" == params.get("status_error", "no")
login_to_check = "yes" == params.get("login_to_check_write", "no")
# Any failed info will be recorded in this dict
# Result check will rely on it.
fail_flag = 0
fail_info = {}

if vm.is_alive():
# Execute guestfish when vm is alive is dangerous.
# Do not support this test right now.
vm.destroy()

if add_ref == "domain":
disk_or_domain = vm_name
elif add_ref == "disk":
# Get system disk path of tested domain
disks = vm.get_disk_devices()
if len(disks):
disk = disks.values()[0]
disk_or_domain = disk['source']
else:
# No need to test since getting vm's disk failed.
raise error.TestFail("Can not get disk of %s" % vm_name)

guestfs = lgf.GuestfishPersistent()
set_guestfs_args(guestfs)

# Add tested disk or domain
add_disk_or_domain(guestfs, disk_or_domain, add_ref, add_readonly)

# Launch added disk or domain
launch_disk(guestfs)

# Mount root filesystem
root = get_root(guestfs)
mount_filesystem(guestfs, root, '/')

# Write content to file
status, content = commands.getstatusoutput("uuidgen")
write_result = guestfs.write("/guestfs_temp", content)
if write_result.exit_status:
fail_flag = 1
fail_info['write_content'] = ("Write content to file failed:"
"%s" % write_result)
else:
logging.debug("Write content to file successfully.")
fail_info['write_content'] = "Write content to file successfully."

# Check writed file in a new guestfish session
guestfs.new_session()
set_guestfs_args(guestfs)
add_disk_or_domain(guestfs, disk_or_domain, add_ref, add_readonly)
launch_disk(guestfs)
mount_filesystem(guestfs, root, '/')
cat_result = guestfs.cat("/guestfs_temp")
if cat_result.exit_status:
fail_flag = 1
fail_info['cat_writed'] = ("Cat writed file failed:"
"%s" % cat_result)
else:
guestfs_writed_text = cat_result.stdout
if not re.search(content, guestfs_writed_text):
fail_flag = 1
fail_info['cat_writed'] = ("Catted text is not match with writed:"
"%s" % cat_result)
logging.debug("Catted text is not match with writed")
else:
logging.debug("Cat content of file successfully.")
fail_info['cat_writed'] = "Cat content of file successfully."

# Start vm and login to check writed file.
guestfs.close_session()
if login_to_check:
try:
vm.start()
session = vm.wait_for_login()
session.cmd("mount %s /mnt" % root)
try:
login_wrote_text = session.cmd_output("cat /mnt/guestfs_temp",
timeout=5)
except aexpect.ShellTimeoutError, detail:
# writen content with guestfs.write won't contain line break
# Is is a bug of guestfish.write?
login_wrote_text = str(detail)
if not re.search(content, login_wrote_text):
fail_flag = 1
fail_info['login_to_check'] = ("Login to check failed:"
"%s" % login_wrote_text)
else:
logging.debug("Login to check successfully.")
fail_info['login_to_check'] = "Login to check successfully."
except aexpect.ShellError, detail:
fail_flag = 1
fail_info['login_to_check'] = detail
vm.destroy()

if status_error:
if not fail_flag:
raise error.TestFail("Expected error is successful:"
"%s" % fail_info)
else:
if fail_flag:
raise error.TestFail(fail_info)
6 changes: 3 additions & 3 deletions libguestfs/tests/virt_edit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging, re
from autotest.client.shared import utils, error
from virttest import libvirt_vm
from virttest import libvirt_vm, utils_libvirtd
import virttest.utils_libguestfs as lgf


Expand Down Expand Up @@ -88,7 +88,7 @@ def run_virt_edit(test, params, env):
# Stop libvirtd if test need.
libvirtd = params.get("libvirtd", "on")
if libvirtd == "off":
libvirt_vm.libvirtd_stop()
utils_libvirtd.libvirtd_stop()

# Run test
virsh_dargs = {'ignore_status': True, 'debug': True, 'uri': uri}
Expand All @@ -98,7 +98,7 @@ def run_virt_edit(test, params, env):

# Recover libvirtd.
if libvirtd == "off":
libvirt_vm.libvirtd_start()
utils_libvirtd.libvirtd_start()

utils.run("rm -f %s" % created_img)

Expand Down
2 changes: 2 additions & 0 deletions libvirt/control
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ from virttest import utils_misc, cartesian_config

# set English environment (command output might be localized, need to be safe)
os.environ['LANG'] = 'en_US.UTF-8'
# set editor environment (some command will use default editor "vi")
os.environ['EDITOR'] = 'vi'

libvirt_test_dir = os.path.join(os.environ['AUTODIR'],'tests/virt/libvirt')

Expand Down
59 changes: 30 additions & 29 deletions libvirt/tests/cfg/virsh_cmd/domain/virsh_change_media.cfg
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
- virsh_change_media:
virt_test_type = libvirt
type = virsh_change_media
old_iso = "change_media_old.iso"
new_iso = "change_media_new.iso"
update_iso_xml = "update_iso.xml"
disk_device = "hdc"
vm_ref = "name"
init_cdrom = "''"
change_media_update_iso_xml = "update_iso.xml"
change_media_disk_device = "hdc"
change_media_vm_ref = "name"
change_media_init_cdrom = "''"
change_media_old_iso = "change_media_old.iso"
change_media_new_iso = "change_media_new.iso"
libvirtd = "on"
init_iso = "change_media_old.iso"
change_media_source =
change_media_init_iso = "change_media_old.iso"
variants:
- positive_test:
status_error = "no"
Expand All @@ -21,52 +22,52 @@
- options:
variants:
- none:
options = " "
change_media_options = " "
- current:
options = "--current"
change_media_options = "--current"
- live:
no shutoff_guest
options = "--live"
change_media_options = "--live"
- force:
options = "--force"
change_media_options = "--force"
- config:
options = "--config"
change_media_options = "--config"
variants:
- eject:
action = "--eject "
check_file =
change_media_action = "--eject "
change_media_check_file =
- insert:
change_media_source = "change_media_old.iso"
action = "--insert "
check_file = "old"
init_iso =
change_media_action = "--insert "
change_media_check_file = "old"
change_media_init_iso =
- update:
change_media_source = "change_media_new.iso"
action = "--update "
check_file = "new"
change_media_action = "--update "
change_media_check_file = "new"
- negative_test:
status_error = "yes"
start_vm = "no"
options = "--current"
change_media_options = "--current"
variants:
- no_option:
only insert
options = " "
change_media_options = " "
- no_name:
vm_ref = " "
change_media_vm_ref = " "
- unexpect_option:
vm_ref = "\#"
change_media_vm_ref = "\#"
- invalid_option:
options = "--xyz"
change_media_options = "--xyz"
- with_libvirtd_stop:
requires_root = "yes"
change_media_requires_root = "yes"
libvirtd = "off"
- shutoff_guest_with_live:
options = "--live"
change_media_options = "--live"
variants:
- eject:
action = "--eject "
change_media_action = "--eject "
- insert:
action = "--insert "
change_media_action = "--insert "
- update:
action = "--update "
change_media_action = "--update "
Loading