Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
CentOS7
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.
Patch: https://reviews.apache.org/r/47633/