virttest: Remove duplicate lines in qemu_vm

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.qemu_device: Make virtio-scsi-pci bus can support num_queues

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Init old_redirs as a empty dict

Make the type of old_redirs and self.redirs the same. Otherwise
it will always failed in the check step and set up the self.devices
to None.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Update nic command line in create when devices already exist

As we will skip the command update if vm object already have self.devices
in qemu_vm. We need manually update the fds and vhostfds for it when we
get them from host.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Remove the special strings from sysfs of numa possible node

In some system the possible node information read from sysfs include some
special string as \x00 for end of the string. Need remove it as it will
failed the translate of string to int.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.qemu_vm: Support ctrl_mac_addr parameter in qemu command.

Signed-off-by: Feng Yang <fyang@redhat.com>
virt.share.cfg: Update macvtap_mac_change configure.

Signed-off-by: Feng Yang <fyang@redhat.com>
Docs: Update multi host migration instructions

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.utils_conn: support more features

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
v2v.tests: List all testcases as default.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.libvirt_storage: Undefine pool anyway for delete_pool.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_v2v: Support both network and bridge option.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Add mk_label function.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Revert deleting of v2v_quick filters.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
test_setup: Restart polkitd for rule to take effect

After some research, we found that polkit rule will take 1 second to
take effct after change. This will cause some fail cases if interval
between checking access and writing rule are short enough.

yumingfei pointed out restart polkit service will force rules to take
effect.

Signed-off-by: Hao Liu <hliu@redhat.com>
virt.shared.cfg: Set mac_changeable to no in unattended_install.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.virsh: Update snapshot_current function

Simplify the function to only return CmdResult instance, did not
handle cmd status in function, which will benefit for adding more
negatvie cases.

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt_xml: Support guest panic dump

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest: Handle AttributeError exception in store_vm_register() function.

We may got following error when monitor not ready:
07/05 13:11:07 ERROR| threading:0545|   File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
07/05 13:11:07 ERROR| threading:0545|     self.run()
07/05 13:11:07 ERROR| threading:0545|   File "/usr/lib64/python2.6/threading.py", line 484, in run
07/05 13:11:07 ERROR| threading:0545|     self.__target(*self.__args, **self.__kwargs)
07/05 13:11:07 ERROR| threading:0545|   File "/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/virttest/env_process.py", line 1092, in _store_vm_register
07/05 13:11:07 ERROR| threading:0545|     stored_log = store_vm_register(vm, vr_filename)
07/05 13:11:07 ERROR| threading:0545|   File "/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/virttest/env_process.py", line 1052, in store_vm_register
07/05 13:11:07 ERROR| threading:0545|     output = vm.monitor.info('registers', debug=False)
07/05 13:11:07 ERROR| threading:0545| AttributeError: 'NoneType' object has no attribute 'info'

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.env_process: Use vm.instance in counter and vm_register_error_count in _store_vm_register()

Now we use vm.name in  counter and vm_register_error_count in _store_vm_register().
It could not work well in migration mode, which two vms have same name.

Signed-off-by: Feng Yang <fyang@redhat.com>