-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 command display warning for systemd even cgroupfs is specified #12802
Labels
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.
Comments
@giuseppe PTAL |
we check the cgroup driver too early, the following patch solves the issue for me: diff --git a/libpod/runtime.go b/libpod/runtime.go
index 9794b3605..73cb5dc78 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -170,7 +170,6 @@ func NewRuntime(ctx context.Context, options ...RuntimeOption) (*Runtime, error)
if err != nil {
return nil, err
}
- conf.CheckCgroupsAndAdjustConfig()
return newRuntimeFromConfig(ctx, conf, options...)
}
@@ -228,6 +227,8 @@ func newRuntimeFromConfig(ctx context.Context, conf *config.Config, options ...R
return nil, err
}
+ conf.CheckCgroupsAndAdjustConfig()
+
return runtime, nil I'll open a PR |
giuseppe
added a commit
to giuseppe/libpod
that referenced
this issue
Jan 12, 2022
move the check after the cgroup manager is set, so to correctly detect --cgroup-manager=cgroupfs and do not raise a warning about dbus not being present. Closes: containers#12802 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
giuseppe
added a commit
to giuseppe/libpod
that referenced
this issue
Jan 12, 2022
move the check after the cgroup manager is set, so to correctly detect --cgroup-manager=cgroupfs and do not raise a warning about dbus not being present. Closes: containers#12802 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
opened a PR: #12834 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
This shows that
--cgroup-manager
works as global argument.That's fine. That means
systemd
is used by default. I'd like to specifycgroupfs
to remove these warnings but failed.Describe the results you received:
When
--cgroup-manager=cgroupfs
is specified in podman command line, it still reportsystemd
is used with warning.Describe the results you expected:
There is no warning and
podman info --cgroup-manager=cgroupfs
shows cgroupfs as cgroup manager.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: