libvirt.tests: Add testcases for migration with copy-storage-inc/all.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add unsafe option test for virsh.migrate.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add testcases for lvm type storage migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add abnormal testcases for storage migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh.volume: Fix test issues

Resolve multiple issues with the test:

 1. Calling utlv.define_pool() without a 4th parameter (cleanup_env)
    results in failure since 4th parameter is expected
 2. The local 'get_image_info' should be replaced by the virt-test
    virttest/utils_misc/get_image_info().  Doing so changes the name
    of the 'img_info' field 'capacity' to 'vsize'. Since this field
    is already an 'int' bytes value - the code in norm_capacity() to
    "read" the bytes value is no longer necessary and a straight
    assignment is possible.
 3. Various 'actual_info' dictionary key's were mis-capitalized.
libvirt.test: Fix a bug in setvcpus

In test, such fail will show up:
local variable 'status_error' referenced before assignment

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Add APIs: cat checksum checksum-device checksums-out equal
pep8 fix
libvirt_bench/dump_with_netperf: fix the wrong method of _is_netperf_running().

The original method to verify that netperf is running in guest is wrong, we can
not see any process named netperf in guest. Instead, this patch check the log file
of autotest.netperf in guest and say that netperf is running in guest.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_bench: replace 'autotest' with 'autotest-local'

As autotest script is already removed, now we are using autotest-local
for it.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Add tarball dir, change the corresponding scripts.
tp-libvirt: Decouple secret_set_get

The original version of virsh_secret_set_get generates test cases that
couples to each other, which means one test case depends on another test
case. For example, first test case defines a secret, the following three
test case test on the former defined secret and a last test case clean
up the environment.

This method is helpful if we try to reuse some cases and works well when
we make them run together. But if we run a single case, it will fail or
leave a contaminated environment.

This patch decouples these dependencies and make every test case define
and clean up environment, making every case can work independently.

Signed-off-by: Hao Liu <hliu@redhat.com>
Merge pull request #171 from yangdongsheng/libvirt_bench

libvirt_bench/dump_with_netperf: fix the wrong method of _is_netperf_run...
Add a public function for create lvm, and remove lvm option from
cfg file
Add some lvm cases for libguestfs
Add libvirt API ACL case for virsh save

Update test case and config for test API 'hibernate' in virDomainPtr set.
As API acl support is added in libvirt 1.1.1, use libvirt version check
function in provider before run the case.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh restore

Update virsh restore test case for test API 'start' and 'write' in
virDomainPtr set.

Reverted change on utils_libvirtd with deprecated functions.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Merge pull request #94 from yumingfei/unsafe_migration

libvirt.tests: Add unsafe option test for virsh.migrate.
Add libvirt API acl test case for virsh console

Update virsh console test case for test API 'open-device' in
virDomainPtr set.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh dump

Update virsh restore test case for test API 'dump' in virDomainPtr set.

Reverted change on utils_libvirtd with deprecated functions.

Signed-off-by: Wayne Sun <gsun@redhat.com>