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>
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>
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
Merge pull request #751 from yangdongsheng/virsh_SESSION_COUNTER

libvirt-virsh: Remove SESSION_COUNTER from VirshPersistent.
virttest.qemu_qtree: Improve the drive_format check

Instead of checking disk device (ide-hd), check the superior bus
(ich9-ahci) to verify autotest drive_format.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_qtree: Compatibility with new virtio-scsi name

virtio-scsi-pci device was renamed to virtio-scsi-device in
qemu-1.5.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_qtree: Fix QMP compatibility

QMP returns "info qtree" with trailing '\r', which causes qtree_parser
to accept id = ". Strip those characters to avoid this problem.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_monitor: Eclipse autoformat

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_monitor: Fix QMP info/query arguments

HMP monitor accepts debug for monitor.info() and monitor.query()
commands. QMP should support the same arguments.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_monitor: Parse "info block" into dictionary

As there is more and more versions of "info block" this patch
parses the output and creates dictionary of each disk params
(dict of dicts).

Currently supported methods are QMP, HMP old qemu and HMP qemu 1.5.
QMP representation contains the most informations, HMP qemu 1.5 the
least. The missing informations should have default value and it's
upto the user to set it. (use dict.get(key, default))

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_qtree: Use Monitor.info_block() to get block info

Use Monitor.info_block() which covers all versions of "info block"
command to get the information.

Also update the cases which use this function to provide info_block
output instead the Monitor.info('block') one.

Last but not least add unittest.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: tools/run_pylint: output format option bug

Long story short, pylint 1.0 drops some options and adds new ones.
This patch checks the pylint version and adds the formatting option
accordingly.

Unfortunately, pylint's documentation is really broken. The default
message format template is documented as:

--msg-template='{sigle}:{line:3d},{column}: {obj}: {msg}'

But the 'sigle' parameter simply does not exist. This patch uses
'{msg_id}' istead.

One thing this patch does not solve, though, is the conditional
formatting for the '{obj}' parameter, so you may notice a white
space followed by ':' in some of the messages (the ones that lack
reference to an object).

CC: Chris Evich <cevich@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revert "qemu: Fix utils.system_output() calls incompatible with at 0.14"

This reverts commit c080994ddf01914b0bb0162cbe97df9fef75adf3.
virttest.qemu_devices: Lose verbose=False incompatible with at 0.14

This is an attempt to better fix the issue where system_output
doesn't have the verbose parameter in autotest 0.14. It is better
and less desruptive to simply lose the parameter, and we can
get it back once 0.15 rpms are available on Fedora.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests: fix win_virtio_update typo

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>