Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5364 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Add __init__.py in virt/tests/ and correct import link for file_transfer.
Signed-off-by: Feng Yang <fyang@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5363 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5359 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The command to generate perf trace output is "perf script", not what
I had in the previous patch which was a think-o during cleanup for
upstream.
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
git-svn-id: svn://test.kernel.org/autotest/trunk@5355 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5354 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
All across the autotest tree.
Signed-off-by: Lucas Menghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5353 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
* Space steps so it's easier to spot the blocks of info
* Use ask to make the questions look better
* Give the user the chance to not check SHA1 sum of the isos
* Print download URLs if asked to download
* Print CD SHA1 sum hashes
You can see how a typical execution looks like here:
http://www.linux-kvm.org/page/KVM-Autotest/Client_Install#For_the_impatient
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5351 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This way we can use it in other interactive scripts in autotest.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5350 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
It is bad to possibly jeopardize a job result for some
bug on the HTML report code, so wrap its execution and
log errors in case of exceptions.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5349 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
ome test like operations (like a kernel booting), the status
log does not contain test lenght info. So handle accordingly
and mark on report as 'Unknown'.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5348 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
That code was not updated during the last version of the
refactor patches, so it was referencing the old KojiDownloader
class. Let's fix this.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5347 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Just update the config file and the control file that
is supposed to run on guests.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5346 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Since CTCS2 was abandoned, I've created a new git repo
with it and plan on maintaining CTCS code. Modify the
autotest wrapper accordingly, renaming it to 'ctcs'.
The prior patches that had to be applied were incorporated
to the code base, so some cleanup could be made on the
wrapper itself.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5345 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Now that we aim to have different implementations of
virtualization tests, the utility function run_tests()
can't have the 'kvm' url hardcoded in the function. Rather,
it needs to pick up 'vm_type' from the test params.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5344 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
It is not necessary as this file is not a stand alone program.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5343 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Jiri Zupka <jzupka@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5342 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
In some conditions, ssh may respond things like:
Warning: Permanently added localhost' (RSA) to the list of known hosts.
Take that into account on the remote login function.
Signed-off-by: Jason D. Gaston <jason.d.gaston@intel.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5341 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
As this is now handled by autotest and control file
writers don't have to worry about it anymore.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5340 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
As it has been transfered to the html_report module itself.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5339 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
We have a tool that can generate such a file and it makes it
easier for people who don't have access to the autotest web
interface to analyze job results. With this, all client jobs
write such a file, so test writers don't have to worry about
it.
This change does not regress the job unittests.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5338 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The html report tool was a bit too tied to KVM autotest, and that
was not necessary. Turn it into a generic module that can be used
by any autotest job, encapsulate the main worker function into
autotest API so we don't need to exec it in a subshell, fix naming
of the report and CSS details.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5337 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
So it is importable
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5336 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
While applying the patches for the kvm autotest
refactor, patch did not create the 0 sized file
__init__.py. Fixing it.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5335 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
So other virt tests can benefit from them. The tests that
don't depend on any KVM VM specific features (ie, monitors)
were moved. As soon as we abstract some of the monitor
functionality, the KVM specific tests can be rewritten on
a virt tech agnostic way and then be moved.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5334 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
As we have several subtests that can be shared among different
virtualization tests (kvm, xen), manipulate kvm.py to try loading
subtests from the kvm area (client/tests/kvm/tests) first,
then falling back to the specific test area (planned to be
client/virt/tests).
Changes from v1:
* Martin Jenner has suggested inverting the lookup order.
Looking first on the specific kvm subtest area *then* common
allows people to override the commom implementation of a test
that might be better for that particular virt technology.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Martin Jenner <mjenner@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5333 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
As they've been replaced by the new virt_namespace,
as well as the new program versions moved to tools.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5332 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5331 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
In order to allow the shared infrastructure to select
the correct vm class to instantiate a VM, introduce
the parameter vm_type, which for kvm based VMs is,
not surprisingly, 'kvm'.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5330 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The programs cd_hash, html_report, scan_results can be
used by other users of autotest, so move them to the
tools directory inside the client directory.
This patch contains bugfixes suggested by Amos Kong.
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@5329 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
This patch moves all libraries from the KVM test to
autotest_lib.client.virt, and makes the needed adaptations
and abstracts the KVM implementation from the generic
infrastructure. The patch contains bugfixes pointed by
Ray Chauvin, and also patches from Cleber Rosa that
isolate base vm functionality into a BaseVM class, with
a collection of public methods, intended to be used in
tests
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Ray Chauvin <rchauvin@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5328 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
As well as reports, one of the other most useful things you can
generate from perf is trace output. Support generating that with
trace=True added to the profiler, e.g.:
job.profilers.add('perf', events=['fs:*'], trace=True)
the output is a raw trace file in the profiling directory.
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
git-svn-id: svn://test.kernel.org/autotest/trunk@5327 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
The "parent" sort to perf report is most useful when a call graph
is included in the trace, so if we see parent in the sort keys,
pass the -g option to perf record to get that output in the trace.
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
git-svn-id: svn://test.kernel.org/autotest/trunk@5326 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
perf was being executed via a shell, this means that the pid in
self._process.pid will be the pid of the shell and the actual pid
of perf will be a child of that process.
This would be fine in practice except that the signal being used
to stop perf is SIGINT, and this is being sent to the shell. The
shell won't necessarily deliver this to its child process (no
controlling tty) so what happens is that the shell ignores the
signal and we get stuck in self._process.wait()
There's no reason to keep the intermediate shell around, so prefix
the command with "exec" so that the shell replaces itself with perf
and the pid we know is perf, and SIGINT is sent to perf.
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
git-svn-id: svn://test.kernel.org/autotest/trunk@5325 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
strip() strips all characters listed in the given string, replace()
simply replaces the string with another (in this case the empty
string), the latter is clearly what was intended here.
This fixes the sort last option being mangled
Change-Id: Ic491f159339637cc2959e19c9c37be1cc31e4833
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
git-svn-id: svn://test.kernel.org/autotest/trunk@5324 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
For both 32 and 64 bit.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5322 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
We had disabled unattended_cdrom usage with SLES and
OpenSUSE due to the fact that autoyast=cdrom wasn't
working properly to specify a profile.
However, the interaction of the linux floppy driver with
qemu-kvm and qemu tends to generate some pretty bad guest
kernel panics, reason why we came up with unattended_cdrom
for Fedora and RHEL in the first place. Thinkering a bit
more with autoyast documentation, I've discovered that
specifying autoyast=device://scd0/autoinst.xml works fine
and so I've changed the default for both distros to use
the CD again. Now, people will have a much smoother experience
installing those distros under KVM autotest.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5321 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Some distros such as OpenSUSE won't let the install test to
communicate the guest ACK for some weird reason [1], this commit
modifies the unattended_install test introducing a wait_no_ack
param that will skip the ACK check, and break the unattended
install loop when the machine turns off itself (directive halt
on OpenSUSE and SLES unattended file).
Other distros shouldn't be affected by this change, their
install behavior was kept the same.
[1] Tried several ways of transmitting the ACK by means of chroot
scripts, no way. In the end of the day, I was short on time to
spend too much of it figuring out a way to do it, hence the
wait_no_ack param was born. I really could use some help from the
guys that introduced OpenSUSE and SLES support to kvm autotest.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5320 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
During unattended install, right after we receive the ACK from the guest
the test is deemed to be finished, and as shutdown_vm = yes, it'll try
to end the vm issuing a shutdown command to it. However, on virtually
all Linux guests an SSH server is not available at the end of install,
so KVM autotest will end the VM forcefully, which is not really safe,
although it has served us well so far.
We did not fix this 'problem' so far because on RHEL3, a supported
guest, the anaconda syntax does not support the 'poweroff' directive,
only 'reboot', so if we don't finish the VM right after the ACK from
guest we really can't prevent it from starting the install again,
getting an infinite loop.
Well then, let's restrict this behavior only to RHEL 3, and fix this
properly for all other systems, by introducing a 'shutdown_cleanly'
param and setting it to 'yes' to everybody but RHEL 3. Windows doesn't
need this at all, as when the ACK is received the system is fully booted
up and functional, so the postprocessing will take care of shutting down
the VM cleanly.
I've fixed all Fedora and RHEL unattended files as part of this change.
With this change, we can get rid of another parameter, post_install_delay,
that was created with the only purpose of handling the fact that on
autoyast install, when the ACK is sent to host, the system is not fully
done with install. So we end up fixing yet another problem :)
Changes from v1:
* Properly convert the post ack timeout to an int
* Don't fix SLES unattended files, they'll be fixed in posterior patches
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5319 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
We need to pass an additional tmpdir param to the class initialization.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5318 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Limiting the events list to be a comma-separated string doesn't work
for the more complex syntaxes perf now supports for things like kprobes;
allow the list to be given as an iterable (while still supporting a
string) and pass each using a separate -e argument
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
git-svn-id: svn://test.kernel.org/autotest/trunk@5316 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5315 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
In several KVM tests, it is very useful to log commands sent
to the monitor and their responses, but most of the time
output from such commands in verify_responsive and screendump
threads are not necessary. So, introduce the param debug in
monitor.cmd(), that defaults to True, and then later turn
off selectively outputs from the parts of the framework
where monitor commands are excessively called and their
output is not so interesting.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5314 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
As this utility is needed to execute the ntp time drift variants
successfuly. I would need a little help making the same maintenance
on SUSE-based guests, as I don't have those guests handy here.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5313 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5312 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Show both operation and operand when VM quits abnormally.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5311 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5310 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Patch command was missing <, let's fix it.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5309 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5308 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Also, set start_vm = no
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5307 592f7852-d20e-0410-864c-8624ca9c26a4
|
|
Michael Goldish has pointed out that some of the test
setup code contained inside test_setup could be easily
moved to the tests themselves, so we avoid some 'hardcoding'
present on kvm_preprocessing.
So let's start by moving enospc test setup to the test
code itself. The only caveat here is that we need to specify
start_vm = no so test setup can happen before the vm is
started.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5306 592f7852-d20e-0410-864c-8624ca9c26a4
|