Age | Commit message (Collapse) | Author | Files | Lines |
|
- update this case, make it easy to get failure from result.
- fix some error in log message.
- close session before exception raised.
- update code style.
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5451 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
__init__
monitor socket will be initiated at the beginning of '*Monitor.__init__',
if exception occur in this function, socket will not be closed correctly.
In this case, socket should be closed explicitly.
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5450 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This fixes bug 55, found by Shrirang Phansalkar when trying to use an
API present on fsdev_disks.py: Some needed methods were missing from
the base implementation present on fsdev_mgr, map_drive_name and
check_mount_point. This patch adds them.
Signed-off-by: Gregory P. Smith <gps@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5449 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Prune all files, removing trailing whitespaces and
incorrect indentation.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5444 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
After receiving some feedback on get_started.py, resolved
to remove a question regarding NFS shares. Since the script
prints the directories clearly, if one wants to setup NFS or
symlinks, he/she will do it.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5440 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
I really thought I had fixed this one. cd_hash makes reference
to a KvmLoggingConfig class, that existed prior to the refactor.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5435 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
expose in global_config
Confusingly, timeouts for the same thing are set differently in multiple
places. Also, many of the host timeouts are far too long for Chrome OS.
As such, I've unified a couple of the host timeouts and exposed the
default values through global config.
Signed-off-by: Dale Curtis <dalecurtis@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5434 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
str() method will fail if there are non-ascii characters in the string.
A "UnicodeEncodeError: 'ascii' codec can't encode characters..." error
will be generated in this case.
Since this method is used by the scheduler to setup emails, the
scheduler can get into a nasty failure loop here.
The fix is simply to encode the string as utf-8. This fixes the original
issue introduced with http://autotest.kernel.org/changeset/5076
Signed-off-by: Dale Curtis <dalecurtis@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5431 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The logging manager unittest relies on some internals of the python
unittest implementation. On py >= 2.6, the actual test method is called
in the file case.py, rather than unittest.py, which is the appropriate
file in python 2.4. So let's take both into account.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5430 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5422 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
If subtest is successful runsubtest returns True otherwise False.
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5421 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5420 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Make sure handlers are closed.
Signed-off-by: Jongki Suwandi <jsuwandi@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5419 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Add test variants for ahci and usb to the tests_base.cfg.sample file.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5417 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch adds support for virtual usb sticks.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5416 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch adds support for virtual usb cdrom drives.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5415 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch adds support for AHCI cdroms.
SCSI cdroms work too as side effect.
The patch also adds cd_format, which is the same as disk_format but for cdroms.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5414 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch adds support for AHCI disk images.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5413 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch adds support for virtual usb cdrom drives.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5412 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Rather than the unsupported userspace mode, which still is
an option. This way we are giving users a default setup
much closer to a real world usage scenario, and enable
people to run all the network tests that don't work properly
in user mode.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5403 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
We used to use qemu-ifup to manage the tap which have several
limitations:
1) If we want to specify a bridge, we must create a customized
qemu-ifup file as the default script always match the first bridge.
2) It's hard to add support for macvtap device.
So this patch let kvm subtest control the tap creation and setup then
pass it to qemu-kvm. User could specify the bridge he want to used in
configuration file.
The original autoconfiguration was changed by private bridge setup.
Changes from v1:
* Combine the private bridge config and TAP fd in one patchset,
dropped the "auto" mode
Changes from v2:
* Close TAP fds on VM.destroy() (thanks to Amos Kong for finding
the problem, and for Cleber and Jason for actually fixing it).
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5402 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Call bridge setup at preprocessing and cleanup at postprocessing.
The bridge can be cleaned up when no tap interfaces are using it.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5401 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch adds some helpers to assist virt test to setup the bridge or
macvtap based guest networking.
Changes from v1:
* Fixed undefined variable errors on the exception class definitions
Changes from v2:
* On RHEL5, the io operation TUNGETFEATURES = 0x800454cf may return an
integer bigger than the max signed integer, triggering an OverflowError.
Let's catch that exception and make vnet_hdr_probe() return False in
case it happens.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5400 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Provide in framework utility code to control the creation
of a bridge, in order to provide TAP functionality for
autotest users without relying on previous setup made by
the user.
This is a reimplementation of Amos's code, the differences
are:
* Implemented as a setup class, taking advantage of object
internal state to use in different places of the code
* Split up the operations to make it easier to understand
the steps and why we are doing them
* Use of autotest API instead of commands
Changes from v2:
* Changed firewall rules to match libvirt rules,
made the rules to be added with -I, which will place
them before exclusion rules
* Safer cleanup, always try to cleanup when something
wrong happens during setup.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5399 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Test this configure with nic_mode = tap
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5398 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This case test multi disk suport in kvm guest os. It can work on Linux and
Windows guest.
Changes from v1:
* Update test to use a more current version of the virt autotest API.
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5397 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Add ntp in rhel5 ks file. We need it in some case.
For rhel3, 4, 5, ntpdate is included in ntp.rpm.
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5396 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5395 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Do that by adding an additional utility function in the
test object, that will call another test from inside the
test scope.
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5394 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Get ip address in local system which can communicate
with a given ip, that will be useful for subtests like
netperf2.
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5393 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The attribute is_alive is imported in python 2.6, so can not run
it in hosts with python 2.4 such as RHEL5. Just use isAlive().
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5391 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The main purpose of this case is to test 'migrate_set_speed' command.
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5388 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
"pre_migrate": list of functions running before migration start.
"post_migrate": list of functions running after migration finish.
These functions can be configured in tests_base.cfg file.
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5387 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
$ ntpdate -d -q clock.redhat.com; date
27 May 07:53:40 ntpdate[5124]: ntpdate 4.2.4p8@1.1612-o Sat Aug 7 00:36:25 UTC 2010 (1)
...
reference time: d189668e.cf49d65e Fri, May 27 2011 7:53:50.809
originate timestamp: d1896690.bf062200 Fri, May 27 2011 7:53:52.746 ---> host_time
transmit timestamp: d1896685.c0c87980 Fri, May 27 2011 7:53:41.753
...
27 May 07:53:42 ntpdate[5124]: step time server 66.187.233.4 offset 10.826804 sec
Fri May 27 07:53:42 CST 2011 ----> guest_time
The offset(got by ntpdate cmd) = host_time - guest_time
So guest_time = host_time - float(offset)
When get time by 'w32tm /stripchart /samples:1 /computer:clock.redhat.com'
The offset(got by w32m cmd) = host_time - guest_time
So host_time = guest_time + float(offset)
We just compare offset relatively, so this error doesn't effect timedrift tests.
CC: Pu Yiqiao <ypu@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5386 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
KojiClient is responsible for getting information and files on
koji/brew. The is_pkg_valid() method was checking for valid tags
and valid builds even when they were not set. Of couse, if neither
are set, the package specification is not valid.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5385 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Include RHEL 6.1, RHEL 5.6 iso details
"ntpdate" is not available in RHEL5. So removing from RHEL-5 kickstart file
Signed-off-by: Pradeep K Surisetty <psuriset@linux.vnet.ibm.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5384 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Older disros like RHEL5* needs "boot=on" for virtio_blk
Signed-off-by: Pradeep K Surisetty <psuriset@linux.vnet.ibm.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5383 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Appended kernel cmdline should be involved by quotation marks.
-append 'root=/dev/vda ro ..'
Reported-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5378 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
../../bin/autotest control --args='only=boot kernel_cmdline="root=/dev/vda ro quite" only=qcow2'
original result:
only boot
kernel_cmdline="root = /dev/vda ro quite"
only qcow2'
new result:
only boot
kernel_cmdline="root=/dev/vda ro quite"
only qcow2'
Reported-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5377 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch boots guest with watchdog drive i6300esb, and checks
if watchdog-action(ex: reset) occurs when guest is crashed.
This test only supports RHEL.5 and RHEL.6
Signed-off-by: Pradeep K Surisetty <psuriset@linux.vnet.ibm.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5376 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Changes from v1:
* Made the test use more current kvm autotest api, namely:
- Error contexts, and session.cmd for shorter, cleaner code
- Removed pre command, as the functionality needed for image_create
was implemented on the previous patch
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
This test sets up an lvm over two images and then format the lvm and
finally checks the fs using fsck.
Signed-off-by: Yolkfull Chow <yzhou@redhat.com>
Remove the progress of filling up.
Add a params of clean which could prevent the umount and volume removing
command and let this case usd by the following benchmark or stress test.
Add the dbench into the lvm tests.
Signed-off-by: Jason Wang <jasowang@redhat.com>
This test depends on fillup_disk test and ioquit test.
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5374 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
For some tests, we need to specify image cluster size for
a given image. Make it possible to specify it so qemu-img
is called with the right parameters. This way we can state
things like:
images += ' stg1 stg2'
image_name_stg1 = storage_4k
image_cluster_size_stg1 = 4096
image_format_stg1 = qcow2
image_name_stg2 = storage_64k
image_cluster_size_stg2 = 65536
image_format_stg2 = qcow2
in the configuration file for a test
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5373 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The main purpose of this case is to expand the qcow2 file to its max size.
Currently we only support Linux guest and write specified size /dev/zero
to files under /tmp.
Signed-off-by: Feng Yang <fyang@redhat.com>
Signed-off-by: Chen Cao <kcao@redhat.com>
Signed-off-by: Yolkfull Chow <yzhou@redhat.com>
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5372 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This test comes from a regression bug:
Guest can not found bootable device after reseting several times by
monitor command.
https://bugzilla.redhat.com/show_bug.cgi?id=531026
Changes from v1:
- add bug id to commitlog
- remove unnecessary imports
- add some log message
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5371 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Change guest state by monitor cmd, verify guest status,
and try to login guest by network.
Changes from v1:
- use new method verify_status() to check vm status
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5370 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This method is used to check if VM status is same as
we expected.
Signed-off-by: Amos Kong <akong@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5369 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
1. Stop tcpdump by close()
Current we stop tcpdump by sending SIGSTOP to tcpdump process,
and do not do any clean up. e.g. release the lock. Then send
SIGCOT to tcpdump process again. But if we fail continue tcpdump
process. Framework will think tcpdump still work and do not
start a new one in next case.
Then autotest could not refresh address_cache after guest's ip changed
So directly close() tcpdump, It will be started at the beginning of
next case.
2. kill netserver properly
netperf test doesn't handle all exceptions correctly, some exception
cause netserver isn't be killed, and the following netperf test will
fail. This patch will fix this problem.
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5368 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
So it's possible to execute the proper command to get memory assigned during physical_resources_check.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5367 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
New qemu upstream versions report block info like this:
(monitor humanmonitor1) Sending command 'info block'
(monitor humanmonitor1) Response to 'info block'
(monitor humanmonitor1) virtio0: removable=0 file=/tmp/kvm_autotest_root/images/rhel6-64.qcow2 ro=0 drv=qcow2 encrypted=0
(monitor humanmonitor1) ide1-cd0: removable=1 locked=0 [not inserted]
(monitor humanmonitor1) floppy0: removable=1 locked=0 [not inserted]
(monitor humanmonitor1) sd0: removable=1 locked=0 [not inserted]
While older versions report like this:
(monitor humanmonitor1) Sending command 'info block'
(monitor humanmonitor1) Response to 'info block'
(monitor humanmonitor1) virtio0: type=hd removable=0 file=/tmp/kvm_autotest_root/images/rhel6-64.qcow2 ro=0 drv=qcow2 encrypted=0
(monitor humanmonitor1) ide1-cd0: type=cdrom removable=1 locked=0 [not inserted]
(monitor humanmonitor1) floppy0: type=floppy removable=1 locked=0 [not inserted]
(monitor humanmonitor1) sd0: type=floppy removable=1 locked=0 [not inserted]
The type field was removed, as it wasn't reliable. So for searching for
hard drives, look for the disk image name rather than the type tags.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5366 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
In the tests set_link, nic_promisc, nicdriver_unload.
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5365 592f7852-d20e-0410-864c-8624ca9c26a4
|