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

Network portmapping isolator disable IPv6 failed

Details

    Description

      We observed this error in our environment:
      1. enable --isolation=network/port_mapping for mesos 0.28.0 on CentOS7.2 with kernel version: 3.10.0-327.10.1.el7.x86_64
      2. create simple application on marathon framework with commands such as "echo hello"
      3. mesos executor failed with error logs in sandbox stderr file:

      + mount --make-rslave /var/run/netns
      + echo 1
      sh: line 3: /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directory Failed to execute a preparation shell command

      The reason is that we should do some ipv6 check in isolators/network/port_mapping.cpp:PortMappingIsolatorProcess::scripts(), if ipv6 module is not loaded while kernel booting(such as in CentOS7/RHEL7), we don't need to disable ipv6 anymore.

      Attachments

        Activity

          haosdent@gmail.com haosdent added a comment - Patch: https://reviews.apache.org/r/47633/
          jieyu Jie Yu added a comment -

          commit eb805f0e6a2f53d77b56b913461c340531b4c7ee
          Author: Zhengju Sha <handai.szj@gmail.com>
          Date: Fri May 27 16:33:46 2016 -0700

          Checked if IPv6 module was loaded before disabling it.

          Review: https://reviews.apache.org/r/47633/

          jieyu Jie Yu added a comment - commit eb805f0e6a2f53d77b56b913461c340531b4c7ee Author: Zhengju Sha <handai.szj@gmail.com> Date: Fri May 27 16:33:46 2016 -0700 Checked if IPv6 module was loaded before disabling it. Review: https://reviews.apache.org/r/47633/

          People

            shazj Sha Zhengju (Inactive)
            shazj Sha Zhengju (Inactive)
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: