From: Peter Xu <peterx@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
farosas@suse.de, yc-core@yandex-team.ru, thuth@redhat.com,
lvivier@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org,
pkrempa@redhat.com
Subject: Re: [PATCH] migration: do not exit on incoming failure
Date: Thu, 18 Apr 2024 12:43:42 -0400 [thread overview]
Message-ID: <ZiFNvgf0sDwC1Zkv@x1n> (raw)
In-Reply-To: <985d47bb-3c14-4576-95fa-28649710686b@yandex-team.ru>
On Thu, Apr 18, 2024 at 06:47:31PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> On 18.04.24 18:43, Daniel P. Berrangé wrote:
> > On Thu, Apr 18, 2024 at 06:40:38PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> > > On 18.04.24 17:37, Daniel P. Berrangé wrote:
> > > > On Thu, Apr 18, 2024 at 01:13:29AM +0300, Vladimir Sementsov-Ogievskiy wrote:
> > > > > We do set MIGRATION_FAILED state, but don't give a chance to
> > > > > orchestrator to query migration state and get the error.
> > > > >
> > > > > Let's report an error through QAPI like we do on outgoing migration.
> > > > >
> > > > > migration-test is updated correspondingly.
> > > > >
> > > > > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> > > > > ---
> > > > >
> > > > > Doubt: is exiting on failure a contract? Will this commit break
> > > > > something in Libvirt? Finally, could we just change the logic, or I need
> > > > > and additional migration-parameter for new behavior?
> > > >
> > > > There's a decent risk that this could break apps, whether
> > > > libvirt or something else, especially if the app is just
> > > > launching QEMU with '-incoming URI', rather than using
> > > > '-incoming defer' and then explicitly using QMP to start the
> > > > incoming migration.
> > > >
> > > > I'd say that with '-incoming defer' we should *not* exit on
> > > > migration error, because that arg implies the app explicitly
> > > > wants to be using QMP to control migration.
> > > >
> > > > With the legacy '-incoming URI' it is probably best to keep
> > > > exit on error, as that's comparatively more likely to be used
> > > > in adhoc scenarios where the app/user is ignoring QMP on the
> > > > dst side.
> > > >
> > > > None the less, I think we need to check how libvirt behaves
> > > > with this patch to be sure of no surprises.
> > > >
> > >
> > > Sounds reasonable, thanks! I'll rework it to behave the new
> > > way only with "-incoming defer", and check how libvirt behave with it.
> >
> > If there are problems and/or we want to be super safe wrt
> > backcompat, we could add a new '-incoming managed' as
> > being equivalent to '-incoming defer' but without the
> > implicit exit.
> >
>
> Probably, that's the best variant. As I can check libvirt in some case, but not at all cases. And libvirt is not the only vm manager finally.
> And we can in the same time deprecate "-incoming defer" in favor of new behavior.
Or just make it a new migration parameter? Then we keep all existing
interfaces untouched, no risk of breaking anyone, and then it'll also apply
to anyone who uses things like -incoming tcp but still wants to keep the
qemu instance alive?
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2024-04-18 16:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 22:13 [PATCH] migration: do not exit on incoming failure Vladimir Sementsov-Ogievskiy
2024-04-18 14:27 ` Fabiano Rosas
2024-04-18 15:38 ` Vladimir Sementsov-Ogievskiy
2024-04-18 14:37 ` Daniel P. Berrangé
2024-04-18 15:40 ` Vladimir Sementsov-Ogievskiy
2024-04-18 15:43 ` Daniel P. Berrangé
2024-04-18 15:47 ` Vladimir Sementsov-Ogievskiy
2024-04-18 16:43 ` Peter Xu [this message]
2024-04-18 16:57 ` Daniel P. Berrangé
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=ZiFNvgf0sDwC1Zkv@x1n \
--to=peterx@redhat.com \
--cc=berrange@redhat.com \
--cc=farosas@suse.de \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pkrempa@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=vsementsov@yandex-team.ru \
--cc=yc-core@yandex-team.ru \
/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.