[jira] [Commented] (MESOS-4922) Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in network/cni isolator.
[ https://issues.apache.org/jira/browse/MESOS-4922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15241442#comment-15241442 ] Jie Yu commented on MESOS-4922: --- commit 3f745624c6e98a31050531324da444298ae9a66a Author: Avinash sridharanDate: Thu Apr 14 09:14:34 2016 -0700 Added CNI helper subcommand to `mesos-containerizer`. This will be used by the `network/cni` isolator to setup hostname and various network files within the container UTS and mnt namespace. Review: https://reviews.apache.org/r/45955/ > Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in > network/cni isolator. > --- > > Key: MESOS-4922 > URL: https://issues.apache.org/jira/browse/MESOS-4922 > Project: Mesos > Issue Type: Bug > Components: isolation >Reporter: Qian Zhang >Assignee: Avinash Sridharan > Labels: mesosphere > Fix For: 0.29.0 > > > The network/cni isolator needs to properly setup /etc/hostname and /etc/hosts > for the container with a hostname (e.g., randomly generated) and the assigned > IP returned by CNI plugin. > We should consider the following cases: > 1) container is using host filesystem > 2) container is using a different filesystem > 3) custom executor and command executor -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-4922) Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in network/cni isolator.
[ https://issues.apache.org/jira/browse/MESOS-4922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15240328#comment-15240328 ] Jie Yu commented on MESOS-4922: --- commit 0845ec04395faeb05a518a81c89c87b726dc8711 Author: Avinash sridharanDate: Wed Apr 13 17:15:21 2016 -0700 Added the `_isolate` method. Once the `isolate` is successful, the `_isolate` method calls out the `mesos-cni-helper` to setup the /etc/hosts, /etc/hostname and /etc/resolv.conf for the container. Review: https://reviews.apache.org/r/45956/ > Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in > network/cni isolator. > --- > > Key: MESOS-4922 > URL: https://issues.apache.org/jira/browse/MESOS-4922 > Project: Mesos > Issue Type: Bug > Components: isolation >Reporter: Qian Zhang >Assignee: Avinash Sridharan > Labels: mesosphere > > The network/cni isolator needs to properly setup /etc/hostname and /etc/hosts > for the container with a hostname (e.g., randomly generated) and the assigned > IP returned by CNI plugin. > We should consider the following cases: > 1) container is using host filesystem > 2) container is using a different filesystem > 3) custom executor and command executor -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-4922) Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in network/cni isolator.
[ https://issues.apache.org/jira/browse/MESOS-4922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15237726#comment-15237726 ] Jie Yu commented on MESOS-4922: --- commit 2d75778557d3d29291c4ec98d00d6784010be769 Author: Avinash sridharanDate: Tue Apr 12 09:02:39 2016 -0700 Added `subcommand` to `network/cni` isolator. The `subcommand` allow configuring the container hostname and setting up network files in the container such as /etc/hosts, /etc/hostname, /etc/resolv.conf. This will allow for correct name to IP resolution within the container network namespace. Review: https://reviews.apache.org/r/45954/ > Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in > network/cni isolator. > --- > > Key: MESOS-4922 > URL: https://issues.apache.org/jira/browse/MESOS-4922 > Project: Mesos > Issue Type: Bug > Components: isolation >Reporter: Qian Zhang >Assignee: Avinash Sridharan > Labels: mesosphere > > The network/cni isolator needs to properly setup /etc/hostname and /etc/hosts > for the container with a hostname (e.g., randomly generated) and the assigned > IP returned by CNI plugin. > We should consider the following cases: > 1) container is using host filesystem > 2) container is using a different filesystem > 3) custom executor and command executor -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-4922) Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in network/cni isolator.
[ https://issues.apache.org/jira/browse/MESOS-4922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15235468#comment-15235468 ] Jie Yu commented on MESOS-4922: --- commit 00141e4a56a81525fec1f86f2b212dcbc04e3a8c Author: Avinash sridharanDate: Mon Apr 11 09:51:16 2016 -0700 Adding a stout interface for `sethostname` system call in linux. Review: https://reviews.apache.org/r/45953/ > Setup proper /etc/hostname, /etc/hosts and /etc/resolv.conf for containers in > network/cni isolator. > --- > > Key: MESOS-4922 > URL: https://issues.apache.org/jira/browse/MESOS-4922 > Project: Mesos > Issue Type: Bug > Components: isolation >Reporter: Qian Zhang >Assignee: Avinash Sridharan > Labels: mesosphere > > The network/cni isolator needs to properly setup /etc/hostname and /etc/hosts > for the container with a hostname (e.g., randomly generated) and the assigned > IP returned by CNI plugin. > We should consider the following cases: > 1) container is using host filesystem > 2) container is using a different filesystem > 3) custom executor and command executor -- This message was sent by Atlassian JIRA (v6.3.4#6332)