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

Mount devpts with compatible defaults.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • containerization
    • None

    Description

      The Mesos containerizer mounts devpts with the following options:

      newinstance,ptmxmode=0666
      

      Some versions of glibc (e.g. 2.17 from CentOS 7) are hard-coded to expect that terminal devices are owned by the tty group, so this causes containers that allocate TTYs to expect to have to chown the TTY (see grantpt code in glibc).

      Docker uses the following devpts default:

      Options:     []string{"nosuid", "noexec", "newinstance", "ptmxmode=0666", "mode=0620", "gid=5"},
      

      I can think of a number of options

      1. hard-code the "gid=5" option
      2. look up the "tty" group from the host
      3. propagate the devpts mount options from the host
      4. look up the "tty" group from the container
      5. make it the operator's problem (i.e. add configuration)

      Attachments

        Activity

          People

            jamespeach James Peach
            jamespeach James Peach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: