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/14 21:49:51 UTC
[1/2] mesos git commit: Preventing agent recovery failing from
unsuccessful `docker rm`.
Repository: mesos
Updated Branches:
refs/heads/1.1.x 5c40c9cac -> d2c3167ff
Preventing agent recovery failing from unsuccessful `docker rm`.
This patch changes the semancits of `Docker::stop()` to do a best-effort
`docker rm` and log the error instead of returning the failure, as a
workaround of the mount namespace leakage issue in Docker 1.12/1.13.
Review: https://reviews.apache.org/r/60879/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/91d70761
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/91d70761
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/91d70761
Branch: refs/heads/1.1.x
Commit: 91d707610173508d6fba48c33de0ed56e65218f5
Parents: 5c40c9c
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
Authored: Fri Jul 14 13:57:24 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Fri Jul 14 14:46:49 2017 -0700
----------------------------------------------------------------------
src/docker/docker.cpp | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/91d70761/src/docker/docker.cpp
----------------------------------------------------------------------
diff --git a/src/docker/docker.cpp b/src/docker/docker.cpp
index 4e4e347..b355880 100755
--- a/src/docker/docker.cpp
+++ b/src/docker/docker.cpp
@@ -843,7 +843,10 @@ Future<Option<int>> Docker::run(
return s->status();
}
-
+// NOTE: A known issue in Docker 1.12/1.13 sometimes leaks its mount
+// namespace, causing `docker rm` to fail. As a workaround, we do a
+// best-effort `docker rm` and log the error insteaf of return a
+// failure when `remove` is set to true (MESOS-7777).
Future<Nothing> Docker::stop(
const string& containerName,
const Duration& timeout,
@@ -891,7 +894,12 @@ Future<Nothing> Docker::_stop(
if (remove) {
bool force = !status.isSome() || status.get() != 0;
- return docker.rm(containerName, force);
+ return docker.rm(containerName, force)
+ .repair([=](const Future<Nothing>& future) {
+ LOG(ERROR) << "Unable to remove Docker container '"
+ << containerName + "': " << future.failure();
+ return Nothing();
+ });
}
return checkError(cmd, s);
[2/2] mesos git commit: Added MESOS-7777 to 1.1.3 CHANGELOG.
Posted by ji...@apache.org.
Added MESOS-7777 to 1.1.3 CHANGELOG.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d2c3167f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d2c3167f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d2c3167f
Branch: refs/heads/1.1.x
Commit: d2c3167fff33c6e38487c7f6173a43515ad84545
Parents: 91d7076
Author: Jie Yu <yu...@gmail.com>
Authored: Fri Jul 14 14:47:44 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Fri Jul 14 14:49:46 2017 -0700
----------------------------------------------------------------------
CHANGELOG | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/d2c3167f/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 32109a3..7791234 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -11,6 +11,7 @@ All Issues:
* [MESOS-7581] - Fix interference of external Boost installations when using some unbundled dependencies.
* [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.
Release Notes - Mesos - Version 1.1.2