Still struggling with this.

cgroups was not started by default, so I started it, but still get the problem:

error: failed to retrieve cgroup limits: cannot determine cgroup limits: open /sys/fs/cgroup/cpu/cpu.cfs_quota_us: no such file or directory

On the host machine that directory contains this:

$ ls /sys/fs/cgroup/cpu/
cgroup.clone_children cgroup.sane_behavior cpuacct.usage cpu.shares release_agent tasks cgroup.procs cpuacct.stat cpuacct.usage_percpu notify_on_release system.slice user.slice

So, no cpu.cfs_quota_us.
What needs to be done?

Tim


On 23/03/2017 13:14, Ben Parees wrote:


On Thu, Mar 23, 2017 at 9:00 AM, Tim Dudgeon <[email protected] <mailto:[email protected]>> wrote:

    OK, sounds plausible, but not clear to me what the solution is.
    Cgroups need be enabled on centos? How?


​https://www.digitalocean.com/community/tutorials/how-to-limit-resources-using-cgroups-on-centos-6

I can't find similar docs for centos7, not sure if it's the same or not.
​

    Tim


    On 23/03/2017 12:41, Ben Parees wrote:
    Sounds like you do not have cgroups enabled, this is a known
    issue reported here:

    https://github.com/openshift/origin/issues/8074
    <https://github.com/openshift/origin/issues/8074>


    On Thu, Mar 23, 2017 at 8:36 AM, Tim Dudgeon
    <[email protected] <mailto:[email protected]>> wrote:

        No, I'm running on Centos.

        Running that command didn't help - same error.

        Tim


        On 23/03/2017 12:29, Ben Parees wrote:


        On Thu, Mar 23, 2017 at 7:32 AM, Tim Dudgeon
        <[email protected] <mailto:[email protected]>> wrote:

            I created a new Openshift setup running on a Centos 7.2
            machine. Installed docker and set to use
            --insecure-registry option.

            I started the cluster with `oc cluster up`. All OK.

            I can deploy a Docker image and access it fine.

            But when I try to do a S2I build (Python) the build
            fails with this error:

            error: failed to retrieve cgroup limits: cannot
            determine cgroup limits: open
            /sys/fs/cgroup/cpu/cpu.cfs_quota_us: no such file or
            directory

            What is needed to fix this?


        ​are you on fedora25? if so, a dnf update should solve it
        for you.

        alternatively you can run "setsebool -P
        container_manage_cgroup 1"

        ​


            Thanks
            Tim

            _______________________________________________
            users mailing list
            [email protected]
            <mailto:[email protected]>
            http://lists.openshift.redhat.com/openshiftmm/listinfo/users
            <http://lists.openshift.redhat.com/openshiftmm/listinfo/users>




-- Ben Parees | OpenShift



        _______________________________________________
        users mailing list
        [email protected]
        <mailto:[email protected]>
        http://lists.openshift.redhat.com/openshiftmm/listinfo/users
        <http://lists.openshift.redhat.com/openshiftmm/listinfo/users>




-- Ben Parees | OpenShift



    _______________________________________________
    users mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openshift.redhat.com/openshiftmm/listinfo/users
    <http://lists.openshift.redhat.com/openshiftmm/listinfo/users>




--
Ben Parees | OpenShift


_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to