Add multiple vms disk error_policy test cases.
Change unhotplug to coldplug.
Test shableable block disk on 2 domains.
Fix pool related cases to recover selinux state.

This commit is base on a virt-test change to recover selinux state
after creating an NFS pool. Besides this change, this commit also
fixed a few bugs.
1) Stop virsh.domblkerror cleanup entire temp directory.
2) Clean virsh.vol_create_from and virsh.vol_download_upload file.
3) Create the file before chmod in virsh.vol_download_upload to
   prevent error.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt.test: Fix bugs and remove cases from detach-device

1.Remove some cases for cdrom test
2.Check if option is supported by libvirt

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Move some common functions to utils_test.libvirt.py
libvirt.tests: Add test module for vm disk's discard.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Change fs creation method to utils_test.libvirt.mkfs/mk_part.
Modify iscsi device creation method.
Fix a bug of report error policy.
dac_start_destroy: Add dac test cases

DAC is default enabled security driver in libvirt. In this start
and destroy test, cover per-VM DAC setting, global configuration
in qemu.conf alone testing and mix per-VM and global testing.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_start_destroy: Replace qemu conf sync function

The utils_config module updated, the sync function is removed,
update test case to use utils_libvirtd module for restart libvirtd
after conf change.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_start_destroy: Add case to cover security_default_confined as 0

Add case for cover unconfined DAC testing, 2 cases added to cover bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1105939

New cases with 'security_default_confined = 0' and seclabel as:
<seclabel type='none' model='dac' relabel='yes'/>

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_start_destroy: Update set_seclabel function to use list

Update according to vm_xml module change.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_start_destroy: Add cases for set_process_name as 1

When set_process_name as 1 in qemu conf, libvirt will have QEMU
set its process name to "qemu:VM_NAME", add test cases enable it
and check the qemu command.

Adjust set qemu.conf before per-VM seclabel, as seclabel will be
affected after qemu conf change.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_start_destroy: Use attr function when set qemu conf

Use attr functions to set values in conf.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add test cases for disk encryption option.
Remove a debug line.
Modify fs creation method according to utils_test module.
Modify pool and vol creation method.