[ 
https://issues.apache.org/jira/browse/MESOS-7486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003643#comment-16003643
 ] 

Jie Yu commented on MESOS-7486:
-------------------------------

The problematic code is here:
https://github.com/apache/mesos/blob/72752fc6deb8ebcbfbd5448dc599ef3774339d31/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp#L1722-L1725

We should skip the loading if both flags are not set.

> Agent crashes when CNI plugin flags aren't set but CNI is attempted to be used
> ------------------------------------------------------------------------------
>
>                 Key: MESOS-7486
>                 URL: https://issues.apache.org/jira/browse/MESOS-7486
>             Project: Mesos
>          Issue Type: Bug
>          Components: network
>    Affects Versions: 1.2.0
>         Environment: CoreOS
>            Reporter: tim hansen
>            Priority: Minor
>
> https://github.com/apache/mesos/blob/72752fc6deb8ebcbfbd5448dc599ef3774339d31/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp#L1722-L1725
> Mesos-agent will fail if the CNI plugin flags are not set for the agent;
> e.g. : 
> MESOS_NETWORK_CNI_CONFIG_DIR=/etc/cni/net.d"
> MESOS_NETWORK_CNI_PLUGINS_DIR=/etc/cni/net.d"



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to