LXC: gorouter_ctl.erb test for running in container is wrong

Bug #1436150 reported by justinsb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudfoundry
New
Undecided
Unassigned

Bug Description

https://github.com/cloudfoundry/cf-release/blob/master/jobs/gorouter/templates/gorouter_ctl.erb

tests for "running in container" (LXC) by doing this:

running_in_container() {
  grep -q '/instance' /proc/self/cgroup
}

However, for Juju, /proc/self/cgroup is /lxc.

Because this test is not correct, this means gorouter_ctl.erb on LXC tries to make some /proc/sys/net changes which are not supported on LXC, and thus gorouter fails to start.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.