open-nomad/drivers/shared/executor
Mahmood Ali f7608c4cef exec: use an independent name=systemd cgroup path
We aim for containers to be part of a new cgroups hierarchy independent
from nomad agent.  However, we've been setting a relative path as
libcontainer `cfg.Cgroups.Path`, which makes libcontainer concatinate
the executor process cgroup with passed cgroup, as set in [1].

By setting an absolute path, we ensure that all cgroups subsystem
(including `name=systemd` get a dedicated one).  This matches behavior
in Nomad 0.8, and behavior of how Docker and OCI sets CgroupsPath[2]

Fixes #5736

[1] d7edf9b2e4/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs/apply_raw.go (L326-L340)
[2] 238f8eaa31/vendor/github.com/containerd/containerd/oci/spec.go (L229)
2019-06-10 22:00:12 -04:00
..
proto executor: scaffolding for executor grpc handling 2019-05-10 19:17:14 -04:00
test-resources/busybox tests: busybox only depends on arch 2019-01-07 08:36:32 -05:00
client.go executor: scaffolding for executor grpc handling 2019-05-10 19:17:14 -04:00
exec_utils.go use pty/tty terminology similar to github.com/kr/pty 2019-05-10 19:17:14 -04:00
executor.go Merge pull request #5649 from hashicorp/b-lookup-exe-chroot 2019-05-17 15:07:41 -04:00
executor_basic.go executor: fix broken non-linux build 2018-12-06 21:33:20 -05:00
executor_linux.go exec: use an independent name=systemd cgroup path 2019-06-10 22:00:12 -04:00
executor_linux_test.go exec: use an independent name=systemd cgroup path 2019-06-10 22:00:12 -04:00
executor_plugin.go goimports 2019-01-22 15:44:31 -08:00
executor_test.go tests: Fix binary dir permissions 2019-05-24 11:31:12 -04:00
executor_universal_linux.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
executor_unix.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
executor_windows.go Plugins use parent loggers 2019-01-11 11:36:37 -08:00
legacy_executor_wrapper.go drivers/docker: handle shutdown of upgraded tasks correctly 2019-01-24 14:21:59 -05:00
libcontainer_nsenter_linux.go comment on using init() for libcontainer handling 2019-04-19 09:49:04 -04:00
pid_collector.go drivers: re-export ResourceUsage structs 2019-01-08 09:11:47 -05:00
pid_collector_test.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
plugins.go driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
pty_unix.go executors: implement streaming exec 2019-05-10 19:17:14 -04:00
pty_windows.go executors: implement streaming exec 2019-05-10 19:17:14 -04:00
resource_container_default.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
resource_container_linux.go drivers: Move client/drivers/executor to drivers/shared/executor 2018-11-30 10:46:13 +01:00
server.go executor: scaffolding for executor grpc handling 2019-05-10 19:17:14 -04:00
utils.go driver: add pre09 migration logic 2019-01-18 18:31:01 -05:00
utils_unix.go executor: merge plugin shim with executor package 2018-12-06 21:13:45 -05:00
utils_windows.go executor: merge plugin shim with executor package 2018-12-06 21:13:45 -05:00