contrib/install-autotest-server-f16.sh: Fix a basename problem

Also, add the df -P option (posix output format) to avoid
problems with long partition names, such as LVM.

Signed-off-by: Daniel Veillard <veillard@redhat.com>
install_server (cobbler): Don't change profile if no fallback found

If we passed no profile to the install server and we don't
have a fallback profile set, then don't try to set the
machine profile and instead just go with what is currently
set to the machine in the cobbler server.

Thanks to Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
for reporting the problem and pointing out a solution.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Add logs directory and pid files to .gitignore

Signed-off-by: Martin Krizek <mkrizek@redhat.com>
scheduler: Rework entry points

As part of the effort to make autotest more packaging
friendly, refactor some of the scheduler code and
rename:

scheduler/monitor_db.py -> scheduler/autotest-scheduler
scheduler/monitor_db_babysitter.py -> scheduler/autotest-scheduler-watcher

This renaming makes the entry points easier to discover
and figure out what they do. The actual functionality
of the entry points was actually split to libraries,
to ease unit testing.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Martin Krizek <mkrizek@redhat.com>
install_server (cobbler): ensure a profile name gets printed

If no fallback profile is defined, 'profile' remains None and results in
messages like:

Installing machine elm3b202.beaverton.ibm.com with profile  (timeout 3600 s)

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
virt.kvm_vm: Set driver_type attribute for kvm_vm

This way we fix a bug introduced by f552a005, where we
start checking out driver_type to verify if some xen
installation hacks were needed during unattended install
setup.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
apache: add conditional aliases to the apache config files

This is intended to support different installation types of
autotest, either from source or from packages.

Signed-off-by: Martin Krizek <mkrizek@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
tko: replace legacy help URL with best current wiki doc on tko

Signed-off-by: Cleber Rosa <crosa@redhat.com>
libvirt: Fix tests-shared.cfg.sample

As it was referring 'kvm' as the vm_type rather than
libvirt.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt: Introducing 'virsh version' test

This patch adds three test cases for "virsh version" command.

Use three cases:(1) virsh version
                (2) virsh version with a unexpected option
                (3) virsh version with libvirtd service stop

Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
libvirt: Add member functions to libvirt_vm

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
libvirt: Add virsh_migrate test cases configuration

This patch adds 4 test case for virsh_migrate.
All these 4 cases are uni-direction migration.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
libvirt: Improve virsh_migrate to support uni-direction migration

This patch adds a cleanup function to clean up environment
on destination host after migration. So that we can do
uni-direction migration in this test.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
virt.libvirt_vm: Add member functions for libvirt_vm

This patch adds 3 member functions for libvirt_vm:
    1) get_id()
    2) get_uuid()
    3) get_xml()

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
common_lib.base_utils: Do not hardcode /bin/bash on BgJob class

At some point we hardcoded bash as the BgJob default class,
but that artificially restricts us in embedded environments
with busybox, for example. So let's try to use bash, but
if we can't just default to /bin/sh.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
harness_standalone: rework init level detection

 * Handle embedded systems with busybox
 * Inform the user that in some times, when we
   determine '2' as the runlevel is because we
   really couldn't figure out something better
   and we are in fact, guessing... we did try,
   though.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com
virt.virt_vm: Omit dot on image name when no image format is specified

This way we can handle image names that are not supposed to have
extensions.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Update old style (RHEL 5) kvm unittest

We actually forgot to update the testcase type on the
config file.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
ltp: Re-enable LTP capability tests

The capability module is built-in into the Linux kernel since 2.6.24.

Tested the re-enabled tests capget01, capget02, capset01, and capset02
from ltp-20110104. They pass on the following distros.
Centos 5     - 2.6.18-274.18.1.e15
Ubuntu 8.04  - 2.6.24-30-generic
Ubuntu 10.04 - 2.6.32-38-generic
Ubuntu 12.04 - 3.2.0-16-generic
Fedora FC16  - 3.2.6-3.fc16.x86_64

Signed-off-by: Vinson Lee <vlee@twitter.com>
virt: fixed spelling mistake

Signed-off-by: Chris Evich <cevich@redhat.com>