Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtimetest: add rootfs propagation test #511

Merged
merged 1 commit into from
Nov 17, 2017

Conversation

Mashimiao
Copy link

Signed-off-by: Ma Shimiao [email protected]

@Mashimiao Mashimiao force-pushed the add-rootfs-propagation branch from 1569616 to 60e3524 Compare November 3, 2017 07:53
Copy link
Contributor

@wking wking left a comment

Choose a reason for hiding this comment

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

These tests don't seem to distinguish between slave and private.

description: "rootfs propagation",
},
{
test: validateRlimits,
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate entry?

$ git grep -n validateRlimits origin/pr/511
origin/pr/511:cmd/runtimetest/main.go:271:func validateRlimits(spec *rspec.Spec) error {
origin/pr/511:cmd/runtimetest/main.go:803:                      test:        validateRlimits,
origin/pr/511:cmd/runtimetest/main.go:850:                      test:        validateRlimits,

Copy link
Author

Choose a reason for hiding this comment

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

Oh, this is mistake, updated. Thanks.

}
defer os.RemoveAll(targetDir)

switch spec.Linux.RootfsPropagation {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we probably want a default case that logs an “unrecognized linux.rootfsPropagation: …” warning.

@Mashimiao Mashimiao force-pushed the add-rootfs-propagation branch from 60e3524 to fd2cb1b Compare November 6, 2017 01:10
@Mashimiao
Copy link
Author

Mashimiao commented Nov 6, 2017 via email

@Mashimiao Mashimiao added this to the v0.4.0 milestone Nov 15, 2017
@liangchenye
Copy link
Member

According to https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt,
This PR does tests 'share and unbind' mode.
I think we can remove TestValidateRootfsPropagationPrivate and TestValidateRootfsPropagationSlave.

@liangchenye
Copy link
Member

The 'share' and 'unbind' looks good to me, just need to rebase.

@Mashimiao Mashimiao force-pushed the add-rootfs-propagation branch from fd2cb1b to 7026311 Compare November 17, 2017 08:02
@liangchenye
Copy link
Member

liangchenye commented Nov 17, 2017

LGTM

Approved with PullApprove

1 similar comment
@zhouhao3
Copy link

zhouhao3 commented Nov 17, 2017

LGTM

Approved with PullApprove

@zhouhao3 zhouhao3 merged commit 1a24909 into opencontainers:master Nov 17, 2017
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