-
Notifications
You must be signed in to change notification settings - Fork 0
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
bugfix/#17186 check memory is assigned to chefclient slice #77
base: master
Are you sure you want to change the base?
Conversation
The Label Bot has predicted the following:
|
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.
chef-client should not be assigned to a cgroup
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.
We need to check all the services with something like
def is_in_redborder_cgroup(service)
slice = `systemctl show #{service} --property=Slice`.split('=')[1]
slice.chomp! != 'system.slice'
end
for all excluded should return false
and for memservices should return true
Added a test for chefclient slice, because cgroup is not assigning a slice but it needs to be created