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

Handle cgroups v2 hierarchy when parsing /proc/self/cgroups.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.3, 1.3.2, 1.4.1, 1.5.0
    • 1.2.3, 1.3.2, 1.4.1, 1.5.0
    • None
    • None
    • Mesosphere Sprint 63
    • 1

    Description

      Cgroups v2 hierarchies don't list the "controllers" field (e.g., "0::/user.slice/user-1000.slice/session-5.scope) is empty [1] and hence the cgroup parser failes. We should simply skip over fields with empty controller field.

      [ RUN      ] CgroupsAnyHierarchyTest.ROOT_CGROUPS_Read
      ../../src/tests/containerizer/cgroups_tests.cpp:464: Failure
      cgroup: Unexpected format in /proc/20668/cgroup
      [  FAILED  ] CgroupsAnyHierarchyTest.ROOT_CGROUPS_Read (8 ms)
      

      [1] See 6-2 in https://www.kernel.org/doc/Documentation/cgroup-v2.txt

      Attachments

        Activity

          People

            karya Kapil Arya
            karya Kapil Arya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: