Skip to content

criu: add support for different manage cgroups modes#903

Merged
flouthoc merged 1 commit intocontainers:mainfrom
adrianreber:2022-04-04-cgroup-ignore
Apr 4, 2022
Merged

criu: add support for different manage cgroups modes#903
flouthoc merged 1 commit intocontainers:mainfrom
adrianreber:2022-04-04-cgroup-ignore

Conversation

@adrianreber
Copy link
Copy Markdown
Contributor

This is motivated by checkpoint errors of containers restored with a new ID in Podman.

Restoring a container with a new name and ID will result in a new cgroup assigned to the container. Unfortunately CRIU restores information about the original cgroup name. Now the container is running in one cgroup but partially has still old cgroup information tied to it.

This adds --manage-cgroups-mode=ignore' to crun which allows crun to tell CRIU to completely ignore anything concerning cgroups.

With this change it is possible to checkpoint and restore a container multiple times with changing names and IDs.

@adrianreber adrianreber force-pushed the 2022-04-04-cgroup-ignore branch from fb97114 to fc043a8 Compare April 4, 2022 13:45
Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a nit, LGTM afterward

Comment thread crun.1.md Outdated
This is motivated by checkpoint errors of containers restored with a new
ID in Podman.

Restoring a container with a new name and ID will result in a new cgroup
assigned to the container. Unfortunately CRIU restores information about
the original cgroup name. Now the container is running in one cgroup but
partially has still old cgroup information tied to it.

This adds '--manage-cgroups-mode=ignore' to crun which allows crun to
tell CRIU to completely ignore anything concerning cgroups.

With this change it is possible to checkpoint and restore a container
multiple times with changing names and IDs.

Signed-off-by: Adrian Reber <areber@redhat.com>
@adrianreber adrianreber force-pushed the 2022-04-04-cgroup-ignore branch from fc043a8 to 81ccd00 Compare April 4, 2022 14:45
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Apr 4, 2022

LGTM

Copy link
Copy Markdown
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@flouthoc flouthoc merged commit dd718e5 into containers:main Apr 4, 2022
@adrianreber adrianreber deleted the 2022-04-04-cgroup-ignore branch April 4, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants