[GitHub] mesos pull request #191: Adding support for s390x architecture

2016-12-06 Thread avarsha-ibm
GitHub user avarsha-ibm opened a pull request:

https://github.com/apache/mesos/pull/191

Adding support for s390x architecture



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/linux-on-ibm-z/mesos master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/mesos/pull/191.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #191


commit d0a20e296cc2152e454761382e4436f82755822e
Author: Ayanampudi Varsha 
Date:   2016-12-06T15:10:20Z

Adding support for s390x architecture




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] mesos issue #179: Added a new title to the existing list

2016-12-06 Thread packtpartner
Github user packtpartner commented on the issue:

https://github.com/apache/mesos/pull/179
  
@bmahler 
Just checking in


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Re: mesos git commit: Added documentation for posix/rlimit isolator.

2016-12-06 Thread Alex R
Folks,

I saw this commit today and thought I would use this opportunity to remind
everyone the obvious: documentation is usually the first thing a
user—especially a new user—sees when they start evaluating Mesos. As with
everything, first impression is utterly important. Please strive to make
our docs *consistent* and *consumable*. ESLs please seek support of a
native speaker.

Alex.

On 6 December 2016 at 00:05,  wrote:

> Repository: mesos
> Updated Branches:
>   refs/heads/master 814ed3f8e -> 134a6a5ce
>
>
> Added documentation for posix/rlimit isolator.
>
> Review: https://reviews.apache.org/r/53982/
>
>
> Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
> Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/134a6a5c
> Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/134a6a5c
> Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/134a6a5c
>
> Branch: refs/heads/master
> Commit: 134a6a5cea2af260fee870c8aea2667d60077946
> Parents: 814ed3f
> Author: Benjamin Bannier 
> Authored: Mon Dec 5 15:04:59 2016 -0800
> Committer: Jie Yu 
> Committed: Mon Dec 5 15:04:59 2016 -0800
>
> --
>  docs/mesos-containerizer.md |  6 +++
>  docs/posix_rlimits.md   | 88 
>  2 files changed, 94 insertions(+)
> --
>
>
> http://git-wip-us.apache.org/repos/asf/mesos/blob/134a6a5c/
> docs/mesos-containerizer.md
> --
> diff --git a/docs/mesos-containerizer.md b/docs/mesos-containerizer.md
> index 6d13b2d..d0b9d76 100644
> --- a/docs/mesos-containerizer.md
> +++ b/docs/mesos-containerizer.md
> @@ -295,6 +295,12 @@ destroyed.
>
>  This is described in a [separate document](cni.md).
>
> +
>  ### The `linux/capabilities` Isolator
>
>  This is described in a [separate document](linux_capabilities.md).
> +
> +
> +### The `posix/rlimits` Isolator
> +
> +This is described in a [separate document](posix_rlimits.md).
>
> http://git-wip-us.apache.org/repos/asf/mesos/blob/134a6a5c/
> docs/posix_rlimits.md
> --
> diff --git a/docs/posix_rlimits.md b/docs/posix_rlimits.md
> new file mode 100644
> index 000..0a0e6a8
> --- /dev/null
> +++ b/docs/posix_rlimits.md
> @@ -0,0 +1,88 @@
> +# POSIX Resource Limits Support in Mesos Containerizer
> +
> +This document describes the `posix/rlimits` isolator. The isolator adds
> support
> +for setting POSIX resource limits (rlimits) for containers launched using
> the
> +[Mesos containerizer](mesos-containerizer.md).
> +
> +POSIX rlimits can be used control the resources a process can consume.
> Resource
> +limits are typically set at boot time and inherited when a child process
> is
> +forked from a parent process; resource limits can also be modified via
> +`setrlimit(2)`.  In many interactive shells, resource limits can be
> inspected or
> +modified with the `ulimit` shell built-in.
> +
> +A POSIX resource limit consist of a _soft_ and a _hard_ limit. The soft
> limit
> +specifies the effective resource limit for the current and forked
> process, while
> +the hard limit gives the value up to which processes may increase their
> +effective limit; increasing the hard limit is a privileged action. It is
> +required that the soft limit is less than or equal to the hard limit.
> +System administrators can use a hard resource limit to define the maximum
> amount
> +of resources that can be consumed by a user; users can employ soft
> resource
> +limits to ensure that one of their tasks only consumes a limited amount
> of the
> +global hard resource limit.
> +
> +This isolator permits setting per-task resource limits. This isolator
> interprets
> +rlimits specified as part of a task's `ContainerInfo` for the Mesos
> +containerizer, e.g.,
> +```{.json}
> +{
> +  "container": {
> +"type": "MESOS",
> +"rlimit_info": {
> +  "rlimits": [
> +{
> +  "type": "RLMT_CORE"
> +},
> +{
> +  "type": "RLMT_STACK",
> +  "soft": 8192,
> +  "hard": 32768
> +}
> +  ]
> +}
> +  }
> +}
> +```
> +
> +To enable interpretation of rlimits, agents need to
> +be started with `posix/rlimits` in its `--isolation` flag, e.g.,
> +
> +```{.console}
> +mesos-agent --master= --ip=
> +  --work_dir=/var/lib/mesos
> +  --isolation=posix/rlimits[,other isolation flags]
> +```
> +
> +To set a hard limit for a task larger than the current value of the hard
> limit,
> +the agent process needs to be under a privileged user (with the
> +`CAP_SYS_RESOURCE` capability), typically `root`.
> +
> +POSIX currently defines a base set of resources, see
> +[the documentation](http://pubs.opengroup.org/onlinepubs/
> 009695399/functions/getrlimit.html);
> +Linux defines additional resource limits, see e.g., the documentation of
> +`setrlimit(2)

Re: New Defects reported by Coverity Scan for Mesos

2016-12-06 Thread Benjamin Bannier
Hi,

I filed https://issues.apache.org/jira/browse/MESOS-6726 to address this issue 
in particular and https://issues.apache.org/jira/browse/MESOS-6727 to more 
generally remove the dangerous overload used here.

HTH,

Benjamin

> On Dec 6, 2016, at 4:40 AM, scan-ad...@coverity.com wrote:
> 
> 
> Hi,
> 
> Please find the latest report on new defect(s) introduced to Mesos found with 
> Coverity Scan.
> 
> 1 new defect(s) introduced to Mesos found with Coverity Scan.
> 2 defect(s), reported by Coverity Scan earlier, were marked fixed in the 
> recent build analyzed by Coverity Scan.
> 
> New defect(s) Reported-by: Coverity Scan
> Showing 1 of 1 defect(s)
> 
> 
> ** CID 1396866:  Uninitialized members  (UNINIT_CTOR)
> /src/slave/containerizer/mesos/io/switchboard.hpp: 216 in 
> mesos::internal::slave::IOSwitchboardServerFlags::IOSwitchboardServerFlags()()
> 
> 
> 
> *** CID 1396866:  Uninitialized members  (UNINIT_CTOR)
> /src/slave/containerizer/mesos/io/switchboard.hpp: 216 in 
> mesos::internal::slave::IOSwitchboardServerFlags::IOSwitchboardServerFlags()()
> 210 "first connection before reading any data from the 
> '*_from_fd's.");
> 211 
> 212 add(&IOSwitchboardServerFlags::socket_path,
> 213 "socket_address",
> 214 "The path of the unix domain socket this\n"
> 215 "io switchboard should attach itself to.");
CID 1396866:  Uninitialized members  (UNINIT_CTOR)
Non-static class member "wait_for_connection" is not initialized in 
 this constructor nor in any functions that it calls.
> 216   }
> 217 
> 218   bool tty;
> 219   int stdin_to_fd;
> 220   int stdout_from_fd;
> 221   int stdout_to_fd;
> 
> 
> 
> To view the defects in Coverity Scan visit, 
> https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZ-2B0hUmbDL5L44V5w491gwGCJEE339V3aTW7x9nwB-2BHtQ-3D-3D_GNnPkJalgkEpe7D7Qaq3CrPne-2BTvAT-2Fi7n61dNNZWw0LT4UjIw54ej3jbmv-2FYiVXDjJUsA9QVMQvV4Sfsby3m0PwzOcH-2BQVR0-2BM9L8SQ2-2ByKpcrAY-2FYrBhypVx90UimTuFH82MOmDuacMPl09f6qGnwqiYMgAuAXQkeP7xe5fFt4FXW-2FNXD9FQr81wjFJweyVjgohEE-2FJHoC5FopCDKpNlr8mzY3OG5TRegXnTnrKag-3D
> 
> To manage Coverity Scan email notifications for 
> "benjamin.bann...@mesosphere.io", click 
> https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4GpUVVgAxsS-2B56gradrUgiH-2FS-2F-2BfpPbwW1sDtnGg27oOAryn3RWaGLxkl6Fxas54usbhxEUwvq9bIl7KdDUw8q8aXMKMCI9rIzEGsYnltdyQ-2FMVlHEhp-2BMeSMzsZQajR-2B_GNnPkJalgkEpe7D7Qaq3CrPne-2BTvAT-2Fi7n61dNNZWw0LT4UjIw54ej3jbmv-2FYiVXDjJUsA9QVMQvV4Sfsby3m4wQfYGKIemddc26xkSxwIo0zDWM9yoxoFVxAI7N4qiKkCsTaKeelbOyrafNfR3H7ZoRWhh6ZiiUl-2BeP7SZcJfyU5T2u-2BidZgdJLoy09J0KJDa8krt-2BXszVc9bLeJtXBpq5MYHZjGkso9fDIVZUQEy0-3D
>