You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by tn...@apache.org on 2016/01/12 20:06:51 UTC
[1/2] mesos git commit: Fixed docker containerizer usage to check for
cgroup result.
Repository: mesos
Updated Branches:
refs/heads/master c2329163d -> ef969dc5f
Fixed docker containerizer usage to check for cgroup result.
Review: https://reviews.apache.org/r/41906/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ee94b525
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ee94b525
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ee94b525
Branch: refs/heads/master
Commit: ee94b5259c1df95c000f6158c21df0956bdc0916
Parents: c232916
Author: Timothy Chen <tn...@apache.org>
Authored: Tue Jan 12 10:39:57 2016 -0800
Committer: Timothy Chen <tn...@gmail.com>
Committed: Tue Jan 12 10:39:57 2016 -0800
----------------------------------------------------------------------
src/slave/containerizer/docker.cpp | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ee94b525/src/slave/containerizer/docker.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/docker.cpp b/src/slave/containerizer/docker.cpp
index aacf90f..da19975 100644
--- a/src/slave/containerizer/docker.cpp
+++ b/src/slave/containerizer/docker.cpp
@@ -1330,6 +1330,8 @@ Try<ResourceStatistics> DockerContainerizerProcess::cgroupsStatistics(
return Error(
"Failed to determine cgroup for the 'cpu' subsystem: " +
cpuCgroup.error());
+ } else if (cpuCgroup.isNone()) {
+ return Error("Unable to find 'cpu' cgroup subsystem");
}
const Result<string> memCgroup = cgroups::memory::cgroup(pid);
@@ -1337,6 +1339,8 @@ Try<ResourceStatistics> DockerContainerizerProcess::cgroupsStatistics(
return Error(
"Failed to determine cgroup for the 'memory' subsystem: " +
memCgroup.error());
+ } else if (memCgroup.isNone()) {
+ return Error("Unable to find 'memory' cgroup subsystem");
}
const Try<cgroups::cpuacct::Stats> cpuAcctStat =
[2/2] mesos git commit: Included credential proto changes to
v1/mesos.proto.
Posted by tn...@apache.org.
Included credential proto changes to v1/mesos.proto.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ef969dc5
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ef969dc5
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ef969dc5
Branch: refs/heads/master
Commit: ef969dc5f2c60c4334a44e259a19cce2bcb0e0cd
Parents: ee94b52
Author: Timothy Chen <tn...@gmail.com>
Authored: Tue Jan 12 11:06:44 2016 -0800
Committer: Timothy Chen <tn...@gmail.com>
Committed: Tue Jan 12 11:06:44 2016 -0800
----------------------------------------------------------------------
include/mesos/v1/mesos.proto | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ef969dc5/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 879107d..fa7e82e 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -1313,6 +1313,11 @@ message Image {
//
// See: https://docs.docker.com/reference/commandline/pull/
required string name = 1;
+
+ // Credential to authenticate with docker registry.
+ // NOTE: This is not encrypted, therefore framework and operators
+ // should enable SSL when passing this information.
+ optional Credential credential = 2;
}
required Type type = 1;