-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add Ubuntu-18.04 to CI testing #1578
Conversation
If reviewers don't mind, let me iron things out before commenting... |
libpod/stats.go
Outdated
|
||
cgroup, err := cgroups.Load(cgroups.V1, cgroups.StaticPath(cgroupPath)) | ||
v1CGroups := GetV1CGroups(getExcludedCGroups()) | ||
if err != nil { |
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.
No need for the error here, this doesn't return an error
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.
fixed
@@ -33,13 +33,17 @@ func (c *Container) GetContainerStats(previousStats *ContainerStats) (*Container | |||
if err != nil { | |||
return nil, err | |||
} | |||
|
|||
cgroup, err := cgroups.Load(cgroups.V1, cgroups.StaticPath(cgroupPath)) | |||
v1CGroups := GetV1CGroups(getExcludedCGroups()) |
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.
Need this change in runtime_pod_linux.go line 268
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.
added
cmd/podman/utils.go
Outdated
@@ -215,3 +217,26 @@ func getPodsFromContext(c *cli.Context, r *libpod.Runtime) ([]*libpod.Pod, error | |||
} | |||
return pods, lastError | |||
} | |||
|
|||
// GetV1CGroups gets the V1 cgroup subsystems and then "filters" |
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.
Is this duped from libpod/util.go?
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.
yeah too many util.go, fixed
Oops, sorry, didn't see your comment until now |
test/e2e/libpod_suite_test.go
Outdated
runCBinary := "/usr/bin/runc" | ||
altRunCBinary := "/usr/sbin/runc" // ubuntu | ||
if _, err := os.Stat(runCBinary); err != nil { |
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.
could we use os.LookPath("runc")
here?
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.
given that /usr/sbin should be in the path, I guess it would work nicely ... everyone prefer that?
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.
SGTM
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.
fixed
38b148e
to
170910c
Compare
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
The Thread about Ubuntu support: projectatomic/papr#57. As mentioned there, trivial patches to get it working in Ubuntu would probably be accepted. Though at this point, I consider PAPR to be in maintenance mode until we decide the path forward (see projectatomic/papr#62). Suggestions:
|
given that testing with papr is a no-go, i re-enabled travis and disabled the attempt to test in papr. there is still relevant code here that fixes bonified problems on modern ubuntu distributions and will be critical to testing once we figure out how/where. |
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.
The CGroup and test changes LGTM
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bot, retest this please |
unfortunately the papr CI system cannot test ubuntu as a VM; therefore, this PR still keeps travis. but it does include fixes that will be required for running on modern versions of ubuntu. Signed-off-by: baude <[email protected]>
because we have two LGTMs, im going to /lgtm |
/lgtm |
@baude: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
Signed-off-by: baude [email protected]