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 <[email protected]> Authored: Fri Aug 15 15:28:36 2014 -0700 Committer: Benjamin Hindman <[email protected]> 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.
