virttest: Call utils_net.update_mac_ip_address() in vm.create() when mac_changeable set to yes

Sometime we directly call vm.create() to create a VM. mac_changeable could not work
in this situation. As it only used in qemu test so move utils_net.update_mac_ip_address()
to vm.create() function.

If other test need support mac_changeable later, we can call  update_mac_ip_address
in its start() function.

Signed-off-by: Feng Yang <fyang@redhat.com>
libvirt: Adapt the remote config in base.cfg to existing tests.

Since there are several tests in libvirt are using ENTER.YOUR as
the default configuration of remote, we should add this substring
into base.cfg.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-virsh: Add remote_pwd into VirshPersistent.__slots__.

If 'remote_pwd' is not in __slots__, we can not pass a remote_pwd
into VirshConnectBack and VirshPersistent, so that we can not connect
to a remote host with password. Same reason to 'remote_user'.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml.pool_xml: Fix PoolXMLBase class.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh: Add readonly param in __init__ of VirshSession.

As there is no param about readonly for VirshSession, then we
can not create a readonly Virsh session. This patch add a param
in __init__ of VirshSession class and pass readonly in new_session()
of VirshPersistent. Then we can create a readonly VirshSession and
a readonly VirshPersistent.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt: Add 'debug' paramter to print result in VirshSession.cmd_result()

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
shared.cfg: update path of windows finished program

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest.utils_test: Correct tests script dir for shared script in run_virt_sub_test()

Now we move all the shared test scripts to generic/tests/

Signed-off-by: Feng Yang <fyang@redhat.com>
virsh: Add ShellProcessTerminatedError in close_session.

When a VirshSession is already terminated when we call close_session(),
it will raise a ShellProcessTerminatedError. We should catch it and
notice that this session is already closed.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest.libvirt_xml: Add attributes to Video class

Add attributes to Video class to support video device operation.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.virsh: Add screeshot_test function

The screenshot function is used by screendump in VM class, which
lack screen option and will raise error and fail test in negative
test.

Add the screenshot_test function which return CmdResult for test
the screenshot command in libvirt test provider.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virt: Expose mount and umount functions for class Nfs

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.libvirt_storage: Add more pool types define-as functions

Signed-off-by: Yanbing Du <ydu@redhat.com>
utils_test.libvirt: Add functions to setup/cleanup nfs/iscsi env and define some pool types

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.virsh: Add a series of pool commands

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #1407 from autotest/1181

PR 1181 remake
virttest.staging: Add lv_utils

As a recent patchset introduced a dependency on lv_utils,
now we have to replicate it to staging, so people using
the autotest 0.14 RPMs can still use the test suite.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1409 from autotest/lv_utils

virttest.staging: Add lv_utils
virt: adds thread name for better identify of hanging threads.

it adds 10 chars from command to thread name.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility to send args to autotest executed in guests

Signed-off-by: Jiří Župka <jzupka@redhat.com>