remote_build: Simpler interface

Update the remote_build interface to make it figure out the default
values of lots of input parameters without being explicitly told. This
change would mean that this:

    username = params.get("username", "")
    password = params.get("password", "")
    address = vm.get_address(0)
    source_dir = data_dir.get_deps_dir("clock_getres")
    build_dir = params.get("build_dir", "/tmp")
    shell_client = params.get("shell_client", "ssh")
    file_transfer_client = params.get("file_transfer_client", "scp")
    shell_prompt = params.get("shell_prompt")
    shell_linesep = params.get("shell_linesep")
    builder = remote_build.Builder(address, source_dir, client=shell_client,
                                   file_transfer_client=file_transfer_client,
                                   username=username,
                                   password=password,
                                   build_dir=build_dir,
                                   prompt=shell_prompt,
                                   linesep=shell_linesep)

..can now be done like this, given that params is set:

    address = vm.get_address(0)
    source_dir = data_dir.get_deps_dir("clock_getres")
    builder = remote_build.Builder(params, address, source_dir)

The idea is to reduce the boiler plate needed by test case designer to
fetch all the parameters from the cartesian configuration. It also fixes
the lack of a separate file_transfer_port, which is needed by the rss
file transfer client.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
PoolVolumeTest: cleanup_pool: Clean up directory tree for more types

When cleaning up the pool, we need to be sure to remove the pool_target
tree created during pre_pool setup for more than just the "dir" pool.
The "fs" and "netfs" pools also will 'mkdir' on the 'target_pool'. If not
cleaned up - other tests which use the same name space will have failures.

I found this during a run of "all" tests where 'virsh.vol_create' failed,
but would succeed when running alone.  I narrowed this down to the running
of 'virsh.vol_download_upload' which would create and use the directory
"fs-pool", but would not clean up after itself. This was not a problem until
"vol_create" ran later using the same "fs-pool" name and thus would fail to
create the pool because a directory already existed.

If interested run the following prior to this change to see the issue:

./run -t libvirt --tests \
 virsh.vol_download_upload.download_upload.fs_pool.upload.no_options, \
 virsh.vol_create.positive_test.fs_like_pool.vol_format.v_raw.src_pool_type.fs

The first will PASS and the second will ERROR
Merge pull request #1623 from jferlan/fix_pool_cleanup

PoolVolumeTest: cleanup_pool: Clean up directory tree for more types
virttest: Small invalid syntax fix

except..as syntax not support before python 2.6

Signed-off-by: Shuping Cui <scui@redhat.com>
Merge pull request #1627 from spcui/small_syntax_fix

virttest: Make nwfilter_xml.py compatible before python 2.6
virt.cfg: Add Ubuntu.14.04-server guest support

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1628 from xutian/ubuntu14.04

virt.cfg: Add Ubuntu.14.04-server guest support
Merge pull request #1612 from zqad/remote_build_suggestion

remote_build: Simpler interface
virsh: add an argument options into virsh.start().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest.utils_libguestfs: Add sets of commands for is-*
virttest.utils_libguestfs: Add cmd_result() in GuestfishRemote

1. Want keep consistent with the original code.
add method cmd_result() in class GuestfishRemote(), cmd_result is
called by inner_cmd()

2. add a func blockdev_rereadpt()
virttest.utils_libguestfs: Add two API interface

1. max-disks
2. nr-devices
remote_build doc: Change from utils_build

Two residual utils_build was left in the documentation.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
virttest: Add bridge add and delete function to class Bridge

Add two functions to class Bridge to handle bridge add and delete.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Add a function to list nic interface in host

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Add APIs:tar_in_opts, chmod, chown, lchown, du, file; fix mount-options call
Adjust compress as optional argument