-
Notifications
You must be signed in to change notification settings - Fork 2.2k
libcontainer: isolate libcontainer/devices #2679
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
Conversation
+1, I'm good with the refactoring |
oh! forgot to move it out of draft; wanted to be sure it didn't explode; moving to "ready for review" |
@kolyshkin LGTY? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. I think we may drop "Deivce" prefix from a few IDs, e.g.
configs.DeviceType -> devices.Type
config.DevicePermissions -> devices.Perms
configs.DeviceRule -> devices.Rule
and so on (not all of them though)
c7f8749
to
68c24c8
Compare
@kolyshkin @AkihiroSuda @crosbymichael updated; PTAL Changed:
|
Hm.. some issue with the SUSE repositories?
|
let me try if close/open kicks CI here |
Failing again 😞
@cyphar any ideas? is this an issue with the opensuse package repos? |
68c24c8
to
ef3d4aa
Compare
Rebased, as CI should now be fixed by #2686 |
Move the Device-related types to libcontainer/devices, so that the package can be used in isolation. Aliases have been created in libcontainer/configs for backward compatibility. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
ef3d4aa
to
4fc2de7
Compare
Rebased again, as CI seemed to be stuck in "preparing" state |
travis timed out:
I have seen this before (in cri-o/cri-o), apparently they gradually tighten the resources and thus we need to increase the timeout :( |
For now I've just restarted the job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AkihiroSuda @mrunalp PTAL |
This PR upgrades - docker dependency to the latest tagged release (v20.10.12) - runc dependency to the latest tagged release (v1.0.3) Docker does not abide by [semver](moby/moby#39302), so it is marked +incompatible, and transitive dependencies are upgrade manually. Runc made two minor breaking changes since v1.0.0-rc93 * cgroup manager .Set changed to accept Resources instead of Cgroup opencontainers/runc@3f65946 * config.Device moved to devices.Device opencontainers/runc#2679
This PR upgrades - docker dependency to the latest tagged release (v20.10.12) - runc dependency to the latest tagged release (v1.0.3) Docker does not abide by [semver](moby/moby#39302), so it is marked +incompatible, and transitive dependencies are upgrade manually. Runc made three relevant breaking changes * cgroup manager .Set changed to accept Resources instead of Cgroup opencontainers/runc@3f65946 * config.Device moved to devices.Device opencontainers/runc#2679 * mountinfo.Mounted now returns an error if the specified path does not exist https://github.com/moby/sys/blob/mountinfo/v0.5.0/mountinfo/mountinfo.go#L16
This PR upgrades - docker dependency to the latest tagged release (v20.10.12) - runc dependency to the latest tagged release (v1.0.3) Docker does not abide by [semver](moby/moby#39302), so it is marked +incompatible, and transitive dependencies are upgrade manually. Runc made three relevant breaking changes * cgroup manager .Set changed to accept Resources instead of Cgroup opencontainers/runc@3f65946 * config.Device moved to devices.Device opencontainers/runc#2679 * mountinfo.Mounted now returns an error if the specified path does not exist https://github.com/moby/sys/blob/mountinfo/v0.5.0/mountinfo/mountinfo.go#L16
Move the Device-related types to libcontainer/devices, so that the package can be used in isolation. Aliases have been created in libcontainer/configs for backward compatibility.