Skip to content

Fix various state bugs for pause and destroy - #499

Merged
LK4D4 merged 2 commits into
opencontainers:masterfrom
crosbymichael:state-fixes
Jan 25, 2016
Merged

LK4D4 merged 2 commits into
opencontainers:masterfrom
crosbymichael:state-fixes

Conversation

@crosbymichael

Copy link
Copy Markdown
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

cyphar commented Jan 22, 2016

Copy link
Copy Markdown
Member

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

@duglin

duglin commented Jan 22, 2016

Copy link
Copy Markdown

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

@duglin

duglin commented Jan 22, 2016

Copy link
Copy Markdown

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

@crosbymichael

Copy link
Copy Markdown
Member Author

@cyphar yes

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

@duglin

duglin commented Jan 22, 2016

Copy link
Copy Markdown

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

@crosbymichael

Copy link
Copy Markdown
Member Author

ping @mrunalp @LK4D4

@mrunalp

mrunalp commented Jan 22, 2016

Copy link
Copy Markdown
Contributor

@crosbymichael Yeah, reviewing/testing.

@crosbymichael crosbymichael mentioned this pull request Jan 23, 2016
@mrunalp

mrunalp commented Jan 23, 2016

Copy link
Copy Markdown
Contributor

LGTM

This was referenced Jan 25, 2016
@LK4D4

LK4D4 commented Jan 25, 2016

Copy link
Copy Markdown
Contributor

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