From: Peter Xu <peterx@redhat.com>
To: Prasad Pandit <ppandit@redhat.com>
Cc: "Fabiano Rosas" <farosas@suse.de>,
qemu-devel@nongnu.org, "Prasad Pandit" <pjp@fedoraproject.org>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Jiri Denemark" <jdenemar@redhat.com>
Subject: Re: [PATCH] migration: introduce MIGRATION_STATUS_FAILING
Date: Wed, 7 Jan 2026 12:03:58 -0500 [thread overview]
Message-ID: <aV6R_hADWPz1yr2E@x1.local> (raw)
In-Reply-To: <CAE8KmOw+0dXcON1_VTBY2i6aE0So-MGDtxLmhvtLZWGM6TPxQA@mail.gmail.com>
On Wed, Jan 07, 2026 at 04:41:09PM +0530, Prasad Pandit wrote:
> On Tue, 6 Jan 2026 at 20:39, Peter Xu <peterx@redhat.com> wrote:
> > Copying Dan and Jiri in case ...
>
> * Thank you for copying.
>
> >> } else if (s->current_state == ACTIVE && s->trigger == 'error-occurred') {
> >> s->current_state = STOP
> >> s->reason = "Error occurred, migration failed"
> >
> > We can't change status that were already used, like FAILED. Libvirt and
> > all mgmt may rely on it.
>
> * True; If we decide to go in that direction, we'll have to tell
> libvirtd(8) and others about new states.
>
> > Personally I don't see much benefit on adding a new "trigger" internal API.
> > If we want to forbid some state machine transitions, we can use a
> > transition map. Said that, IMHO it's separate from what we're discussing
> > here.
>
> * If we can reduce/rationalise the current 17-18 states and related
> complexity, it'll help to simplify things.
Personally I still don't see the benefit of doing so.
I agree MIGRATION_STATUS_CANCELLING isn't a must to have, but since we have
it already and libvirt should treat it almost the same as ACTIVE we don't
have problem with it either. It doesn't sound like a big issue.
I don't see how we can shrink the rest of status otherwise, or what would
you propose for removal?
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2026-01-07 17:05 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-22 11:48 [PATCH] migration: introduce MIGRATION_STATUS_FAILING Prasad Pandit
2025-12-22 14:29 ` Fabiano Rosas
2025-12-23 11:17 ` Prasad Pandit
2025-12-23 15:04 ` Fabiano Rosas
2026-01-06 10:54 ` Prasad Pandit
2026-01-06 14:53 ` Peter Xu
2025-12-23 15:30 ` Peter Xu
2025-12-23 16:01 ` Fabiano Rosas
2026-01-06 11:45 ` Prasad Pandit
2026-01-06 13:47 ` Fabiano Rosas
2026-01-07 10:49 ` Prasad Pandit
2026-01-07 13:23 ` Fabiano Rosas
2026-01-12 13:05 ` Prasad Pandit
2026-01-12 19:45 ` Fabiano Rosas
2026-01-13 11:59 ` Prasad Pandit
2026-01-14 12:16 ` Fabiano Rosas
2026-01-06 15:09 ` Peter Xu
2026-01-07 11:11 ` Prasad Pandit
2026-01-07 17:03 ` Peter Xu [this message]
2025-12-23 15:17 ` Peter Xu
2025-12-23 15:36 ` Fabiano Rosas
2025-12-23 16:27 ` Peter Xu
2026-01-06 10:49 ` Prasad Pandit
2026-01-06 15:23 ` Peter Xu
2026-01-07 11:01 ` Prasad Pandit
2026-01-07 17:07 ` Peter Xu
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=aV6R_hADWPz1yr2E@x1.local \
--to=peterx@redhat.com \
--cc=berrange@redhat.com \
--cc=farosas@suse.de \
--cc=jdenemar@redhat.com \
--cc=pjp@fedoraproject.org \
--cc=ppandit@redhat.com \
--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.