database: rebase initial schema to latest version

As planned and discused on github issue #266.

Also, do not manually set the database version,
as the schema file already contains the migrate_info
table and value.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
boottool: only print info on grubby install if it's really performed

Signed-off-by: Cleber Rosa <crosa@redhat.com>
boottool: reduce verbosity level

By removing debug messages on every single command execution. Instead
log messages as errors if they occur.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
kvm_vm.py: SPICE add_spice() -> set_value() set spice property only if it's defined
kvm_vm.py: add get_spice_var() getter for spice properties

It may be used retrieve spice port,tls-port generated by find_free_port()
utils/check_patch.py: remove curl requirement

By using urllib instead.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
utils/check_patch.py: run reident without requiring client/util in $PATH

Signed-off-by: Cleber Rosa <crosa@redhat.com>
utils/check_patch.py: run pylint without requiring client/util in $PATH

Signed-off-by: Cleber Rosa <crosa@redhat.com>
utils/check_patch.py: fix typo

Signed-off-by: Cleber Rosa <crosa@redhat.com>
conmux: Better integration in linux environment

- made makefile more generic to install for example to /usr/lib64
- added search path for conmux to /usr/lib and /usr/lib64
- added lsb header to init script
- add shebang line to expect file in drivers

Signed-off-by: Philipp Seiler <seiler@b1-systems.de>
virt: Restrict dd_test to Linux variants

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.trans_hugepage_swapping: fix code cleanup

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt: Use hvm_or_pv for kvm too

Unlike RHEL6, RHEL5 virt-install uses non-kvm qemu as default option. To use
kvm virtualization, --accelerate option has to be used. Libvirt uses hvm_or_pv
option to add this necessary option. However, it's not set for kvm linux guests
as they're not needed for RHEL6.

This patch adds this option to the linux kvm guest tests so RHEL5 is using
kvm virtualization as expected.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
virt: libvirt: Allow to choose method of passing ks into the guest

Old version of virt-install do not allow to assigne two cdroms to a guest.
This prevent unattended_install as we pass ks in secondary cdrom.

This patch add possibility to choose way of passing ks - extra cdrom,
integrated into the install cdrom, using internall http server or using floppy.
All used methods are already implemented but it's not possible to select
which one will be used.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
kvm test cpuflags: Try all supported cpu models.

If cpu model isn't defined then test compare all
guest cpu models with host cpu model and try test
all cpu models which is supported by host.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Only add machine type parameters when qemu supports this option

qemu-upstream has "-machine" option, "-M" is an alias.
qemu-kvm-rhel6 only has "-M" option.

So add "-M .." parameters when "-machine" or "-M" exists.

Signed-off-by: Amos Kong <akong@redhat.com>
virt: add "--machine ?" parameter in libvirt command line wrappers

--machine MACHINE :set the machine type to emulate.
add libvirt command line parameter "--machine ?" wrapper in
libvirt_vm.py.

Signed-off-by: Qing Lin <qinglbj@linux.vnet.ibm.com>
virt: trans_hugepage_swapping: Fix test to use current APIs

Test was using a reference to an old API that no longer
exists in virt_utils. Instead, let's use the current
methods to grab a VM class (methods of the env object).

Also, use up to date methods to get an ssh session to the vm.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
API: client: Drop bin directory

This patch introduces API changes for test writers

Drop the client/bin directory to make autotest
more palatable for distro packagers, also making
the API more flat. Now all uses of

autotest_lib.client.bin.[library]

become

autotest_lib.client.[library]

The conversion was mostly automated, plus some
tweaks to make autotest-local work, and moving
profilers.py code to the __init__.py of the profilers
directory.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
API: Moving autotest_lib to autotest

This patch brings API changes to test writers.

Move autotest_api to a shorter and cleaner
autotest. So all references to

autotest_lib.[lib]

Become

autotest.[lib]

The conversion was made mostly automated by
script.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>