You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/10/05 21:54:44 UTC

[1/3] mesos git commit: Added `pre_exec_command` for top level containers to bring up loopback.

Repository: mesos
Updated Branches:
  refs/heads/1.0.x c76daaddb -> 63c2ece2f


Added `pre_exec_command` for top level containers to bring up loopback.

For new network namespaces, pods expect the loop back interface to be
up and the `localhost` to point to this loopback. The loopback
interface is created when a new network namespace is created it is not
brought up. Hence, when a new network namespace is created we
associate a `pre_exec_command` with the container creating this new
network namespace to bring up the loopback. Currently the
`pre_exec_command` is set to "ifconfig lo up".

Review: https://reviews.apache.org/r/52375/

*** Modified for 1.0.x ***


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/588cb989
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/588cb989
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/588cb989

Branch: refs/heads/1.0.x
Commit: 588cb989669c2e95db4aefc98d27d81f0611a96c
Parents: c76daad
Author: Avinash sridharan <av...@mesosphere.io>
Authored: Wed Sep 28 18:24:45 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Oct 5 14:47:39 2016 -0700

----------------------------------------------------------------------
 src/slave/containerizer/mesos/isolators/network/cni/cni.cpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/588cb989/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp b/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
index 760d32b..d4afdd0 100644
--- a/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
+++ b/src/slave/containerizer/mesos/isolators/network/cni/cni.cpp
@@ -634,6 +634,11 @@ Future<Option<ContainerLaunchInfo>> NetworkCniIsolatorProcess::prepare(
       launchInfo.set_namespaces(CLONE_NEWNS | CLONE_NEWUTS);
     } else {
       launchInfo.set_namespaces(CLONE_NEWNET | CLONE_NEWNS | CLONE_NEWUTS);
+
+      // This is a top-level container joining a new network
+      // namespace. Hence, set up `pre_exec_command` to bring up the
+      // loopback interface.
+      launchInfo.add_pre_exec_commands()->set_value("ifconfig lo up");
     }
 
     return launchInfo;


[2/3] mesos git commit: Fixed some formatting issue in CHANGELOG.

Posted by ji...@apache.org.
Fixed some formatting issue in CHANGELOG.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e1edf3b8
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e1edf3b8
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e1edf3b8

Branch: refs/heads/1.0.x
Commit: e1edf3b8fa7877c260a91e052063d97d78041362
Parents: 588cb98
Author: Jie Yu <yu...@gmail.com>
Authored: Wed Oct 5 14:34:36 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Oct 5 14:48:52 2016 -0700

----------------------------------------------------------------------
 CHANGELOG | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e1edf3b8/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index ae4d1e9..686341b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -11,15 +11,13 @@ All Issues:
     * [MESOS-6104] - Potential FD double close in libevent's implementation of `sendfile`.
     * [MESOS-6152] - Resource leak in libevent_ssl_socket.cpp.
     * [MESOS-6235] - Add 'os::spawn', 'argv' variant of 'os::system'.
-    * [MESOS-6245] - Driver based schedulers using explicit acknowledgements
-      cannot acknowledge updates from HTTP based executors.
+    * [MESOS-6245] - Driver based schedulers using explicit acknowledgements cannot acknowledge updates from HTTP based executors.
     * [MESOS-6233] - Master CHECK fails during recovery while relinking to other masters.
     * [MESOS-6234] - Potential socket leak during Zookeeper network changes.
     * [MESOS-6246] - Libprocess links will not generate an ExitedEvent if the socket creation fails.
     * [MESOS-6299] - Master doesn't remove task from pending when it is invalid.
     * [MESOS-6026] - Tasks mistakenly marked as FAILED due to race b/w sendExecutorTerminatedStatusUpdate() and _statusUpdate().
-    * [MESOS-6274] - Agent should not allow HTTP based executors to subscribe
-      before containerizer recovery is done.
+    * [MESOS-6274] - Agent should not allow HTTP based executors to subscribe before containerizer recovery is done.
 
 
 Release Notes - Mesos - Version 1.0.1


[3/3] mesos git commit: Added MESOS-6269 to 1.0.2 CHANGELOG.

Posted by ji...@apache.org.
Added MESOS-6269 to 1.0.2 CHANGELOG.

Review: https://reviews.apache.org/r/52576


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/63c2ece2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/63c2ece2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/63c2ece2

Branch: refs/heads/1.0.x
Commit: 63c2ece2fa73680698f566c709f5aded9b9d6856
Parents: e1edf3b
Author: Jie Yu <yu...@gmail.com>
Authored: Wed Oct 5 14:35:40 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Oct 5 14:48:52 2016 -0700

----------------------------------------------------------------------
 CHANGELOG | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/63c2ece2/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 686341b..8aa2ab1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -17,6 +17,7 @@ All Issues:
     * [MESOS-6246] - Libprocess links will not generate an ExitedEvent if the socket creation fails.
     * [MESOS-6299] - Master doesn't remove task from pending when it is invalid.
     * [MESOS-6026] - Tasks mistakenly marked as FAILED due to race b/w sendExecutorTerminatedStatusUpdate() and _statusUpdate().
+    * [MESOS-6269] - CNI isolator doesn't activate loopback interface.
     * [MESOS-6274] - Agent should not allow HTTP based executors to subscribe before containerizer recovery is done.