Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 1112378 - Respect OPENSHIFT_CGROUP_SUBSYSTEMS in oo-accept-node
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Grimm committed Jun 23, 2014
1 parent 71d3807 commit 9017a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-util/sbin/oo-accept-node
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ end
# Verify that the user has a cgroup in all subsystems and no others
def check_user_cgroups(username)
user_cgroup="/openshift/#{username}"
test_subsystems = Set.new(['cpu', 'cpuacct', 'memory', 'freezer', 'net_cls'])
test_subsystems = Set.new($CONF.get('OPENSHIFT_CGROUP_SUBSYSTEMS', 'cpu,cpuacct,memory,freezer,net_cls').split(','))
if not test_subsystems == $CGROUP_DATA[username]
user_fail(username, "user #{username} must have all cgroup subsystems.")
end
Expand Down

0 comments on commit 9017a2a

Please sign in to comment.