* [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever @ 2015-11-09 3:10 Alexandre DERUMIER 2015-11-09 3:23 ` Alexandre DERUMIER 2015-11-09 7:19 ` Denis V. Lunev 0 siblings, 2 replies; 10+ messages in thread From: Alexandre DERUMIER @ 2015-11-09 3:10 UTC (permalink / raw) To: ceph-devel, qemu-devel 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 3:10 [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever Alexandre DERUMIER @ 2015-11-09 3:23 ` Alexandre DERUMIER 2015-11-09 3:54 ` Alexandre DERUMIER 2015-11-09 7:19 ` Denis V. Lunev 1 sibling, 1 reply; 10+ messages in thread From: Alexandre DERUMIER @ 2015-11-09 3:23 UTC (permalink / raw) To: ceph-devel, qemu-devel 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" <aderumier@odiso.com> À: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> 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 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 3:23 ` Alexandre DERUMIER @ 2015-11-09 3:54 ` Alexandre DERUMIER 2015-11-09 4:18 ` Alexandre DERUMIER 0 siblings, 1 reply; 10+ messages in thread From: Alexandre DERUMIER @ 2015-11-09 3:54 UTC (permalink / raw) To: ceph-devel, qemu-devel 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" <aderumier@odiso.com> À: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> 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" <aderumier@odiso.com> À: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> 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 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 3:54 ` Alexandre DERUMIER @ 2015-11-09 4:18 ` Alexandre DERUMIER 0 siblings, 0 replies; 10+ messages in thread From: Alexandre DERUMIER @ 2015-11-09 4:18 UTC (permalink / raw) To: ceph-devel, qemu-devel 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" <aderumier@odiso.com> À: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> 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" <aderumier@odiso.com> À: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> 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" <aderumier@odiso.com> À: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> 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 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 3:10 [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever Alexandre DERUMIER 2015-11-09 3:23 ` Alexandre DERUMIER @ 2015-11-09 7:19 ` Denis V. Lunev 2015-11-09 7:22 ` Denis V. Lunev 1 sibling, 1 reply; 10+ messages in thread From: Denis V. Lunev @ 2015-11-09 7:19 UTC (permalink / raw) To: Alexandre DERUMIER, ceph-devel, qemu-devel On 11/09/2015 06:10 AM, Alexandre DERUMIER wrote: > 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 > 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 7:19 ` Denis V. Lunev @ 2015-11-09 7:22 ` Denis V. Lunev 2015-11-09 10:48 ` Alexandre DERUMIER 0 siblings, 1 reply; 10+ messages in thread From: Denis V. Lunev @ 2015-11-09 7:22 UTC (permalink / raw) To: Alexandre DERUMIER, ceph-devel, qemu-devel On 11/09/2015 10:19 AM, Denis V. Lunev wrote: > On 11/09/2015 06:10 AM, Alexandre DERUMIER wrote: >> 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 >> > 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 7:22 ` Denis V. Lunev @ 2015-11-09 10:48 ` Alexandre DERUMIER 2015-11-09 13:42 ` Jason Dillaman 0 siblings, 1 reply; 10+ messages in thread From: Alexandre DERUMIER @ 2015-11-09 10:48 UTC (permalink / raw) To: ceph-devel; +Cc: jdurgin, qemu-devel adding to ceph.conf [client] rbd_non_blocking_aio = false fix the problem for me (with rbd_cache=false) (@cc jdurgin@redhat.com) ----- Mail original ----- De: "Denis V. Lunev" <den-lists@parallels.com> À: "aderumier" <aderumier@odiso.com>, "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> Envoyé: Lundi 9 Novembre 2015 08:22:34 Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever On 11/09/2015 10:19 AM, Denis V. Lunev wrote: > On 11/09/2015 06:10 AM, Alexandre DERUMIER wrote: >> 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 >> > 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 10:48 ` Alexandre DERUMIER @ 2015-11-09 13:42 ` Jason Dillaman 2015-11-09 13:43 ` Stefan Priebe - Profihost AG 2015-11-09 14:02 ` Alexandre DERUMIER 0 siblings, 2 replies; 10+ messages in thread From: Jason Dillaman @ 2015-11-09 13:42 UTC (permalink / raw) To: Alexandre DERUMIER; +Cc: ceph-devel, qemu-devel, jdurgin 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 ----- > From: "Alexandre DERUMIER" <aderumier@odiso.com> > To: "ceph-devel" <ceph-devel@vger.kernel.org> > Cc: "qemu-devel" <qemu-devel@nongnu.org>, jdurgin@redhat.com > Sent: Monday, November 9, 2015 5:48:45 AM > Subject: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever > > adding to ceph.conf > > [client] > rbd_non_blocking_aio = false > > > fix the problem for me (with rbd_cache=false) > > > (@cc jdurgin@redhat.com) > > > > ----- Mail original ----- > De: "Denis V. Lunev" <den-lists@parallels.com> > À: "aderumier" <aderumier@odiso.com>, "ceph-devel" > <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> > Envoyé: Lundi 9 Novembre 2015 08:22:34 > Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop > is hanging forever > > On 11/09/2015 10:19 AM, Denis V. Lunev wrote: > > On 11/09/2015 06:10 AM, Alexandre DERUMIER wrote: > >> 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 > >> > > 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 13:42 ` Jason Dillaman @ 2015-11-09 13:43 ` Stefan Priebe - Profihost AG 2015-11-09 14:02 ` Alexandre DERUMIER 1 sibling, 0 replies; 10+ messages in thread From: Stefan Priebe - Profihost AG @ 2015-11-09 13:43 UTC (permalink / raw) To: Jason Dillaman, Alexandre DERUMIER; +Cc: ceph-devel, qemu-devel, jdurgin > ----- Original Message ----- >> From: "Alexandre DERUMIER" <aderumier@odiso.com> >> To: "ceph-devel" <ceph-devel@vger.kernel.org> >> Cc: "qemu-devel" <qemu-devel@nongnu.org>, jdurgin@redhat.com >> Sent: Monday, November 9, 2015 5:48:45 AM >> Subject: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever >> >> adding to ceph.conf >> >> [client] >> rbd_non_blocking_aio = false >> >> >> fix the problem for me (with rbd_cache=false) >> >> >> (@cc jdurgin@redhat.com) +1 same to me. Stefan >> >> >> >> ----- Mail original ----- >> De: "Denis V. Lunev" <den-lists@parallels.com> >> À: "aderumier" <aderumier@odiso.com>, "ceph-devel" >> <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> >> Envoyé: Lundi 9 Novembre 2015 08:22:34 >> Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop >> is hanging forever >> >> On 11/09/2015 10:19 AM, Denis V. Lunev wrote: >>> On 11/09/2015 06:10 AM, Alexandre DERUMIER wrote: >>>> 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 >>>> >>> 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 majordomo@vger.kernel.org >> 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever 2015-11-09 13:42 ` Jason Dillaman 2015-11-09 13:43 ` Stefan Priebe - Profihost AG @ 2015-11-09 14:02 ` Alexandre DERUMIER 1 sibling, 0 replies; 10+ messages in thread From: Alexandre DERUMIER @ 2015-11-09 14:02 UTC (permalink / raw) To: Jason Dillaman; +Cc: ceph-devel, qemu-devel, jdurgin >>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 yes,I'm able to reproduce it 100%, I have attached the log to the tracker. Alexandre ----- Mail original ----- De: "Jason Dillaman" <dillaman@redhat.com> À: "aderumier" <aderumier@odiso.com> Cc: "ceph-devel" <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org>, jdurgin@redhat.com 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 ----- > From: "Alexandre DERUMIER" <aderumier@odiso.com> > To: "ceph-devel" <ceph-devel@vger.kernel.org> > Cc: "qemu-devel" <qemu-devel@nongnu.org>, jdurgin@redhat.com > Sent: Monday, November 9, 2015 5:48:45 AM > Subject: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever > > adding to ceph.conf > > [client] > rbd_non_blocking_aio = false > > > fix the problem for me (with rbd_cache=false) > > > (@cc jdurgin@redhat.com) > > > > ----- Mail original ----- > De: "Denis V. Lunev" <den-lists@parallels.com> > À: "aderumier" <aderumier@odiso.com>, "ceph-devel" > <ceph-devel@vger.kernel.org>, "qemu-devel" <qemu-devel@nongnu.org> > Envoyé: Lundi 9 Novembre 2015 08:22:34 > Objet: Re: [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop > is hanging forever > > On 11/09/2015 10:19 AM, Denis V. Lunev wrote: > > On 11/09/2015 06:10 AM, Alexandre DERUMIER wrote: > >> 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 > >> > > 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-11-09 14:03 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-09 3:10 [Qemu-devel] qemu : rbd block driver internal snapshot and vm_stop is hanging forever Alexandre DERUMIER 2015-11-09 3:23 ` Alexandre DERUMIER 2015-11-09 3:54 ` Alexandre DERUMIER 2015-11-09 4:18 ` Alexandre DERUMIER 2015-11-09 7:19 ` Denis V. Lunev 2015-11-09 7:22 ` Denis V. Lunev 2015-11-09 10:48 ` Alexandre DERUMIER 2015-11-09 13:42 ` Jason Dillaman 2015-11-09 13:43 ` Stefan Priebe - Profihost AG 2015-11-09 14:02 ` Alexandre DERUMIER
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).