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-remote network create: race condition creating conflist file #9472

Closed
edsantiago opened this issue Feb 22, 2021 · 3 comments · Fixed by #9561
Closed

podman-remote network create: race condition creating conflist file #9472

edsantiago opened this issue Feb 22, 2021 · 3 comments · Fixed by #9561
Assignees
Labels
flakes Flakes from Continuous Integration kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. remote Problem is in podman-remote

Comments

@edsantiago
Copy link
Member

The following sequence is starting to fail frequently in CI:

# podman-remote network create a
# podman-remote network create b
# podman-remote run --network b something-something
Error: CNI network \"b\" not found"
         Error: error configuring network namespace for container X: CNI network "b" not found

I cannot reproduce it on my f33 laptop, possibly because it's faster than the CI VMs. What I can reproduce easily is:

# ./bin/podman-remote network create b;./bin/podman-remote network rm b

and then, in the podman server window, I see:

ERRO[1299] Error loading CNI config list file /etc/cni/net.d/b.conflist: error reading /etc/cni/net.d/b.conflist: open /etc/cni/net.d/b.conflist: no such file or directory

(not 100% of the time, but about 25%)

master @ 6fbf73e

Podman network [It] podman network prune

@edsantiago edsantiago added flakes Flakes from Continuous Integration kind/bug Categorizes issue or PR as related to a bug. remote Problem is in podman-remote labels Feb 22, 2021
@Luap99
Copy link
Member

Luap99 commented Feb 22, 2021

@edsantiago I already chased that down see #9449 and cri-o/ocicni#85

@edsantiago
Copy link
Member Author

@Luap99 your fix LGTM, thank you!

@Luap99
Copy link
Member

Luap99 commented Feb 22, 2021

The bigger question is why it started to fail now and ubuntu works fine. The code did not changed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flakes Flakes from Continuous Integration kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. remote Problem is in podman-remote
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants