You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2017/03/13 18:16:10 UTC

[3/7] mesos git commit: Introduced proto changes needed for the RemoveNestedContainer API call.

Introduced proto changes needed for the RemoveNestedContainer API call.

This new Agent API call will make it possible to destroy the sandbox and
runtime directories of a terminated nested container.

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


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

Branch: refs/heads/master
Commit: c1963898e07180531b3a2d5fced182ddb3239854
Parents: cbc88cf
Author: Gast�n Kleiman <ga...@mesosphere.io>
Authored: Mon Mar 13 18:22:37 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Mar 13 19:15:40 2017 +0100

----------------------------------------------------------------------
 include/mesos/agent/agent.proto    | 9 ++++++++-
 include/mesos/v1/agent/agent.proto | 8 ++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c1963898/include/mesos/agent/agent.proto
----------------------------------------------------------------------
diff --git a/include/mesos/agent/agent.proto b/include/mesos/agent/agent.proto
index 9149724..9bac954 100644
--- a/include/mesos/agent/agent.proto
+++ b/include/mesos/agent/agent.proto
@@ -62,13 +62,13 @@ message Call {
     LAUNCH_NESTED_CONTAINER = 14;  // See 'LaunchNestedContainer' below.
     WAIT_NESTED_CONTAINER = 15;    // See 'WaitNestedContainer' below.
     KILL_NESTED_CONTAINER = 16;    // See 'KillNestedContainer' below.
+    REMOVE_NESTED_CONTAINER = 21;  // See 'RemoveNestedContainer' below.
 
     // See 'LaunchNestedContainerSession' below.
     LAUNCH_NESTED_CONTAINER_SESSION = 17;
 
     ATTACH_CONTAINER_INPUT = 18; // See 'AttachContainerInput' below.
     ATTACH_CONTAINER_OUTPUT = 19; // see 'AttachContainerOutput' below.
-
   }
 
   // Provides a snapshot of the current metrics tracked by the agent.
@@ -126,6 +126,12 @@ message Call {
     required ContainerID container_id = 1;
   }
 
+  // Removes a nested container and its artifacts (runtime and sandbox
+  // directories).
+  message RemoveNestedContainer {
+    required ContainerID container_id = 1;
+  }
+
   // Launches a nested container within an executor's tree of containers.
   // The differences between this call and `LaunchNestedContainer` are:
   // 1) The container's life-cycle is tied to the lifetime of the
@@ -175,6 +181,7 @@ message Call {
   optional LaunchNestedContainer launch_nested_container = 6;
   optional WaitNestedContainer wait_nested_container = 7;
   optional KillNestedContainer kill_nested_container = 8;
+  optional RemoveNestedContainer remove_nested_container = 12;
   optional LaunchNestedContainerSession launch_nested_container_session = 9;
   optional AttachContainerInput attach_container_input = 10;
   optional AttachContainerOutput attach_container_output = 11;

http://git-wip-us.apache.org/repos/asf/mesos/blob/c1963898/include/mesos/v1/agent/agent.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/agent/agent.proto b/include/mesos/v1/agent/agent.proto
index 34210c3..ea9282c 100644
--- a/include/mesos/v1/agent/agent.proto
+++ b/include/mesos/v1/agent/agent.proto
@@ -62,6 +62,7 @@ message Call {
     LAUNCH_NESTED_CONTAINER = 14;  // See 'LaunchNestedContainer' below.
     WAIT_NESTED_CONTAINER = 15;    // See 'WaitNestedContainer' below.
     KILL_NESTED_CONTAINER = 16;    // See 'KillNestedContainer' below.
+    REMOVE_NESTED_CONTAINER = 21;  // See 'RemoveNestedContainer' below.
 
     // See 'LaunchNestedContainerSession' below.
     LAUNCH_NESTED_CONTAINER_SESSION = 17;
@@ -125,6 +126,12 @@ message Call {
     required ContainerID container_id = 1;
   }
 
+  // Removes a nested container and its artifacts (runtime and sandbox
+  // directories).
+  message RemoveNestedContainer {
+    required ContainerID container_id = 1;
+  }
+
   // Launches a nested container within an executor's tree of containers.
   // The differences between this call and `LaunchNestedContainer` are:
   // 1) The container's life-cycle is tied to the lifetime of the
@@ -174,6 +181,7 @@ message Call {
   optional LaunchNestedContainer launch_nested_container = 6;
   optional WaitNestedContainer wait_nested_container = 7;
   optional KillNestedContainer kill_nested_container = 8;
+  optional RemoveNestedContainer remove_nested_container = 12;
   optional LaunchNestedContainerSession launch_nested_container_session = 9;
   optional AttachContainerInput attach_container_input = 10;
   optional AttachContainerOutput attach_container_output = 11;