[pve-devel] qemu-server : drive-mirror : die if stats are empty.

Alexandre DERUMIER aderumier at odiso.com
Mon May 6 17:14:39 CEST 2013


about qmp events, I have tested with qmp-shell python script (available in QMP/ in qemu.git),

and I can receive the BLOCK_JOB_ERROR && BLOCK_JOB_COMPLETED events.

I had tried to syslog the current qmp response in qmpclient.pm, I got nothing, except events for vm stop, vm cont and cd eject.


Any idea ?

(QEMU) drive-mirror device=drive-virtio1 sync=full format=raw target=/var/lib/vz/images/269/test.raw
{u'return': {}}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 335396864, u'device': u'drive-virtio1', u'speed': 0}]}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 450674688, u'device': u'drive-virtio1', u'speed': 0}]}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 513589248, u'device': u'drive-virtio1', u'speed': 0}]}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 555532288, u'device': u'drive-virtio1', u'speed': 0}]}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 807190528, u'device': u'drive-virtio1', u'speed': 0}]}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 1446428672, u'device': u'drive-virtio1', u'speed': 0}]}
(QEMU) query-block-jobs
{u'return': [{u'busy': True, u'type': u'mirror', u'len': 21474754560, u'paused': False, u'io-status': u'ok', u'offset': 1750384640, u'device': u'drive-virtio1', u'speed': 0}]}


(QEMU) query-block-jobs
{u'return': {}}
{u'timestamp': {u'seconds': 1367852478, u'microseconds': 693260}, u'data': {u'device': u'drive-virtio1', u'action': u'report', u'operation': u'write'}, u'event': u'BLOCK_JOB_ERROR'}
{u'timestamp': {u'seconds': 1367852478, u'microseconds': 696408}, u'data': {u'speed': 0, u'offset': 21461909504, u'len': 21474754560, u'error': u'Invalid argument', u'device': u'drive-virtio1', u'type': u'mirror'}, u'event': u'BLOCK_JOB_COMPLETED'}
----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com 
Envoyé: Lundi 6 Mai 2013 11:27:34 
Objet: RE: [pve-devel] qemu-server : drive-mirror : die if stats are empty. 

applied, thanks! 

> -----Original Message----- 
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel- 
> bounces at pve.proxmox.com] On Behalf Of Alexandre Derumier 
> Sent: Montag, 06. Mai 2013 11:21 
> To: pve-devel at pve.proxmox.com 
> Subject: [pve-devel] qemu-server : drive-mirror : die if stats are empty. 
> 
> see commit 



More information about the pve-devel mailing list