public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Stefano Brivio <sbrivio@redhat.com>, passt-dev@passt.top
Cc: David Gibson <david@gibson.dropbear.id.au>
Subject: [PATCH v4 0/5] Improve robustness of migration
Date: Thu, 27 Feb 2025 16:55:12 +1100	[thread overview]
Message-ID: <20250227055517.497347-1-david@gibson.dropbear.id.au> (raw)

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

There are more fragile cases that I'm looking to fix, particularly the
die()s in flow_migrate_source_rollback() and elsewhere.

David Gibson (5):
  migrate, flow: Trivially succeed if migrating with no flows
  migrate, flow: Don't attempt to migrate TCP flows without passt-repair
  tcp: Correct error code handling from tcp_flow_repair_socket()
  tcp: Unconditionally move to CLOSED state on tcp_rst()
  migrate, tcp: Don't flow_alloc_cancel() during incoming migration

 flow.c | 17 +++++++++++++++--
 tcp.c  | 28 +++++++++++++++++++++-------
 2 files changed, 36 insertions(+), 9 deletions(-)

-- 
2.48.1


             reply	other threads:[~2025-02-27  5:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27  5:55 David Gibson [this message]
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 ` [PATCH v4 0/5] Improve robustness of migration Stefano Brivio

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=20250227055517.497347-1-david@gibson.dropbear.id.au \
    --to=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /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).