You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Chris Carey (JIRA)" <ji...@apache.org> on 2015/01/19 23:50:35 UTC
[jira] [Comment Edited] (MESOS-2151) Failed to set the MAC address
of lo: Operation not supported
[ https://issues.apache.org/jira/browse/MESOS-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283113#comment-14283113 ]
Chris Carey edited comment on MESOS-2151 at 1/19/15 10:49 PM:
--------------------------------------------------------------
I'm having the same issue. I checked the Mesos source code and a kernel patch is also required. This must be the four kernel patches mentioned on this page: http://mesos.apache.org/documentation/latest/network-monitoring/
Mesos source code:
// Set the MAC address of the host loopback interface (lo) so that
// it matches that of the host public interface (eth0). A fairly
// recent kernel patch is needed for this operation to succeed:
// https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/:
// 25f929fbff0d1bcebf2e92656d33025cd330cbf8
Try<bool> setHostLoMAC = link::setMAC(lo.get(), hostMAC.get());
if (setHostLoMAC.isError()) {
return Error(
"Failed to set the MAC address of " + lo.get() +
": " + setHostLoMAC.error());
}
was (Author: chriscareycode):
I'm having the same issue. I checked the Mesos source code and it's clear that a kernel patch is also required. This needs to be added to the Mesos document http://mesos.apache.org/documentation/latest/network-monitoring/
Mesos source code:
// Set the MAC address of the host loopback interface (lo) so that
// it matches that of the host public interface (eth0). A fairly
// recent kernel patch is needed for this operation to succeed:
// https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/:
// 25f929fbff0d1bcebf2e92656d33025cd330cbf8
Try<bool> setHostLoMAC = link::setMAC(lo.get(), hostMAC.get());
if (setHostLoMAC.isError()) {
return Error(
"Failed to set the MAC address of " + lo.get() +
": " + setHostLoMAC.error());
}
> Failed to set the MAC address of lo: Operation not supported
> ------------------------------------------------------------
>
> Key: MESOS-2151
> URL: https://issues.apache.org/jira/browse/MESOS-2151
> Project: Mesos
> Issue Type: Bug
> Components: isolation
> Affects Versions: 0.21.0
> Environment: kernel:3.10.5-12.1.x86_64
> os: CentOS release 6.3 (Final)
> Reporter: Ji Huang
>
> if I enable network/port_mapping isolator, slave will be get this error when start it.
> I1124 11:50:22.300797 27879 logging.cpp:172] INFO level logging started!
> I1124 11:50:22.301010 27879 main.cpp:142] Build: 2014-11-22 00:24:52 by root
> I1124 11:50:22.301029 27879 main.cpp:144] Version: 0.21.0
> I1124 11:50:22.402724 27879 containerizer.cpp:100] Using isolation: cgroups/cpu,cgroups/mem,network/port_mapping
> I1124 11:50:22.419842 27879 port_mapping.cpp:890] Using eth0 as the public interface
> I1124 11:50:22.420600 27879 port_mapping.cpp:915] Using lo as the loopback interface
> Failed to create a containerizer: Could not create MesosContainerizer: Could not create isolator network/port_mapping: Failed to set the MAC address of lo: Operation not supported
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)