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

Mesos agent will be wrongly treated as unknown orphaned container if `--cgroups_root` has a leading slash

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • agent, containerization
    • None

    Description

      When agent is started with the following flags:

      • --cgroups_root=<a value with a leading slash>, e.g., /mesos.
      • --agent_subsystems=<some cgroups subsystems>, e.g., memory.
      • --isolation=<some cgroups subsystems which contain the ones specified in --agent_subsystems>, e.g., cgroups/cpu,cgroups/mem.

      we will see the agent will be treated as an unknown orphaned container:

      I0716 14:55:59.969400 3892 containerizer.cpp:718] Recovering Mesos containers
      I0716 14:55:59.970304 3888 linux_launcher.cpp:299] Recovering Linux launcher
      I0716 14:55:59.973687 3894 containerizer.cpp:1025] Recovering isolators
      W0716 14:55:59.978680 3891 cgroups.cpp:352] Couldn't find the cgroup '/mesos/slave' in hierarchy '/sys/fs/cgroup/cpu,cpuacct' for container slave
      I0716 14:55:59.981603 3892 memory.cpp:478] Started listening for OOM events for container slave
      I0716 14:55:59.983178 3892 memory.cpp:590] Started listening on 'low' memory pressure events for container slave
      I0716 14:55:59.985761 3892 memory.cpp:590] Started listening on 'medium' memory pressure events for container slave
      I0716 14:55:59.987036 3892 memory.cpp:590] Started listening on 'critical' memory pressure events for container slave
      I0716 14:55:59.988668 3893 cgroups.cpp:320] Cleaning up unknown orphaned container slave

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            qianzhang Qian Zhang

            Dates

              Created:
              Updated:

              Slack

                Issue deployment