Skip to content

fix(checkpoint): workaround to avoid mutate cgroupv2 mount options#5318

Open
xujihui1985 wants to merge 1 commit into
opencontainers:mainfrom
xujihui1985:fix/checkpoint-cgroup2-mount-options
Open

fix(checkpoint): workaround to avoid mutate cgroupv2 mount options#5318
xujihui1985 wants to merge 1 commit into
opencontainers:mainfrom
xujihui1985:fix/checkpoint-cgroup2-mount-options

Conversation

@xujihui1985

Copy link
Copy Markdown
Contributor

add --manage-cgroups-mode ignore to avoid pollute cgroupv2 mount options during unittest and intergration test
checkpoint-restore/criu#3029

add --manage-cgroups-mode ignore to avoid pollute cgroupv2 mount options
during unittest and intergration test
checkpoint-restore/criu#3029

Signed-off-by: sean <xujihui1985@gmail.com>
@rata

rata commented Jun 12, 2026

Copy link
Copy Markdown
Member

@xujihui1985 an you explain what is the problem, show the output and all? It is not clear from the description

@kolyshkin

Copy link
Copy Markdown
Contributor

@xujihui1985 an you explain what is the problem, show the output and all? It is not clear from the description

See #5267. TL;DR: runc checkpoint/restore changes host cgroup2 mount options.

@xujihui1985

Copy link
Copy Markdown
Contributor Author

@xujihui1985 an you explain what is the problem, show the output and all? It is not clear from the description

Sorry for the confusion. This PR was split out from the original PR #5267 and provides a workaround for the problem described in this issue: checkpoint-restore/criu#3029

@rata rata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks! Can we link the issue as a comment in the tests?

@rata rata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry I didn't see this before, small simple fixes :)

--manage-cgroups-mode=ignore \
--work-path ./work-dir \
--image-path ./image-dir \
--manage-cgroups-mode ignore \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is wrong, it already has the option specified

set_cgroups_path # Changes the path.
runc restore -d --manage-cgroups-mode ignore --pid-file pid \
--work-path ./work-dir --console-socket "$CONSOLE_SOCKET" test_busybox
--work-path ./work-dir --console-socket "$CONSOLE_SOCKET" --manage-cgroups-mode ignore test_busybox

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Idem

@kolyshkin

Copy link
Copy Markdown
Contributor

The more I think about it, the more it seems we should just make ignore (added by #3546) the default.

I mean, runc is doing all the mounts anyway.

Hah! I just found I mentioned it in #3546, so maybe it's time (for 1.6).

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.

3 participants