{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/6822","labels_url":"https://api.github.com/repos/openshift/origin/issues/6822/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/6822/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/6822/events","html_url":"https://github.com/openshift/origin/issues/6822","id":128603473,"number":6822,"title":"cgroup values not set correctly on pods","user":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/area/security","name":"area/security","color":"006b75"},{"url":"https://api.github.com/repos/openshift/origin/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P1","name":"priority/P1","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"mrunalp","id":53798,"avatar_url":"https://avatars.githubusercontent.com/u/53798?v=3","gravatar_id":"","url":"https://api.github.com/users/mrunalp","html_url":"https://github.com/mrunalp","followers_url":"https://api.github.com/users/mrunalp/followers","following_url":"https://api.github.com/users/mrunalp/following{/other_user}","gists_url":"https://api.github.com/users/mrunalp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrunalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrunalp/subscriptions","organizations_url":"https://api.github.com/users/mrunalp/orgs","repos_url":"https://api.github.com/users/mrunalp/repos","events_url":"https://api.github.com/users/mrunalp/events{/privacy}","received_events_url":"https://api.github.com/users/mrunalp/received_events","type":"User","site_admin":false},"milestone":null,"comments":25,"created_at":"2016-01-25T18:17:54Z","updated_at":"2016-02-02T14:47:39Z","closed_at":null,"body":"I'm setting a quota on a pod and all the values are set correctly except the cpu quota.  I can tell this because i'm looking at the cgroup filesystem and using the values i read there to pass to a docker build operation and the docker build operation reveals what was read from the filesystem is not correct:\r\n\r\n```\r\nStep 5 : RUN echo -n QUOTA= && cat /sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us\r\n ---> Running in 68e593b55faa\r\nQUOTA=-1\r\n```\r\n\r\nrunning the exact same build a second time shows the value correctly:\r\n\r\n```\r\nStep 5 : RUN echo -n QUOTA= && cat /sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us\r\n ---> Running in 40f3723a28ed\r\nQUOTA=6000\r\n```\r\n\r\nall other cgroup values i'm setting are being picked up correctly (memory limit, cpu period, cpu shares).\r\n\r\nit seems to consistently be the first build/pod launch that gets a \"-1\" value for cpu quota.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/178608499","html_url":"https://github.com/openshift/origin/issues/6822#issuecomment-178608499","issue_url":"https://api.github.com/repos/openshift/origin/issues/6822","id":178608499,"user":{"login":"bparees","id":4974046,"avatar_url":"https://avatars.githubusercontent.com/u/4974046?v=3","gravatar_id":"","url":"https://api.github.com/users/bparees","html_url":"https://github.com/bparees","followers_url":"https://api.github.com/users/bparees/followers","following_url":"https://api.github.com/users/bparees/following{/other_user}","gists_url":"https://api.github.com/users/bparees/gists{/gist_id}","starred_url":"https://api.github.com/users/bparees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bparees/subscriptions","organizations_url":"https://api.github.com/users/bparees/orgs","repos_url":"https://api.github.com/users/bparees/repos","events_url":"https://api.github.com/users/bparees/events{/privacy}","received_events_url":"https://api.github.com/users/bparees/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T14:47:39Z","updated_at":"2016-02-02T14:47:39Z","body":"@mrunalp sorry, what would those paths be?\r\n"}}