You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Avinash Sridharan (JIRA)" <ji...@apache.org> on 2016/07/13 16:29:20 UTC

[jira] [Commented] (MESOS-5840) Mesos claims an IP belongs to the overlay network, even though it doesn't.

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

Avinash Sridharan commented on MESOS-5840:
------------------------------------------

The DC/OS overlay is a docker `USER` network. For using the overlay, you need to set the `DockerContainerizer` networking mode to `USER`. From the description it looks like you have set it to `BRIDGE` because of which the default docker bridge network is being used. That's the reason we are seeing the docker bridge IP in `ContainerStatus`.

Maybe we need a separate JIRA to make sure that we throw an ERROR/WARNING when we see the `NetworkInfo` populated when the network mode is not set to "USER".

> Mesos claims an IP belongs to the overlay network, even though it doesn't.
> --------------------------------------------------------------------------
>
>                 Key: MESOS-5840
>                 URL: https://issues.apache.org/jira/browse/MESOS-5840
>             Project: Mesos
>          Issue Type: Bug
>          Components: network
>            Reporter: Gastón Kleiman
>              Labels: mesosphere
>
> Using DC/OS' IPAM module, we attempted to launch a Docker task using {{BRIDGE}} networking, while also requesting an IP in an overlay network through the {{NetworkInfo}} message.
> The IP subnet for that overlay network is {{192.168.0.0/17}}, but the the IP in {{TaskStatus}} is the private Docker {{BRIDGE}} IP: {{172.17.0.3}}.
> It is confusing/inconsistent that {{TaskStatus.NetworkInfo\[0\].name}} is still {{overlay-network}}, but the IP is not in the right subnet.
> {code}
> {
>   "id": "bridge.bfdf8491-48f6-11e6-abde-06f05fb76c9f",
>   "name": "bridge",
>   "slave_id": "09d73fd0-3413-4934-8657-be2a29f2361a-S0",
>   "state": "TASK_RUNNING",
>   [...]
>   "statuses": [
>     {
>       "state": "TASK_RUNNING",
>       "timestamp": 1468413530.91615,
>       "labels": [
>         {
>           "key": "Docker.NetworkSettings.IPAddress",
>           "value": "172.17.0.3"
>         }
>       ],
>       "container_status": {
>         "network_infos": [
>           {
>             "labels": [],
>             "ip_addresses": [
>               {
>                 "ip_address": "172.17.0.3" // this is the Docker Bridge interface private IP
>               }
>             ],
>             "name": "overlay-network"
>           }
>         ]
>       }
>     }
>   ],
>   "container": {
>     "type": "DOCKER",
>     "docker": {
>       "image": "busybox",
>       "network": "BRIDGE",
>       "privileged": false,
>       "force_pull_image": false
>     },
>     "network_infos": [
>       {
>         "ip_addresses": [
>           {}
>         ],
>         "name": "overlay-network",
>         "labels": {}
>       }
>     ]
>   }
> }
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)