In the dind environment running on a Fedora host, the lxc utils get
confused by the /sys/fs/cgroup/cpuacct,cpu cgroup mount and lxc-start
fails trying to access the wrong cgroup directory.
| ... | ... |
@@ -330,6 +330,11 @@ func TestCommitRun(t *testing.T) {
|
| 330 | 330 |
} |
| 331 | 331 |
|
| 332 | 332 |
func TestStart(t *testing.T) {
|
| 333 |
+ _, err1 := os.Stat("/sys/fs/cgroup/cpuacct,cpu")
|
|
| 334 |
+ _, err2 := os.Stat("/sys/fs/cgroup/cpu,cpuacct")
|
|
| 335 |
+ if err1 == nil || err2 == nil {
|
|
| 336 |
+ t.Skip("Fixme. Setting cpu cgroup shares doesn't work in dind on a Fedora host. The lxc utils are confused by the cpu,cpuacct mount.")
|
|
| 337 |
+ } |
|
| 333 | 338 |
runtime := mkRuntime(t) |
| 334 | 339 |
defer nuke(runtime) |
| 335 | 340 |
container, _, _ := mkContainer(runtime, []string{"-m", "33554432", "-c", "1000", "-i", "_", "/bin/cat"}, t)
|