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

CI capabilities test: inconsistent CapBnd #9286

Closed
edsantiago opened this issue Feb 9, 2021 · 1 comment
Closed

CI capabilities test: inconsistent CapBnd #9286

edsantiago opened this issue Feb 9, 2021 · 1 comment
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

First things first: this makes no sense to me. I don't see how this could be a flake; it should either consistently fail or consistently pass on the same machine. Instead, we get one-offs, and the ginkgo retry (so far) always passes.

Symptom:

$ podman-remote run --rm --user bin alpine grep CapBnd /proc/self/status
CapBnd:	00000000800405fb
...
Expected
               <string>: CapBnd: 00000000800405fb
           to contain substring
               <string>: 00000000a80425fb

Source:

podman/test/e2e/run_test.go

Lines 334 to 338 in 68ca906

os.Setenv("CONTAINERS_CONF", "/dev/null")
session := podmanTest.Podman([]string{"run", "--rm", "--user", "bin", ALPINE, "grep", "CapBnd", "/proc/self/status"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
Expect(session.OutputToString()).To(ContainSubstring("00000000a80425fb"))

Environment: so far, only f32 and f33. Always remote.

Decoding: the cap difference is -- surprise! -- CAP_NET_RAW, CAP_MKNOD,CAP_AUDIT_WRITE

cirrus-flake-xref results:

Podman run [It] podman run user capabilities test

Could podman be reading containers.conf even though $CONTAINERS_CONF is explicitly overridden?

@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 9, 2021
@rhatdan
Copy link
Member

rhatdan commented Feb 9, 2021

The service needs to be reset after setting CONTAINERS_CONF to /dev/null.

@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 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
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

No branches or pull requests

3 participants