public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v3 0/3] More graceful handling of migration without passt-repair
@ 2025-02-26  6:04 David Gibson
  2025-02-26  6:04 ` [PATCH v3 1/3] migrate, flow: Trivially succeed if migrating with no flows David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: David Gibson @ 2025-02-26  6:04 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: David Gibson

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.

Handle this more gracefully allowing the migration to proceed in this
case, but allow TCP connections to break

I've test patches 1..2/3 reasonably:
 * I get a clean migration if there are now active flows
 * Migration completes, although connections are broken if
   passt-repair isn't connected
 * Basic test suite (minus perf)

Patch 3 I've run the basic test suite on, but haven't tested the
specific functionality of.  Alas, I've spent most of today battling
with RHEL, virt-install, unshare and various other things trying to
create a test environment simulating two hosts with (possibly)
different addresses.  Despite the example given by Stefano in reply to
the previous version, I haven't really succeeded yet.

There are more fragile cases that I'm looking to fix, particularly the
die()s in flow_migrate_source_rollback() and elsewhere, however I ran
into various complications that I didn't manage to sort out today.
I'll continue looking at those tomorrow.

David Gibson (3):
  migrate, flow: Trivially succeed if migrating with no flows
  migrate, flow: Don't attempt to migrate TCP flows without passt-repair
  migrate, tcp: Don't attempt to carry on migration after
    flow_alloc_cancel()

 flow.c | 17 +++++++++++++++--
 tcp.c  |  5 ++++-
 2 files changed, 19 insertions(+), 3 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-27  1:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-26  6:04 [PATCH v3 0/3] More graceful handling of migration without passt-repair David Gibson
2025-02-26  6:04 ` [PATCH v3 1/3] migrate, flow: Trivially succeed if migrating with no flows David Gibson
2025-02-26  6:04 ` [PATCH v3 2/3] migrate, flow: Don't attempt to migrate TCP flows without passt-repair David Gibson
2025-02-26  6:04 ` [PATCH v3 3/3] migrate, tcp: Don't attempt to carry on migration after flow_alloc_cancel() David Gibson
2025-02-26 19:01 ` [PATCH v3 0/3] More graceful handling of migration without passt-repair Stefano Brivio
2025-02-27  1:23   ` David Gibson

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).