-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ws-daemon: align to decide if cgroup v2. #9390
Conversation
components/ws-daemon/pkg/iws/iws.go
Outdated
if cgroups.Mode() == cgroups.Unified { | ||
unified, err := cgroups.IsUnifiedCgroupSetup() | ||
if err != nil { | ||
return nil, status.Errorf(codes.FailedPrecondition, "could not determine cgroup setup") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we include the error err
in the message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error might be exposed to the user to whom it would be confusing.
We should log this instead.
@utam0k can you attach a screenshot where it shows that the issue is resolved, or maybe include a loom video so all reviewers don't have to explicitly test? |
@utam0k While discussing the cgroup issues Pavel had with his PVC work, we discovered that the method to evacuate the cgroup does not get called when using fuse. I have fixed that and added it to this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
added to workspace cluster changelog
Description
For some reason, the existing decision process was not working properly to determine using cgroup v2.
Related Issue(s)
Fixes #9389
How to test
Create the cgroup v2 with fusefs environment and run a workspace.
https://github.com/gitpod-io/workspace-preview/tree/to/fusefs
Release Notes
Documentation
No