Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6422

cgroups_tests not correctly tearing down testing hierarchies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • containerization

    Description

      We currently do the following in CgroupsTest::TearDownTestCase()

      static void TearDownTestCase()
      {
        AWAIT_READY(cgroups::cleanup(TEST_CGROUPS_HIERARCHY));
      }
      

      One of its derived test CgroupsNoHierarchyTest treats TEST_CGROUPS_HIERARCHY as a hierarchy so it's able to clean it up as a hierarchy.

      However another derived test CgroupsAnyHierarchyTest would create new hierarchies (if none is available) using TEST_CGROUPS_HIERARCHY as a parent directory (i.e., base hierarchy) and not as a hierarchy, so when it's time to clean up, it fails:

      [       OK ] CgroupsAnyHierarchyTest.ROOT_CGROUPS_Subsystems (1 ms)
      ../../src/tests/containerizer/cgroups_tests.cpp:88: Failure
      (cgroups::cleanup(TEST_CGROUPS_HIERARCHY)).failure(): Operation not permitted
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            xujyan Yan Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: