utils_test.libvirt: Fix pre_pool for iscsi_get_sessions.

 * Let iscsi.get_iscsi_sessions return tuple of target and address
 * Before cleanup of pool in PoolVolumeTest, we should check
   whether pool exists.
 * As iscsi.iscsi_get_sessions returns ip_addr and port,
   we should remove port for pool-operations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Signed-off-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.qemu_storage: Check if session already present before login

Check if the session already present in host before login it in setup
for iscsi devices. Sometimes the host env is not clean and we want to
leave a warning message in log file instead of raising an error.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.storage: Add init timeout for iscsidev

OS need several seconds to init the iscsi device under /dev after
login to the target. Wait until this is finished when we try to
get the device name for iscsidev. The default timeout is set to
10s.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Add virtio-serial-pci for virtio console device

We do not support multiple virtconsole for one virtio-serial-pci.
So add it when the virtio_port_type is console.

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

virttest: Add virtio-serial-pci for virtio console device
Merge pull request #1566 from ypu/iscsi

Iscsi small bugs fix.
virttest.utils_libvirtd: service_libvirtd_control -> Fix old params

In the latest rework of utils_libvirtd, the author forgot
to add the original params of the service_libvirtd_control API,
making code in utils_conn to fail. Let's restore all the relevant
params and make things right again.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_storage: PEP8 Fix
virttest.qemu_vm: PEP8 Fix
Merge pull request #1582 from autotest/fix-utils-libvirtd2

Fix utils libvirtd2
virttest.utils_libguestfs.py: Add function do_mount()

Mount lvm or physical partation
utils_netperf: Fix self.netperf_path typo issue

When compiling netperf from source, the variable to be set in the Client
class should be netperf_path and not netserver_path. This fix was done
before pushing the util_netperf feature, but somehow lost.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
virttest.utils_libguestfs: Add some blockdev commands of guestfish

(1)canonical_device_name
(2)device_index
(3)disk_format
(4)disk_has_backing_file
(5)disk_virtual_size
Merge pull request #1586 from zqad/netperf_fix

utils_netperf: Fix self.netperf_path typo issue
Add support for gluster pool in PoolVolumeTest
virttest.utils_netperf: PEP8 Fix

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu_vm: Add monotonic start time

For tests that would like to fetch the monotonic start time, expose it
through the start_monotonic_time member.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
virttest.utils_params_unittest: Supress bogus pylint error

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1583 from vanbogithub/bfan-next

virttest.utils_libguestfs.py: Add function do_mount()
virt-test: Add sphinx documentation

After some work with the virt-test wiki, it has been
converted to the sphinx format. Although many of the
rough edges and outdated docs were put into shape,
there's still a lot to be done. It's good to have
it out there and integrated early, where we can
work on it.

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