mirror of
https://github.com/containers/podman.git
synced 2025-09-10 06:22:21 +08:00
Podman often reports OCI Runtime does not exist, even if it does
When the OCI Runtime tries to set certain settings in cgroups it can get the error "no such file or directory", the wrapper ends up reporting a bogus error like: ``` Request Failed(Internal Server Error): open io.max: No such file or directory: OCI runtime command not found error {"cause":"OCI runtime command not found error","message":"open io.max: No such file or directory: OCI runtime command not found error","response":500} ``` On first reading of this, you would think the OCI Runtime (crun or runc) were not found. But the error is actually reporting message":"open io.max: No such file or directory Which is what we want the user to concentrate on. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -119,7 +119,7 @@ EOF
|
||||
# noexec option. This should fail.
|
||||
# ARGH. Unfortunately, runc (used for cgroups v1) produces a different error
|
||||
local expect_rc=126
|
||||
local expect_msg='.* OCI runtime permission denied.*'
|
||||
local expect_msg='.* OCI permission denied.*'
|
||||
run_podman info --format '{{ .Host.OCIRuntime.Path }}'
|
||||
if expr "$output" : ".*/runc"; then
|
||||
expect_rc=1
|
||||
|
Reference in New Issue
Block a user