From: Kevin Wolf <kwolf@redhat.com>
To: Fiona Ebner <f.ebner@proxmox.com>
Cc: Jin Cao <jojing64@gmail.com>, Ilya Dryomov <idryomov@gmail.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org, pl@kamp.de,
hreitz@redhat.com, peterx@redhat.com, farosas@suse.de
Subject: Re: block snapshot issue with RBD
Date: Wed, 29 May 2024 12:59:51 +0200 [thread overview]
Message-ID: <ZlcKp6gdIFdSsi_X@redhat.com> (raw)
In-Reply-To: <5993acdc-f8ec-4fa8-bb97-952c3a56ae6d@proxmox.com>
Am 29.05.2024 um 12:14 hat Fiona Ebner geschrieben:
> I bisected this issue to d3007d348a ("block: Fix crash when loading
> snapshot on inactive node").
>
> > diff --git a/block/snapshot.c b/block/snapshot.c
> > index ec8cf4810b..c4d40e80dd 100644
> > --- a/block/snapshot.c
> > +++ b/block/snapshot.c
> > @@ -196,8 +196,10 @@ bdrv_snapshot_fallback(BlockDriverState *bs)
> > int bdrv_can_snapshot(BlockDriverState *bs)
> > {
> > BlockDriver *drv = bs->drv;
> > +
> > GLOBAL_STATE_CODE();
> > - if (!drv || !bdrv_is_inserted(bs) || bdrv_is_read_only(bs)) {
> > +
> > + if (!drv || !bdrv_is_inserted(bs) || !bdrv_is_writable(bs)) {
> > return 0;
> > }
> >
>
> So I guess the issue is that the blockdev is not writable when
> "postmigrate" state?
That makes sense. The error message really isn't great, but after
migration, the image is assumed to be owned by the destination, so we
can't use it any more. 'cont' basically asserts that the migration
failed and we can get ownership back. I don't think we can do without a
manual command reactivating the image on the source, but we could have
one that does this without resuming the VM.
Kevin
prev parent reply other threads:[~2024-05-29 11:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-27 7:03 block snapshot issue with RBD Jin Cao
2024-05-27 17:56 ` Jin Cao
2024-05-27 19:06 ` Jin Cao
2024-05-28 18:13 ` Ilya Dryomov
2024-05-28 18:19 ` Jin Cao
2024-05-29 10:14 ` Fiona Ebner
2024-05-29 10:59 ` Kevin Wolf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZlcKp6gdIFdSsi_X@redhat.com \
--to=kwolf@redhat.com \
--cc=f.ebner@proxmox.com \
--cc=farosas@suse.de \
--cc=hreitz@redhat.com \
--cc=idryomov@gmail.com \
--cc=jojing64@gmail.com \
--cc=peterx@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.