Skip to content

Conversation

@crosbymichael
Copy link
Member

There were issues where a process could die before pausing completed
leaving the container in an inconsistent state and unable to be
destoryed. This makes sure that if the container is paused and the
process is dead it will unfreeze the cgroup before removing them.

Closes #484
Closes #470

Signed-off-by: Michael Crosby [email protected]

There were issues where a process could die before pausing completed
leaving the container in an inconsistent state and unable to be
destoryed.  This makes sure that if the container is paused and the
process is dead it will unfreeze the cgroup before removing them.

Signed-off-by: Michael Crosby <[email protected]>
@cyphar
Copy link
Member

cyphar commented Jan 22, 2016

@crosbymichael Does this solve all of the related failing Jenkins tests and do you know what test triggered the bug?

@duglin
Copy link

duglin commented Jan 22, 2016

I might have missed it, but I think nullState isn't used any more with this PR - can we remove it?

@duglin
Copy link

duglin commented Jan 22, 2016

oh darn, I missed one in the factory during a load - could stoppedState be used there instead?

@crosbymichael
Copy link
Member Author

@cyphar yes

@duglin idk, maybe in a separate pr we could remove it

@duglin
Copy link

duglin commented Jan 22, 2016

ok once/if this is merged I'll play with it.

@crosbymichael
Copy link
Member Author

ping @mrunalp @LK4D4

@mrunalp
Copy link
Contributor

mrunalp commented Jan 22, 2016

@crosbymichael Yeah, reviewing/testing.

@crosbymichael crosbymichael mentioned this pull request Jan 23, 2016
@mrunalp
Copy link
Contributor

mrunalp commented Jan 23, 2016

LGTM

This was referenced Jan 25, 2016
@LK4D4
Copy link
Contributor

LK4D4 commented Jan 25, 2016

LGTM

LK4D4 added a commit that referenced this pull request Jan 25, 2016
Fix various state bugs for pause and destroy
@LK4D4 LK4D4 merged commit 3268a1e into opencontainers:master Jan 25, 2016
@crosbymichael crosbymichael deleted the state-fixes branch January 25, 2016 19:49
stefanberger pushed a commit to stefanberger/runc that referenced this pull request Sep 8, 2017
Carry opencontainers#499

For these values, cgroup kernal APIs accept -1 to set
them as unlimited, as docker and runc all support
update resources, we should not set drawbacks in spec.

Signed-off-by: Qiang Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants