public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v4 0/5] Improve robustness of migration
Date: Fri, 28 Feb 2025 03:03:24 +0100	[thread overview]
Message-ID: <20250228030324.55b9b1f4@elisabeth> (raw)
In-Reply-To: <20250227055517.497347-1-david@gibson.dropbear.id.au>

On Thu, 27 Feb 2025 16:55:12 +1100
David Gibson <david@gibson.dropbear.id.au> wrote:

> From Red Hat internal testing we've had some reports that if
> attempting to migrate without passt-repair, the failure mode is uglier
> than we'd like.  The migration fails, which is somewhat expected, but
> we don't correctly roll things back on the source, so it breaks
> network there as well.
> 
> Address this and several other fragilities in the migration.
> 
> Everything tested with the basic test suite, plus some additional
> testing for the specific functionality of the patches:
> 
> For patches 1..2:
>  * I get a clean migration if there are now active flows
>  * Migration completes, although connections are broken if
>    passt-repair isn't connected
> 
> For patches 3..5:
>  * Migration completes ok if the source and destination hosts have
>    different IPs
>  * Target correctly sees the bind() failure and abandons the flow
>  * Unfortunately, target-side client doesn't get a reset, it just sits
>    there not working.  This is because a) the RST we try to send is
>    lost because the queue is still inactive over the migration and b)
>    we don't send RSTs or ICMPs for packets from the guest which no
>    longer match a flow (I hope to tackle this soon)
>  * After manually quitting the stuck client on the target, other
>    connectivity works

Applied. I didn't manage to try out the setup you proposed yet, but I
tried things out in my partial flow (with migration succeeding but
connections closing right away) and everything looks fine there.

-- 
Stefano


      parent reply	other threads:[~2025-02-28  2:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27  5:55 [PATCH v4 0/5] Improve robustness of migration David Gibson
2025-02-27  5:55 ` [PATCH v4 1/5] migrate, flow: Trivially succeed if migrating with no flows David Gibson
2025-02-27  5:55 ` [PATCH v4 2/5] migrate, flow: Don't attempt to migrate TCP flows without passt-repair David Gibson
2025-02-27  5:55 ` [PATCH v4 3/5] tcp: Correct error code handling from tcp_flow_repair_socket() David Gibson
2025-02-27  5:55 ` [PATCH v4 4/5] tcp: Unconditionally move to CLOSED state on tcp_rst() David Gibson
2025-02-27  5:55 ` [PATCH v4 5/5] migrate, tcp: Don't flow_alloc_cancel() during incoming migration David Gibson
2025-02-28  2:03 ` Stefano Brivio [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=20250228030324.55b9b1f4@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).