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 2017/07/19 21:26:14 UTC

[1/2] mesos git commit: Set the `LIBPROCESS_IP` env variable before starting the fetcher.

Repository: mesos
Updated Branches:
  refs/heads/1.3.x 336306209 -> bef61dd5b


Set the `LIBPROCESS_IP` env variable before starting the fetcher.

This patch updates the containerizer to manually set the `LIBPROCESS_IP`
environment variable to `127.0.0.1` when launching the fetcher POSIX
process.

This environment variable is needed so that libprocess can be
initialized without depending on an external environment.

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


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

Branch: refs/heads/1.3.x
Commit: e91b9acad6fb364f310b44176f9c4b0f6b9ae32e
Parents: 3363062
Author: Gastón Kleiman <ga...@mesosphere.io>
Authored: Wed Jul 19 14:13:17 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Jul 19 14:20:40 2017 -0700

----------------------------------------------------------------------
 src/slave/containerizer/fetcher.cpp | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e91b9aca/src/slave/containerizer/fetcher.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/fetcher.cpp b/src/slave/containerizer/fetcher.cpp
index a910fea..770e1e6 100644
--- a/src/slave/containerizer/fetcher.cpp
+++ b/src/slave/containerizer/fetcher.cpp
@@ -854,6 +854,13 @@ Future<Nothing> FetcherProcess::run(
     environment["HADOOP_HOME"] = flags.hadoop_home;
   }
 
+  // TODO(jieyu): This is to make sure the libprocess of the fetcher
+  // can properly initialize and find the IP. Since we don't need to
+  // use the TCP socket for communication, it's OK to use a local
+  // address. Consider disable TCP socket in libprocess if libprocess
+  // supports that.
+  environment.emplace("LIBPROCESS_IP", "127.0.0.1");
+
   VLOG(1) << "Fetching URIs using command '" << command << "'";
 
   Try<Subprocess> fetcherSubprocess = subprocess(


[2/2] mesos git commit: Added MESOS-7796 to 1.3.1 CHANGELOG.

Posted by ji...@apache.org.
Added MESOS-7796 to 1.3.1 CHANGELOG.


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

Branch: refs/heads/1.3.x
Commit: bef61dd5b4b0aebbf35b64cc5002a40c88fbe273
Parents: e91b9ac
Author: Jie Yu <yu...@gmail.com>
Authored: Wed Jul 19 14:24:05 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Jul 19 14:26:12 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/bef61dd5/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index b089afb..c717ec4 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -15,6 +15,7 @@ All Issues:
   * [MESOS-7703] - Mesos fails to exec a custom executor when no shell is used.
   * [MESOS-7770] - Persistent volume might not be mounted if there is a sandbox volume whose source is the same as the target of the persistent volume.
   * [MESOS-7777] - Agent failed to recover due to mount namespace leakage in Docker 1.12/1.13.
+  * [MESOS-7796] - LIBPROCESS_IP isn't passed on to the fetcher.
 
 
 Release Notes - Mesos - Version 1.3.0