-
Notifications
You must be signed in to change notification settings - Fork 70
Latest CRI-O does not work for CC #552
Comments
An initial look shows that the error is from our own runtime: Line 232 in 97aa6e6
A cgroupsPath ("/Burstable/pod_123-456/crio-22ca6911d8830bead552e27c75065406a377155e2d3094e66fb1ce9832ef3f54") was passed in the spec file, but no cgroup mount was found in the list of mounts, hence the error. Could be crio is no longer passing cgroup mounts, but I need to look at this further.
@sameo Do we need to error out in case no cgroup mounts are found in the first place? Line 216 in 97aa6e6
|
@amshinde a couple of comments:
So this: if !cgroupMountFound {
if isPod {
return "", fmt.Errorf("cgroupsPath %q is absolute, cgroup mount MUST exist",
ociSpec.Linux.CgroupsPath)
}
// In case of container (CRI-O), if the mount point is not
// provided, we assume this is a relative path.
return filepath.Join(cgroupsDirPath, resource, ociSpec.Linux.CgroupsPath), nil
} is incorrect and should be: if !cgroupMountFound {
// According to the OCI spec, we should interpret absolute path as relative to the system
// cgroup mount point when there is no cgroup mount in the config.json
return filepath.Join(cgroupsDirPath, resource, ociSpec.Linux.CgroupsPath), nil
} |
cc @runcom |
Getting an absolute path while not having a cgroup mount from the OCI spec is a valid case. In that case the path should be interpreted as a relative one to the system cgroup mount point. Fixes #552 Signed-off-by: Samuel Ortiz <[email protected]>
Getting an absolute path while not having a cgroup mount from the OCI spec is a valid case. In that case the path should be interpreted as a relative one to the system cgroup mount point. Fixes #552 Signed-off-by: Samuel Ortiz <[email protected]>
Getting an absolute path while not having a cgroup mount from the OCI spec is a valid case. In that case the path should be interpreted as a relative one to the system cgroup mount point. Fixes #552 Signed-off-by: Samuel Ortiz <[email protected]>
Getting an absolute path while not having a cgroup mount from the OCI spec is a valid case. In that case the path should be interpreted as a relative one to the system cgroup mount point. Fixes #552 Signed-off-by: Samuel Ortiz <[email protected]>
Getting an absolute path while not having a cgroup mount from the OCI spec is a valid case. In that case the path should be interpreted as a relative one to the system cgroup mount point. Fixes #552 Signed-off-by: Samuel Ortiz <[email protected]>
Getting an absolute path while not having a cgroup mount from the OCI spec is a valid case. In that case the path should be interpreted as a relative one to the system cgroup mount point. Fixes #552 Signed-off-by: Samuel Ortiz <[email protected]>
Last week openshift origin v3.10.0 was released, this PR updates our supported version from 3.9.0 to 3.10.0 This also updates the cri-o version that we use for openshift, which is now cri-o 1.10. Fixes: clearcontainers#552. Signed-off-by: Salvador Fuentes <[email protected]>
I tried to update CRI-O to unblock our CI [1], but unfortunately I got this error from the runtime:
Logs can be found on [2].
CRI-O Log does not show anything.
[1] clearcontainers/tests#531
[2] http://cc-jenkins-ci.westus2.cloudapp.azure.com/job/clear-containers-tests-azure-ubuntu-16-04/111/consoleText
https://semaphoreci.com/clearcontainers/tests/branches/pull-request-531/builds/1
The text was updated successfully, but these errors were encountered: