virttest.libguestfs: Unified virt-command functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_libguestfs: Add virt command function.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libguestfs: Add functions for formatting disk.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libguestfs: Add inspective functions for VT class.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_test: make ping support ipv6

This patch make ping support ipv6

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
wait_for_get_address: Handle dead vm

Pull request #1424 added logic to wait_for_get_address() in order to
try and renew the guest IP by using the serial console. However, it did
not take into account that the guest may not be running in this instance
and that failing and/or raising an exception may be an expected output.

As it turns out the virsh.attach_device test has such a need as part of
its processing - it expects/tests certain exceptions.

Without this change, the wait_for_get_address() eventually calls the
serial_login() function which fails (exception) when trying to determine
if the path to 'self.serial_console.inpipe_filename' exists. Trying
to change that code to call create_serial_console() will fail because
the VM is dead.  So rather than go through that processing, just fail.

This issue was exacerbated by verify_ip_address_ownership() not returning
True from the mac in macs checking on the return from parse_arp(). Since
the IP address wasn't matched a failure would result, which led to going
into the new code. Exactly what caused that I'm not quite sure as it
was only reproducible for a short period of time and now it does find
the address. When the code does return True, the remote.remote_login()
call in the login() code will eventually fail since the guest is not
up with a LoginError exception, which is caught/handled by attach_device.

Hopefully @humanux can review and comment on this.  I am open to other
suggestions, but this just seemed to be the easiest way.
virttest: Change working dir before showing git log

When run download_test_provider if the test_provider is already
downloaded, current working dir won't change before running "git log -1".

This will output false log info or won't work at all if cwd is not a git
repo.

Signed-off-by: Hao Liu <hliu@redhat.com>
virttest.test_setup: Fix KSM cleanup

Don't unload ksm module when it's built-in.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
shared.cfg: Update some config for physical_resources_check

update cpu_sockets_chk_cmd and add cpu_logical_processors_chk_cmd config

Signed-off-by: Shuping Cui <scui@redhat.com>
virt: Add list_iface function in class Bridge

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #1437 from liyangfnst/macvtap

virt: Add list_iface function in class Bridge
Merge pull request #1444 from Hao-Liu/fix_tp_download

virttest: Change working dir before showing git log
Merge pull request #1462 from spcui/physical_resources_check

shared.cfg: Update some config for physical_resources_check
Merge pull request #1440 from yumingfei/virt_part_oper

virttest.libguestfs: Add functions for libguestfs test module.
virttest.utils_test.libguestfs: PEP8 inspekt fix

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1443 from jferlan/get_address_fix

wait_for_get_address: Handle dead vm
virttest.utils_env: make tcpdump thread support handle ipv6 address

This patch make tcpdump thread can handle ipv6 address

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.virt_vm: Make vm class support ipv6 addresses

This patch makes get_address and wait_for_get_address
support IPV6, user can get get vm's IPV6 address,
and login using that information.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.utils_net: Add ipv6 support

This patch makes get_guest_ip_addr to support ipv6,
also adds some methods to get ipv6 neighbours info,
and check whether ipv6 neighbour is reachable.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.remote: Add ipv6 support

This patch makes remote login and remote copy both
support ipv6.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>