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

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.tests: Fix parameter error of migrate-setmaxdowntime.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
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.test: Add 'bridge' type interface test for iface

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add more testcases for iface test

Add some case for nonexist interface test, including
protocol test, stp test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add 'vlan' and 'bond' type test for iface

Signed-off-by: Li Yang <liyang.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>
Add a public function for create lvm, and remove lvm option from
cfg file
Add some lvm cases for libguestfs
snapshot_create_as: Fix negative test with quiesce without ga on running domain

As qemu-guest-agent change, start and stop the ga process differ
in different guest os. On RHEL7 and fedora, as take over by
systemd, it could be autostarted when os up, kill the process
could fail as new process be started immediately. So for stop it,
first try to kill the process, if process still detected, then
use systemctl to stop the service.

Update TestFail to TestNAError when check qemu-guest-agent
service.

This fix issue:
https://github.com/autotest/tp-libvirt/issues/135

Signed-off-by: Wayne Sun <gsun@redhat.com>
Merge pull request #154 from shi2wei3/file_dir_APIs

Add APIs: cat checksum checksum-device checksums-out equal
virsh_change_media: Add a case to cover floppy write & read test

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_update-device: case expand and tiny bugs fix

1. Support different disk type: cdrom, floppy
2. Support different disk mode: none, readonly, shareable
3. Cover more sub test cases
4. Tiny bugs fix

Signed-off-by: Yanbing Du <ydu@redhat.com>
Add case for testing lvuuid, lvm-set-filter and lvm-clear-filter