client: remove redundant xml_utils and Element* modules

To the best of my knowledge, these aren't used anywhere
outside of virt-test and were already copied there.

Signed-off-by: Chris Evich <cevich@redhat.com>
client: Clean up after aexpect too!

Noticed that aexpect drops all it's pipes and output
files under /tmp/kvm_spawn (for virt tests).  However,
it never cleans them up.  Deploy the nuclear option,
and ignore errors that get in the way.

Signed-off-by: Chris Evich <cevich@redhat.com>
install script: work on systems with firewalld

That have deprecated /etc/sysconfig/iptables file.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Add lvm utility that can be used by the lvsetup and other tests

Signed-off-by: Plamen Dimitrov <plamen.dimitrov@intra2net.com>
apache conf: complete configuration overhaul

This is a fix for the problem described in github issue #575.

Some of the changes included here are:
 * make configuration work both on 2.2 and 2.4 version of httpd
 * be more resilient on afe and tko web interface rewrite rules
   to skip URIs that are dealt by django code
 * use conditionals to configure either mod_python or mod_wsgi
 * clean up of old rewrite rules that accounted for old and broken
   packaging of autotest
 * clean up deprecated and empty files
 * move individual config files to relative paths and make install
   script support that

Signed-off-by: Cleber Rosa <crosa@redhat.com>
contrib/install-autotest-server.sh: allow to skip repo update

Signed-off-by: Cleber Rosa <crosa@redhat.com>
install script: avoid blocking when configuring mysql-server

This fixes what is described on github issue #580.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
install script: java-devel is "provided by" specific packages

Signed-off-by: Cleber Rosa <crosa@redhat.com>
install script: avoid having both mod_wsgi and mod_python installed

Signed-off-by: Cleber Rosa <crosa@redhat.com>
client: Move disktest to test dependencies.

Disktest is very useful and could be used in whole autotest.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
frontend: fix unittest and make it more granular

Looks like we missed those fields with the addition of host installation
support.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reverting changes to conmux

Nish reported problems in conmux that can be traced
back to commit

f072c190b171a756417d54c698adf1499069cbf0

So to avoid breakages for existing users of the code,
that commit will be reverted. We'll get back to it when
it is possible to find out an environment where we can
get conmux more thoroughly tested.

CC: Philipp Seiler <seiler@b1-systems.de>
CC: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client_compilation_uniittest: Make it more silent

Calling os.system was polluting output of the unittests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
bit rot management: remove package library in favor of software_manager

Since the later is a more modern and comprehensive version. IMHO we
should not have multiple APIs available that do such similar things.

As a notice, the client tests in autotest-client-tests that were using
the package library have been taken care of.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
server installation: introduce autotest-database-turnkey

A utility designed to perform a complete autotest database creation
and initialization at once.

Currently, to get an autotest server running one needs to either run
the "install-autotest-server.sh" script, or follow a long list of
steps. This tool will allow users of say, autotest-server distro
specific packages to just run a command and have it setup.

Changes from v1:
 * Use the global_config module AS-IS, reloading it completely.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
server installation: move firewalld_add_service to common location

"installation_support" directory is supposed to hold a collection
of tools useful during a server install, so move firewalld_add_service
there. Also, name it in such a way that it can be installed on the system
and obvious to a user that wants to setup an autotest server.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
server installation: matplotlib requires AFM fonts

matplotlib requires some AFM fonts, but there's no explicit dep.
IMHO, matplotlib should be more resilient to the failure, and
not throw a traceback at matplotlib.font_manager.

Anyway, this fixes the issue.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
database/migrate.py: clean up and minor adjustments

Signed-off-by: Cleber Rosa <crosa@redhat.com>
bit rot management: remove usage of functions deprecated on recent Django

setup_environ and execute_from_manager are deprecated starting on
Django 1.4, as described on release notes document:

   https://docs.djangoproject.com/en/dev/releases/1.4/

Also the recommended way to setup the django settings is via an
environment variable.

Changes from v1:
 * revert removal of enable_autocommit method

Signed-off-by: Cleber Rosa <crosa@redhat.com>
client/server: Do not install unnecessary files

Our autotest rpm packages carries out a nearly identical
patch. Turns out we don't ship tests anymore, and sample
files are not necessary on an installed system anyway.

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