Add support for gluster pool in PoolVolumeTest
remote.copy_files_{to,from}: Check for valid client

If the copy methods are called with an unsupported client, they will
silently ignore the request which leads to hard-to-debug errors when the
files are not properly copied to the target. This patch makes them throw
an error instead.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Add new helper: remote_build

Being able to build test binaries from test cases is a neccessity, but
it incurrs lots of complexity in said test case. To avoid this
complexity, and to make it possible to implement build avoidance, split
this functionality into a separate class.

Notable requirements/changes:
- To separate binaries built with different CFLAGS, Builder creates
  separate directories for each make_flags combination on target
- Test applications built with this class require a Makefile. To pass
  specific compiler flags from the configuration, let the user specify
  arguments to the make process via the make_flags parameter, e.g.
  Builder( ... make_flags="CFLAGS='-g -O3'")
- Symlinks in the source directories are not copied to the target. There
  does not seem to be a need for this, and it made the implementation
  simpler.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
virttest: Add queues and helper to add_net in qemu_vm.py

Make the add_net support queues and helper options.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Make add_net can support invalid paramteres

Make it possible to start the command with invalid parameters to
support some negative tests.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #1594 from zqad/utils_build

remote_build
utils_libvirtd: Make service_libvirtd_control() only for local host.

As service_libvirtd_control() exists here for compatibility, we need
keep it simple and used limitedly.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
utils_conn: Adapt utils_conn to new and standard usage of libvirtd service.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
staging/service: Get rid of root requirement to get name of init process.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #1584 from yangdongsheng/utils_libvirtd

Fix for staging/service and virttest/utils_libvirtd.
run: Make it bail on invalid --nettype option (Fix #1588)

Instead of happily taking invalid values of --nettype,
fail:

$ ./run -t qemu --nettype e1000
Invalid --nettype option 'e1000'. Valid options are: (bridge, user, none)

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1555 from kylazhang/gluster_pool

Add support for gluster pool in PoolVolumeTest
utils_test: Add two functions for libvirt tests

Function to check virsh commands exit status.
Function to check interface for virsh iface related tests.

Signed-off-by: Yanbing Du <ydu@redhat.com>

Conflicts:
	virttest/utils_test/libvirt.py
virttest.virsh: Add wrappers for iface related commands

Signed-off-by: Yanbing Du <ydu@redhat.com>
Typo fix

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest: Make the info register warning shorter in log files

Only record the fist and last message for the failed of getting
register info from guest.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Add vm process status for image process functions

Let the image check process can get if vm process is still running. Some
options in image like lazy_refcounts improve the performance but do not
support image check while the qemu process still running. Also make this
can be control by cfg file.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Add a parameter to skip cluster leak warning in image check

When the guest is running we should not raise error in image check if
it is only a cluster leak warning. And add it as a parameter in base.cfg
so people can igonre the warning message if they do not care about it in
their tests.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
documentation/source/conf.py: Import virttest module correctly

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
documentation: Add virttest API guide

Generated by sphinx-apidoc.

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