[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-20 Thread Kapil Arya (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15340837#comment-15340837
 ] 

Kapil Arya commented on MESOS-5533:
---

Let's not mark this ticket as blocker. We can address the issue by documenting 
that for CentOS 6, one needs to install cgroup tools (and start cgroup service) 
to be able to use Mesos. Since we already have CentOS6 section in 
http://mesos.apache.org/gettingstarted/, I think it's alright to add more steps 
to the existing ones.

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Jie Yu
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-20 Thread Gilbert Song (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15340830#comment-15340830
 ] 

Gilbert Song commented on MESOS-5533:
-

[~karya], could you attach the agent log? I dont find cgroup related 
dependencies with CNI isolator. The description seems not accurate.

[~vinodkone], Jie has a patch for it, which is merged already. We will label 
this JIRA as resolved once confirm with [~karya]. Thanks.

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Jie Yu
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-20 Thread Vinod Kone (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15340808#comment-15340808
 ] 

Vinod Kone commented on MESOS-5533:
---

Is someone working on this blocker? Can't tell from the comments.

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Jie Yu
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-19 Thread Avinash Sridharan (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15338692#comment-15338692
 ] 

Avinash Sridharan commented on MESOS-5533:
--

Is the Agent failing to startup or its crashing when a container is launched? 
Since, shouldn't fork be called only on Task launch?

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Jie Yu
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-18 Thread Jie Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15338374#comment-15338374
 ] 

Jie Yu commented on MESOS-5533:
---

Added a check in posix launcher to reject tasks with namespaces:
https://reviews.apache.org/r/48921/

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Jie Yu
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-18 Thread Jie Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15338371#comment-15338371
 ] 

Jie Yu commented on MESOS-5533:
---

In fact, network/cni works fine with posix launcher (just one cannot specify 
network name in NetworkInfo).

[~karya] Can you show your agent log?

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Jie Yu
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-18 Thread Jie Yu (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15338361#comment-15338361
 ] 

Jie Yu commented on MESOS-5533:
---

This is because network/cni isolator requires linux launcher, and linux 
launcher requires freezer.

We enable network/cni isolator by default on linux if not specified, that means 
on any linux that do not have freezer support, agent will fail to start.

I think we should check the availability of the linux launcher before making 
network/cni isolator.

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-18 Thread Avinash Sridharan (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337942#comment-15337942
 ] 

Avinash Sridharan commented on MESOS-5533:
--

Interesting .. just to make sure can you start it with the 
--network_cni_plugins_dir=VALUE and --network_cni_config_dir=VALUE flags. 
Without these flags the `network/cni` isolator is effectively a no-op. 

[~karya] we were observing this problem when we running tests and launching 
containers or just bringing up the Agent was failing?

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-18 Thread haosdent (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337610#comment-15337610
 ] 

haosdent commented on MESOS-5533:
-

I uninstall libcgroup libcgroup-devel in CentOS 6. But still could launch agent 
via
{code}
./bin/mesos-agent.sh --work_dir=/tmp/mesos --master=203.117.172.193:5050
{code}
Seems this ticket is not true? [~karya][~avin...@mesosphere.io]

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-17 Thread Gilbert Song (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337329#comment-15337329
 ] 

Gilbert Song commented on MESOS-5533:
-

[~avin...@mesosphere.io], I guess we have some info mismatch, my bad. I have 
patches for the test failures below on centos 6:

`CniIsolatorTest.ROOT_INTERNET_CURL_LaunchCommandTask`
`CniIsolatorTest.ROOT_VerifyCheckpointedInfo`
`CniIsolatorTest.ROOT_SlaveRecovery`

But this should be a diff issue. Seems like it is just a check. Should be a 
quick fix. Do you want to take over? Or I can do that.

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-17 Thread Avinash Sridharan (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337273#comment-15337273
 ] 

Avinash Sridharan commented on MESOS-5533:
--

I think [~gilbert] had a patch, not sure it went up for review?

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-17 Thread Vinod Kone (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337255#comment-15337255
 ] 

Vinod Kone commented on MESOS-5533:
---

What's the status of this?

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MESOS-5533) Agent fails to start on CentOS 6 due to missing cgroup hiearchy

2016-06-07 Thread Avinash Sridharan (JIRA)

[ 
https://issues.apache.org/jira/browse/MESOS-5533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15319530#comment-15319530
 ] 

Avinash Sridharan commented on MESOS-5533:
--

[~gilbert] is already working on this moving this to him.

> Agent fails to start on CentOS 6 due to missing cgroup hiearchy
> ---
>
> Key: MESOS-5533
> URL: https://issues.apache.org/jira/browse/MESOS-5533
> Project: Mesos
>  Issue Type: Bug
>  Components: build, isolation
>Reporter: Kapil Arya
>Assignee: Gilbert Song
>Priority: Blocker
>  Labels: mesosphere
> Fix For: 1.0.0
>
>
> With the network CNI isolator, agent now _requires_ cgroups to be installed 
> on the system. Can we add some check(s) to either automatically disable CNI 
> module if cgroup hierarchies are not available or ask the user to 
> install/enable cgroup hierarchies.
> On CentOS 6, cgroup tools aren't installed by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)