You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/08/16 03:31:38 UTC

[6/7] git commit: Allow external isolator flag to be backward compatible.

Allow external isolator flag to be backward compatible.

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


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

Branch: refs/heads/master
Commit: 26b504265c36d5c61acd7d0dfc401a5e6092675e
Parents: 9ce30e3
Author: Timothy Chen <tn...@apache.org>
Authored: Fri Aug 15 15:28:36 2014 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Fri Aug 15 18:22:02 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/26b50426/src/slave/containerizer/containerizer.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/containerizer.cpp b/src/slave/containerizer/containerizer.cpp
index 0a262ee..0e68684 100644
--- a/src/slave/containerizer/containerizer.cpp
+++ b/src/slave/containerizer/containerizer.cpp
@@ -155,6 +155,13 @@ Try<Resources> Containerizer::resources(const Flags& flags)
 
 Try<Containerizer*> Containerizer::create(const Flags& flags, bool local)
 {
+  if (flags.isolation == "external") {
+    LOG(WARNING) << "The 'external' isolation flag is deprecated, "
+                 << "please update your flags to"
+                 << " '--containerizers=external'.";
+    return ExternalContainerizer::create(flags, local);
+  }
+
   // TODO(benh): We need to store which containerizer or
   // containerizers were being used. See MESOS-1663.