qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with vm_stop,
the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stop
I don't see this with qcow2 or sheepdog block driver for example.
Regards,
Alexandre
Some other infos:
I can reproduce it too with manual snapshot with rbd command
#rbd --image myrbdvolume snap create --snap snap1
qemu monitor:
#stop
This is with ceph hammer 0.94.5.
in qemu vm_stop, the only thing related to block driver are
bdrv_drain_all();
ret = bdrv_flush_all();----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 04:10:45
Objet: qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with vm_stop,
the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stop
I don't see this with qcow2 or sheepdog block driver for example.
Regards,
Alexandre
Signature · 8 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Also,
this occur only with rbd_cache=false or qemu drive cache=none.
If I use rbd_cache=true or qemu drive cache=writeback, I don't have this bug.
----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 04:23:10
Objet: Re: qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Some other infos:
I can reproduce it too with manual snapshot with rbd command
#rbd --image myrbdvolume snap create --snap snap1
qemu monitor:
#stop
This is with ceph hammer 0.94.5.
in qemu vm_stop, the only thing related to block driver are
bdrv_drain_all();
ret = bdrv_flush_all();
----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 04:10:45
Objet: qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with vm_stop,
the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stop
I don't see this with qcow2 or sheepdog block driver for example.
Regards,
Alexandre
Signature · 8 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Something is really wrong,
because guest is also freezing, with a simple snapshot, with cache=none / rbd_cache=false
qemu monitor : snapshot_blkdev_internal drive-virtio0 snap1
or
rbd command : rbd --image myrbdvolume snap create --snap snap1
Then the guest can't read/write to disk anymore.
I have tested with last ceph internalis, same problem
----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 04:54:23
Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Also,
this occur only with rbd_cache=false or qemu drive cache=none.
If I use rbd_cache=true or qemu drive cache=writeback, I don't have this bug.
----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 04:23:10
Objet: Re: qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Some other infos:
I can reproduce it too with manual snapshot with rbd command
#rbd --image myrbdvolume snap create --snap snap1
qemu monitor:
#stop
This is with ceph hammer 0.94.5.
in qemu vm_stop, the only thing related to block driver are
bdrv_drain_all();
ret = bdrv_flush_all();
----- Mail original -----
De: "aderumier" <[email protected]>
À: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 04:10:45
Objet: qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with vm_stop,
the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stop
I don't see this with qcow2 or sheepdog block driver for example.
Regards,
Alexandre
Signature · 12 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 17 lines · Alexandre DERUMIER
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with
vm_stop,the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stop
Quoted 7 lines
I don't see this with qcow2 or sheepdog block driver for example.
Regards,
Alexandre
this could look like the problem I have recenty trying to fix with dataplane enabled. Patch series is named as
[PATCH for 2.5 v6 0/10] dataplane snapshot fixes
Den
Quoted 23 lines · Denis V. Lunev
Quoted 22 lines · Alexandre DERUMIER
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with
vm_stop,the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stopI don't see this with qcow2 or sheepdog block driver for example.
Regards,
Quoted 8 lines
Quoted 2 lines
Alexandre
this could look like the problem I have recenty trying to fix with dataplane enabled. Patch series is named as
[PATCH for 2.5 v6 0/10] dataplane snapshot fixes
Den
anyway, even if above will not help, can you collect gdb traces from all threads in QEMU process. May be I'll be able to give a hit.
Den
adding to ceph.conf
[client]
rbd_non_blocking_aio = false
fix the problem for me (with rbd_cache=false)
(@cc [email protected])
----- Mail original -----
De: "Denis V. Lunev" <[email protected]>
À: "aderumier" <[email protected]>, "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 08:22:34
Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Quoted 23 lines · Denis V. Lunev
Quoted 22 lines · Alexandre DERUMIER
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with
vm_stop,the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stopI don't see this with qcow2 or sheepdog block driver for example.
Regards,
Quoted 8 lines
Quoted 2 lines
Alexandre
this could look like the problem I have recenty trying to fix with dataplane enabled. Patch series is named as
[PATCH for 2.5 v6 0/10] dataplane snapshot fixes
Den
anyway, even if above will not help, can you collect gdb traces from all threads in QEMU process. May be I'll be able to give a hit.
Den
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Can you reproduce with Ceph debug logging enabled (i.e. debug rbd=20 in your ceph.conf)? If you could attach the log to the Ceph tracker ticket I opened [1], that would be very helpful.
[1] http://tracker.ceph.com/issues/13726
Thanks,
Jason
----- Original Message -----
Quoted 64 lines
From: "Alexandre DERUMIER" <[email protected]>
To: "ceph-devel" <[email protected]>
Cc: "qemu-devel" <[email protected]>, [email protected]
Sent: Monday, November 9, 2015 5:48:45 AM
Subject: Re: [Qemu-devel] qemu : rbd block driver internal snapshot andvm_stopis hanging foreveradding to ceph.conf
[client]
rbd_non_blocking_aio= falsefix the problem for me (with rbd_cache=false)
(@cc [email protected])
----- Mail original -----
De: "Denis V. Lunev" <[email protected]>
À: "aderumier" <[email protected]>, "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 08:22:34
Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot andvm_stopis hanging foreverQuoted 23 lines · Denis V. Lunev
Quoted 22 lines · Alexandre DERUMIER
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with
vm_stop,the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stopI don't see this with qcow2 or sheepdog block driver for example.
Regards,
Quoted 8 lines
Quoted 2 lines
Alexandre
this could look like the problem I have recenty trying to fix with dataplane enabled. Patch series is named as
[PATCH for 2.5 v6 0/10] dataplane snapshot fixes
Den
anyway, even if above will not help, can you collect gdb traces from all threads in QEMU process. May be I'll be able to give a hit.
Quoted 6 lines
Den
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 18 lines
----- Original Message -----
Quoted 16 lines
From: "Alexandre DERUMIER" <[email protected]>
To: "ceph-devel" <[email protected]>
Cc: "qemu-devel" <[email protected]>, [email protected]
Sent: Monday, November 9, 2015 5:48:45 AM
Subject: Re: [Qemu-devel] qemu : rbd block driver internal snapshot andvm_stopis hanging foreveradding to ceph.conf
[client]
rbd_non_blocking_aio= falsefix the problem for me (with rbd_cache=false)
(@cc [email protected])
+1 same to me.
Stefan
Quoted 54 lines
Quoted 48 lines
----- Mail original -----
De: "Denis V. Lunev" <[email protected]>
À: "aderumier" <[email protected]>, "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 08:22:34
Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot andvm_stopis hanging foreverQuoted 23 lines · Denis V. Lunev
Quoted 22 lines · Alexandre DERUMIER
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with
vm_stop,the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stopI don't see this with qcow2 or sheepdog block driver for example.
Regards,
Quoted 8 lines
Quoted 2 lines
Alexandre
this could look like the problem I have recenty trying to fix with dataplane enabled. Patch series is named as
[PATCH for 2.5 v6 0/10] dataplane snapshot fixes
Den
anyway, even if above will not help, can you collect gdb traces from all threads in QEMU process. May be I'll be able to give a hit.
Quoted 6 lines
Den
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines
Quoted 3 lines
Can you reproduce with Ceph debug logging enabled (i.e. debug rbd=20 in your ceph.conf)? If you could attach the log to the Ceph tracker ticket I opened [1], that would be very helpful.
yes,I'm able to reproduce it 100%, I have attached the log to the tracker.
Alexandre
----- Mail original -----
De: "Jason Dillaman" <[email protected]>
À: "aderumier" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]>, [email protected] Envoyé: Lundi 9 Novembre 2015 14:42:42
Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever
Can you reproduce with Ceph debug logging enabled (i.e. debug rbd=20 in your ceph.conf)? If you could attach the log to the Ceph tracker ticket I opened [1], that would be very helpful.
[1] http://tracker.ceph.com/issues/13726
Thanks,
Jason
----- Original Message -----
Quoted 58 lines
From: "Alexandre DERUMIER" <[email protected]>
To: "ceph-devel" <[email protected]>
Cc: "qemu-devel" <[email protected]>, [email protected]
Sent: Monday, November 9, 2015 5:48:45 AM
Subject: Re: [Qemu-devel] qemu : rbd block driver internal snapshot andvm_stopis hanging foreveradding to ceph.conf
[client]
rbd_non_blocking_aio= falsefix the problem for me (with rbd_cache=false)
(@cc [email protected])
----- Mail original -----
De: "Denis V. Lunev" <[email protected]>
À: "aderumier" <[email protected]>, "ceph-devel" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Lundi 9 Novembre 2015 08:22:34
Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot andvm_stopis hanging foreverQuoted 30 lines · Denis V. Lunev
Quoted 17 lines · Alexandre DERUMIER
Hi,
with qemu (2.4.1), if I do an internal snapshot of an rbd device, then I pause the vm with
vm_stop,the qemu process is hanging forever
monitor commands to reproduce:
# snapshot_blkdev_internal drive-virtio0 yoursnapname # stopQuoted 7 lines
I don't see this with qcow2 or sheepdog block driver for example.
Regards,
Alexandre
this could look like the problem I have recenty trying to fix with dataplane enabled. Patch series is named as
[PATCH for 2.5 v6 0/10] dataplane snapshot fixes
Quoted 12 lines
Quoted 1 line
Den
anyway, even if above will not help, can you collect gdb traces from all threads in QEMU process. May be I'll be able to give a hit.
Den
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html