-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix handling of selinux labels in podman play kube #10992
Conversation
Fixes: containers#10969 [NO TESTS NEEDED] We added tests for this, but they don't seem to be running. If I run the local system tests, they fail with the current Podman and work with this version. Signed-off-by: Daniel J Walsh <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
/lgtm |
Can you help me understand why this is happening? If you point me at a specific test, I can try to track down prior CI runs and see if they're skipped. If the tests are running and passing, that would be bad, no? |
700-play.bats @test "podman play with stdin" { I would guess these tests are running on disabled SELinux machines. When I ran them locally they blew up. |
Do you still have the command you ran, and the output? I've never seen that test fail, and I often run full bats runs on my laptop (with SELinux enforcing, needless to say). I also confirmed that the test is not being skipped in CI. I think there might be something we're not actually testing. |
I ran them locally on F34 as root yesterday and it failed, with |
# bats --filter stdin /usr/share/podman/test/system/700-play.bats
✓ podman play with stdin
1 test, 0 failures
# rpm -q podman
podman-3.2.2-1.fc34.x86_64 These tests pass all the time in gating. I run them manually, often, on my laptop and on 1mt VMs. If it failed in your setup, I need to know how you invoked it and what the error was. I have to assume it's a problem with your setup or your test invocation. More importantly, I would like to write a test for this PR, because I don't like PRs going in without tests. I'm trying to figure out a reproducer from #10969 but am having trouble reducing it to something small. |
@rhatdan, is this a change we could consider porting over to 3.2.x? |
We're done with 3.2.x releases at this point. We are looking towards a 3.3.0 something in early August. |
We have a problem. We have no tests for this bug fix, no way to catch a regression. I've spent several hours this week trying to reproduce the failure described in #10969, and can't come up with a test case that fails under pre-10992 podman. That makes me think our 700-play.bats tests are incomplete; I just don't know how to fix them. And I'm giving up because this has become counterproductive for me. Am writing this note because some day this may come back to bite us. |
Fixes: #10969
[NO TESTS NEEDED] We added tests for this, but they don't seem to be
running. If I run the local system tests, they fail with the current
Podman and work with this version.
Signed-off-by: Daniel J Walsh [email protected]