Repository navigation
Closed
Labels
component/containerskind/bugCategorizes issue or PR as related to a bug.kind/test-flakeCategorizes issue or PR as related to test flakes.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/P1
Description
build knows the quota limit is 6000:
I0407 00:33:34.039640 1 builder.go:145] Running build with cgroup limits: api.CGroupLimits{MemoryLimitBytes:209715200, CPUShares:61, CPUPeriod:100000, CPUQuota:6000, MemorySwap:209715200}
build creates a container with a quota value of 6000:
Creating container with options {Name:"" Config:&{Hostname: Domainname: User: Memory:0 MemorySwap:0 MemoryReservation:0 KernelMemory:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:true AttachStderr:false PortSpecs:[] ExposedPorts:map[] StopSignal: Tty:false OpenStdin:true StdinOnce:true Env:[OPENSHIFT_BUILD_NAME=s2i-build-quota-1 OPENSHIFT_BUILD_NAMESPACE=extended-test-s2i-build-quota-73hkx-7vwau] Cmd:[/bin/sh -c tar -C /tmp -xf - && /tmp/scripts/assemble] DNS:[] Image:centos/ruby-22-centos7:latest Volumes:map[] VolumeDriver: VolumesFrom: WorkingDir: MacAddress: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Mounts:[] Labels:map[]} HostConfig:&{Binds:[] CapAdd:[] CapDrop:[KILL MKNOD SETGID SETUID SYS_CHROOT] GroupAdd:[] ContainerIDFile: LxcConf:[] Privileged:false PortBindings:map[] Links:[] PublishAllPorts:false DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] VolumesFrom:[] NetworkMode:container:b03447dab75ae8295f5acc07474232038a65f0b95de206775138835ba0699138 IpcMode: PidMode: UTSMode: RestartPolicy:{Name: MaximumRetryCount:0} Devices:[] LogConfig:{Type: Config:map[]} ReadonlyRootfs:false SecurityOpt:[] CgroupParent: Memory:209715200 MemorySwap:209715200 MemorySwappiness:0 OOMKillDisable:false CPUShares:61 CPUSet: CPUSetCPUs: CPUSetMEMs: CPUQuota:6000 CPUPeriod:100000 BlkioWeight:0 Ulimits:[] VolumeDriver: OomScoreAdj:0}}
the container dumps the cgroup filesystem value and sees -1:
I0407 00:33:36.030147 1 sti.go:581] MEMORY=209715200
I0407 00:33:36.031367 1 sti.go:581] MEMORYSWAP=209715200
I0407 00:33:36.032448 1 sti.go:581] QUOTA=-1
I0407 00:33:36.033398 1 sti.go:581] SHARES=61
I0407 00:33:36.034333 1 sti.go:581] PERIOD=100000
Metadata
Metadata
Assignees
Labels
component/containerskind/bugCategorizes issue or PR as related to a bug.kind/test-flakeCategorizes issue or PR as related to test flakes.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/P1
Activity
bparees commentedon Apr 8, 2016
@smarterclayton fyi. i made it a p2 since the exposure is that some builds might be able to exceed an enforced cpu quota. move up if you think it should be higher.
smarterclayton commentedon Apr 8, 2016
Is that not a blocker for online?
bparees commentedon Apr 8, 2016
i don't know. it could be, i'd say it depends on how frequently it occurs and whether that makes it an avenue for abuse. if 1/100 builds run w/o cpu quota i'm not sure that's a problem? if it's frequent enough that someone could explicitly take advantage of it, maybe it is. hence my putting the question to you :) i wouldn't argue against p1, but i wasn't going to make it one either.
mrunalp commentedon Apr 8, 2016
We have added #8406 to gather additional debugging information.
mrunalp commentedon Apr 8, 2016
@bparees I am not sure if that is available in the link that you posted in this bug as the link doesn't open right now.
bparees commentedon Apr 8, 2016
@mrunalp looks like jenkins is down at the moment. and of course the build itself may get cleared at some point. but i put the relevant details from the failure in the description.
mrunalp commentedon Apr 8, 2016
@bparees Were you able to capture the output of /proc/self/cgroup that we added?
bparees commentedon Apr 8, 2016
@mrunalp sorry if i confused you, the job i linked was the original case where @smarterclayton hit it, it is not a new incident w/ your debugging added.
mrunalp commentedon Apr 8, 2016
@bparees ack
bparees commentedon Apr 13, 2016
@mrunalp looks like it recreated w/ your debug here: https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/167/testReport/junit/%28root%29/Extended/_builds__Conformance__s2i_build_with_a_quota_Building_from_a_template_should_create_an_s2i_build_with_a_quota_and_run_it/
mrunalp commentedon Apr 13, 2016
@bparees Thanks! I am looking into it.
mrunalp commentedon Apr 19, 2016
Looking into systemd as possible cause per the debug output.
35 remaining items
mrunalp commentedon Nov 7, 2016
Yes the fix is in the 7.3 kernel. If we saw the latest instance on 7.3 then I will follow up with kernel team.
ncdc commentedon Nov 7, 2016
I was more asking in hopes of being able to close this now :-)
mrunalp commentedon Nov 7, 2016
Oh okay :) maybe close now and we could reopen if necessary?
ncdc commentedon Nov 7, 2016
SGTM.
smarterclayton commentedon Apr 13, 2017
It's baaaaack: https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/739/testReport/junit/(root)/Extended/_builds__Conformance__s2i_build_with_a_quota_Building_from_a_template_should_create_an_s2i_build_with_a_quota_and_run_it/
mrunalp commentedon Apr 13, 2017
openshift-bot commentedon Feb 10, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
openshift-bot commentedon Mar 14, 2018
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle rotten
/remove-lifecycle stale
openshift-bot commentedon Apr 13, 2018
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.Mark the issue as fresh by commenting
/remove-lifecycle rotten.Exclude this issue from closing again by commenting
/lifecycle frozen./close