open-nomad/client/lib/cgutil
Seth Hoenig a25d3ea792
cgv1: do not disable cpuset manager if reserved interface already exists (#16467)
* cgv1: do not disable cpuset manager if reserved interface already exists

This PR fixes a bug where restarting a Nomad Client on a machine using cgroups
v1 (e.g. Ubuntu 20.04) would cause the cpuset cgroups manager to disable itself.

This is being caused by incorrectly interpreting a "file exists" error as
problematic when ensuring the reserved cpuset exists. If we get a "file exists"
error, that just means the Client was likely restarted.

Note that a machine reboot would fix the issue - the groups interfaces are
ephemoral.

* cl: add cl
2023-03-13 17:00:17 -05:00
..
cgutil_linux.go cgutil: handle panic from runc helper method (#16180) 2023-02-14 15:09:43 -06:00
cgutil_linux_test.go
cgutil_noop.go
cpuset_manager.go CI: make make check clean on macOS (#14528) 2022-09-09 12:26:34 -04:00
cpuset_manager_test.go
cpuset_manager_v1.go cgv1: do not disable cpuset manager if reserved interface already exists (#16467) 2023-03-13 17:00:17 -05:00
cpuset_manager_v1_test.go deps: Update ioutil deprecated library references to os and io respectively in the client package (#16318) 2023-03-08 13:25:10 -06:00
cpuset_manager_v2.go client: ensure minimal cgroup controllers enabled (#15027) 2022-10-24 16:08:54 -05:00
cpuset_manager_v2_test.go
editor.go cgroups: refactor v2 kill path to use cgroups.kill interface file 2022-08-29 14:55:13 -05:00
editor_test.go cgroups: refactor v2 kill path to use cgroups.kill interface file 2022-08-29 14:55:13 -05:00
group_killer.go cgroups: refactor v2 kill path to use cgroups.kill interface file 2022-08-29 14:55:13 -05:00