open-nomad/drivers/shared/executor
Mahmood Ali a89da9982d
raw_exec: don't use cgroups when no_cgroup is set (#9328)
When raw_exec is configured with [`no_cgroups`](https://www.nomadproject.io/docs/drivers/raw_exec#no_cgroups), raw_exec shouldn't attempt to create a cgroup.

Prior to this change, we accidentally always required freezer cgroup to do stats PID tracking. We already have the proper fallback in place for metrics, so only need to ensure that we don't create a cgroup for the task.

Fixes https://github.com/hashicorp/nomad/issues/8565
2020-11-11 16:20:34 -05:00
..
proto protos: Update .proto files not to use Go package name (#9301) 2020-11-10 08:42:35 -08:00
test-resources/busybox
client.go client: support no_pivot_root in exec driver configuration 2020-02-18 09:27:16 -08:00
exec_utils.go executor: removed unused field from exec_utils.go 2019-09-30 11:57:34 -04:00
executor.go raw_exec: don't use cgroups when no_cgroup is set (#9328) 2020-11-11 16:20:34 -05:00
executor_basic.go executor: rename wrapNetns to withNetworkIsolation 2019-09-30 21:38:31 -04:00
executor_linux.go Adjust cgroup change in libcontainer 2020-08-20 00:31:07 +08:00
executor_linux_test.go raw_exec: don't use cgroups when no_cgroup is set (#9328) 2020-11-11 16:20:34 -05:00
executor_plugin.go
executor_test.go tests: copy permissions when copying files 2020-10-01 10:23:14 -04:00
executor_universal_linux.go Adjust cgroup change in libcontainer 2020-08-20 00:31:07 +08:00
executor_unix.go default e.getAllPids in executor_basic 2019-07-18 10:57:27 -04:00
executor_windows.go default e.getAllPids in executor_basic 2019-07-18 10:57:27 -04:00
legacy_executor_wrapper.go Legacy executors are executors after all 2020-11-10 10:20:07 -05:00
libcontainer_nsenter_linux.go
pid_collector.go pid_collector getAllPids -> getAllPidsByScanning 2019-07-17 17:31:20 -04:00
pid_collector_test.go
plugins.go
pty_unix.go Upgrade to golang 1.15 (#8858) 2020-09-09 15:59:29 -04:00
pty_windows.go executors: implement streaming exec 2019-05-10 19:17:14 -04:00
resource_container_default.go
resource_container_linux.go resource_container_linux new getAllPidsByCgroup 2019-07-17 17:31:36 -04:00
server.go client: support no_pivot_root in exec driver configuration 2020-02-18 09:27:16 -08:00
utils.go Use init to handle plugin invocation 2019-06-13 16:48:01 -04:00
utils_unix.go
utils_windows.go
z_executor_cmd.go comment on use of init() for plugin handlers 2019-06-18 20:54:55 -04:00