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

Mounting /etc/xxx files in CNI for command tasks has race condition.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      This is because there's no ordering between the execution of the 'isolate()' method of the CNI isolator and the execution of the preparation scripts in ContainerLaunchInfo.

      For command tasks, currently, we do a recursive bind mount (<rootfs> -> <sandbox>/.rootfs) in the preparation script returned by the linux filesystem isolator (same as other volumes). The command executor will then pivot_root into <sandbox>/.rootfs.

      As a result, depending on the timing. the /etc/xxx files mounted at <rootfs>/etc/xxx might or might not be present in the rootfs for command tasks.

      Attachments

        Issue Links

          Activity

            People

              jieyu Jie Yu
              jieyu Jie Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: