Project: mesos
Issue MESOS-4053: MemoryPressureMesosTest tests fail on CentOS 6.6
{{MemoryPressureMesosTest.CGROUPS_ROOT_Statistics}} and {{MemoryPressureMesosTest.CGROUPS_ROOT_SlaveRecovery}} fail on CentOS 6.6. It seems that mounted cgroups are not properly cleaned up after previous tests, so multiple hierarchies are detected and thus an error is produced: {code} [ RUN ] MemoryPressureMesosTest.CGROUPS_ROOT_Statistics ../../src/tests/mesos.cpp:849: Failure Value of: _baseHierarchy.get() Actual: "/cgroup" Expected: baseHierarchy Which is: "/tmp/mesos_test_cgroup" ------------------------------------------------------------- Multiple cgroups base hierarchies detected: '/tmp/mesos_test_cgroup' '/cgroup' Mesos does not support multiple cgroups base hierarchies. Please unmount the corresponding (or all) subsystems. ------------------------------------------------------------- ../../src/tests/mesos.cpp:932: Failure (cgroups::destroy(hierarchy, cgroup)).failure(): Failed to remove cgroup '/tmp/mesos_test_cgroup/perf_event/mesos_test': Device or resource busy [ FAILED ] MemoryPressureMesosTest.CGROUPS_ROOT_Statistics (12 ms) [ RUN ] MemoryPressureMesosTest.CGROUPS_ROOT_SlaveRecovery ../../src/tests/mesos.cpp:849: Failure Value of: _baseHierarchy.get() Actual: "/cgroup" Expected: baseHierarchy Which is: "/tmp/mesos_test_cgroup" ------------------------------------------------------------- Multiple cgroups base hierarchies detected: '/tmp/mesos_test_cgroup' '/cgroup' Mesos does not support multiple cgroups base hierarchies. Please unmount the corresponding (or all) subsystems. ------------------------------------------------------------- ../../src/tests/mesos.cpp:932: Failure (cgroups::destroy(hierarchy, cgroup)).failure(): Failed to remove cgroup '/tmp/mesos_test_cgroup/perf_event/mesos_test': Device or resource busy [ FAILED ] MemoryPressureMesosTest.CGROUPS_ROOT_SlaveRecovery (7 ms) {code}
Story points: 3