Actions
Bug #8096
closedCore count can cause "numerical result out of range" error due to off-by-one error
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
On a single core VM, I tried to create a container when specifying a core count of 1, but get the following error when starting the container:
Error - Cannot start container 54981773be64869adb7bac933a15df8245bc4182fce2c299133357eebce11fa8: write /sys/fs/cgroup/cpuset/docker-54981773be64869adb7bac933a15df8245bc4182fce2c299133357eebce11fa8/cpuset.cpus: numerical result out of range
cgroup cpusets are counted from zero IIRC, so if core count is meant to equate to a cpuset, it should probably have 1 subtracted from the number selected.
If I change the form to start from zero, then I can select zero CPUs and the container seems to start.
Updated by The Foreman Bot about 10 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-docker/pull/38 added
- Pull request deleted (
)
Updated by Daniel Lobato Garcia about 10 years ago
- Status changed from Ready For Testing to Closed
Actions