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

`prepareMounts` in Mesos containerizer is flaky.

    XMLWordPrintableJSON

Details

    Description

      The prepareMount() function in src/slave/containerizer/mesos/launch.cpp sometimes fails with the following error:

      Failed to prepare mounts: Failed to mark '/home/docker/containers/af78db6ebc1aff572e576b773d1378121a66bb755ed63b3278e759907e5fe7b6/shm' as slave: Invalid argument
      

      The error message comes from https://github.com/apache/mesos/blob/1.5.x/src/slave/containerizer/mesos/launch.cpp#L#L326.

      Although it does not happen frequently, it can be reproduced by running tests that need to clone mount namespaces in repetition. For example, I just reproduced the bug with the following command after 17 minutes:

      sudo bin/mesos-tests.sh --gtest_filter='*ROOT_PublishResourcesRecovery' --gtest_break_on_failure --gtest_repeat=-1 --verbose
      

      No that in this example, the test itself does not involve any docker image or docker containerizer.

      Attachments

        Activity

          People

            gilbert Gilbert Song
            chhsia0 Chun-Hung Hsiao
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: