utils_test: Add class for control stress tool.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt: Add 'extra' param to domstate function

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
shared.cfg: Update live_snapshot_chain commands for Windows guests

dir command from Windows guests will include summary of current
directory informations. Which will change as we use the system disk
in test. So update the command to ignore the summary lines.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Fix setup_or_cleanup_iscsi error path

When the call will return "" (eg no iscsi_device found after 5 seconds),
we should clean up after ourselves and not expect the caller to clean
up after us.
Detach allocation and capacity from vol-size

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
virttest.utils_test: Delete volumes for disk and logical pool cleanup

As libvirt also support delete volume for logical and disk pool, add
logical and disk pool to clean besides dir and netfs pool, this fix a
problem when destroy logical pool with error:

/usr/bin/virsh pool-destroy virt-logical-pool
stderr:
error: Failed to destroy pool virt-logical-pool
error: internal error: Child process (/usr/sbin/vgchange -aln vg_logical)
unexpected exit status 5:   Cannot deactivate "vol_create_test_vorigin"
locally..

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.video_maker: Fix the counter bug

When the test case destroy the old vm and recreate new, there will
be two different folders which has the screendump pictures,
however, when the video make try get the pictures in the new folder,
the index will be not 1

This patch is to find the smallest index in the folder.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
virttest.utils_misc: Typo fix, add missing parameter.

Signed-off-by: Feng Yang <fyang@redhat.com>
add expect_bootup_time for SUSE products

Signed-off-by: Lin Ma <lma@suse.com>
Add prompt information of rescue mode to patterns

Signed-off-by: Lin Ma <lma@suse.com>
virt.shared.cfg: force cd_format in machines.cfg

force cd_format for unattended_install with virtio_scsi or virtio_blk cdrom
test, because guest need special driver to support it before bootup.

Signed-off-by: Xu Tian <xutian@redhat.com>
utils_test: Support loading stress for test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.virsh: Add inject-nmi function.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Move migration functions from test module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.virsh: Add wrapper for vol-resize

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #1543 from xutian/fix_machines

virt.shared.cfg: force cd_format in machines.cfg
Fix the way to get iscsi sessions

The old way(regex) may get no result, such as:
$iscsiadm -m session
tcp: [74] [fe80::4637:e6ff:fe4a:42d1%eth0]:3260,1 iqn.2001-01.com.virttest:test-pool.target (non-flash)

So discard the regex and use string split to get the right result.

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #1549 from QiuMike/virttest_video_maker_Fix_the_counter_bug

virttest.video_maker: Fix the counter bug V2
Merge pull request #1550 from FengYang/typo

virttest.utils_misc: Typo fix, add missing parameter.
Merge pull request #1546 from waynesun09/pool_cleanup

virttest.utils_test: Delete volumes for disk and logical pool cleanup