libvirt: Add 2 new test cases for virsh change-media

1.When a guest is shutoff, user can insert/update a source file
  without source path, but the guest cannot be started
2.When a guest is started, user cannot insert/update a source file
  without source path.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt-virsh: Remove SESSION_COUNTER from VirshPersistent.

As we use COUNTERS to manager VirshSession in VirshPersistent.
SESSION_COUNTER is no needed any more.
* remove SESSION_COUNTER from VirshPersistent.
* update virsh_unittest related with SESSION_COUNTER.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt: Modify test-example for machine type

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #776 from jzupka/runner

virt: Fix ./run vhost params.
Fix unattended_install.url on Fedora guests

My commit 756a1ff9a08ff2b1a16202a32e667b56204accc5 broke
unattended install with URL setting. This commit fixes
it in a very simplistic way, since I was tired to dig
into qemu devices code to try out adding unit=0/unit=1
suggested by Paolo, and also, this change would require
more testing with other qemu branches, such as RHEL5/RHEL6
before we know it is safe.

CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt-libvirt: Unify virsh function 'name' parameters

* Renamed vm_name -> name
* Updated docstrings
* Clarified several other parameters.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
qemu.tests: cleanup live_snapshot test

use live_snapshot function function in test framework, drop useless
module and update test configuration;

Signed-off-by: Xu Tian <xutian@redhat.com>
to support vol-dumpxml
to add config file for virsh volume testcase
to add testcase for virsh volume
after resolving rebase conflicts
virsh_volume.py: review comments fix
V2: Review comments fix
virt: Li was granted maintainer access

Signed-off-by: Chris Evich <cevich@redhat.com>
virttest.qemu_devices: Add default value to drive_format

Apperently drive_format doesn't have to be defined. Add default
value 'virtio_blk' to avoid using .startswith on a None object.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #738 from liyangfnst/change_media_new_test

libvirt: Add 2 new test cases for virsh change-media
virttest.cartesian_config: Supress invalid pylint option on python 2.4

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Supress remaining pylint errors on python 2.4

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.cartesian_config: Remove unnecessary pylint error supression

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.libvirt_xml.accessors: Fix pylint supression

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>