summaryrefslogtreecommitdiff
path: root/troubleshooting.md
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-07-15 11:22:01 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-07-15 18:21:01 +0200
commit1a8b2a037fb5d6ab4d43f0e5cc5169353f06e3ac (patch)
treee9c656c187f41deef89a03a2f98ea04098544a12 /troubleshooting.md
parente54a513b964872e693a4582aaae7f9f4d7c098fb (diff)
downloadpodman-1a8b2a037fb5d6ab4d43f0e5cc5169353f06e3ac.tar.gz
podman-1a8b2a037fb5d6ab4d43f0e5cc5169353f06e3ac.tar.bz2
podman-1a8b2a037fb5d6ab4d43f0e5cc5169353f06e3ac.zip
Fix race conditions in rootless cni setup
There was an race condition when calling `GetRootlessCNINetNs()`. It created the rootless cni directory before it got locked. Therefore another process could have called cleanup and removed this directory before it was used resulting in errors. The lockfile got moved into the XDG_RUNTIME_DIR directory to prevent a panic when the parent dir was removed by cleanup. Fixes #10930 Fixes #10922 To make this even more robust `GetRootlessCNINetNs()` will now return locked. This guarantees that we can run `Do()` after `GetRootlessCNINetNs()` before another process could have called `Cleanup()` in between. [NO TESTS NEEDED] CI is flaking, hopefully this will fix it. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'troubleshooting.md')
0 files changed, 0 insertions, 0 deletions