public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Better report errors failing to open namespace tap device
@ 2023-08-02  3:15 David Gibson
  2023-08-02  3:15 ` [PATCH 1/3] util: Make ns_enter() a void function and report setns() errors David Gibson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: David Gibson @ 2023-08-02  3:15 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: Paul Holzinger, David Gibson

In https://github.com/containers/podman/issues/19428, pasta is failing
to open the namespace tap device.  Paul Holzinger correctly noted that
pasta isn't very helpful in this case, with no information beyond "it
failed".  He suggested a patch for that, however it wasn't quite
sufficient: errno may not be propagated back from the ephemeral thread
which enters the namespace, and even if it does the errno alone won't
tell us which of the possible failure points actually failed.

2/3 here is a more robust change to address the problem.  The other
patches are minor cleanups I noticed along the way.

Link: https://bugs.passt.top/show_bug.cgi?id=69

David Gibson (3):
  util: Make ns_enter() a void function and report setns() errors
  tap: More detailed error reporting in tap_ns_tun()
  tap: Remove unnecessary global tun_ns_fd

 conf.c |  3 ++-
 tap.c  | 33 ++++++++++++++++++---------------
 udp.c  |  6 ++----
 util.c |  8 +++-----
 util.h |  2 +-
 5 files changed, 26 insertions(+), 26 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2023-08-04  8:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-02  3:15 [PATCH 0/3] Better report errors failing to open namespace tap device David Gibson
2023-08-02  3:15 ` [PATCH 1/3] util: Make ns_enter() a void function and report setns() errors David Gibson
2023-08-02  3:15 ` [PATCH 2/3] tap: More detailed error reporting in tap_ns_tun() David Gibson
2023-08-02  3:15 ` [PATCH 3/3] tap: Remove unnecessary global tun_ns_fd David Gibson
2023-08-04  7:04 ` [PATCH 0/3] Better report errors failing to open namespace tap device Stefano Brivio
2023-08-04  8:35   ` 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).