Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman build + workdir(?): Error adding network: failed to setup hairpin mode for veth3e067d53: operation not supported #11010

Closed
edsantiago opened this issue Jul 21, 2021 · 10 comments
Labels
flakes Flakes from Continuous Integration locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue

Comments

@edsantiago
Copy link
Member

This seems to be correlated with podman run of an image built with workdir. (It is not for me to understand why):

# podman build ...
...
STEP 5/25: WORKDIR /emkbn7Pa2r
...
# podman run thatimage ...
time="2021-07-15T13:33:54-05:00" level=error msg="error loading cached network config: network \"podman\" not found in CNI cache"
time="2021-07-15T13:33:54-05:00" level=warning msg="falling back to loading from existing plugins on disk"
Error: error configuring network namespace for container d7934ec1abb74c0fc57d5540482798f665bb41874ed916bc7603645ad7df622f: error adding pod boring_dhawan_boring_dhawan to CNI network "podman": failed to setup hairpin mode for vethb0252915: operation not supported
[ rc=126 (** EXPECTED 0 **) ]

Note the "error adding pod" message, despite no pods anywhere. Note also that "veth" appears in another buildah flake, containers/buildah#2628, although there it's "failed to make veth pair".

Podman network connect and disconnect [It] podman network connect when not running

sys: podman build - workdir, cmd, env, label

Podman containers [It] podman kill latest container with SIGTERM

Also in a int-podman-fedora-34-root-container run that my flake referencer didn't seem to find

Also right now in my own PR, in sys-podman-fedora-34-root-host (not yet indexed by my flake catcher)

@edsantiago edsantiago added the flakes Flakes from Continuous Integration label Jul 21, 2021
@rhatdan
Copy link
Member

rhatdan commented Jul 21, 2021

Coincidence, I just read the following:
#10052 (comment)

@Luap99 Could this be related.

@edsantiago
Copy link
Member Author

The #10052 issue is rootless, whereas this issue (so far) I've only seen in root.

@Luap99
Copy link
Member

Luap99 commented Jul 22, 2021

I don't think this is a podman issue. The bridge cni plugin tries to set the hairpin mode on the veth interface and this fails. It only failed on f34, this could be a kernel problem.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Aug 23, 2021

@edsantiago @Luap99 where do we stand on this one?

@edsantiago
Copy link
Member Author

Seen twice last week:

sys: podman logs - journald log driver requires journald events backend

Podman commit [It] podman commit with volume mounts and --include-volumes

@tlammi
Copy link

tlammi commented Sep 21, 2021

I had a similar issue when starting podman on a custom LInux distro built with Yocto project.

The issue was apparently that systemd-networkd had rules that matched the network interfaces created by podman.
The issue disappeared when I deleted all *.network files.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@vrothberg
Copy link
Member

@edsantiago are we still seeing this flake?

@Luap99 does @tlammi's comment on networkd interfering help?

@edsantiago
Copy link
Member Author

The last instance I see in my flake logs is from September 14, and the log has been GC'ed, so I'll close.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flakes Flakes from Continuous Integration locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. stale-issue
Projects
None yet
Development

No branches or pull requests

5 participants