Nova boot fails if sbin not in path
Bug #1300800 reported by
David McNally
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
High
|
Angus Lees | ||
devstack |
Fix Released
|
Undecided
|
Unassigned | ||
openstack-manuals |
Invalid
|
Low
|
Thomas Goirand |
Bug Description
In a fresh install of devstack I see an error in the nova-compute log when I try to start an instance. I tracked this down to coming from nova/linux_net.py where sysctl is called in _enable_
If I add /sbin to my path the error goes away. However some distros, e.g.: debian, don't include sbin in the standard path rather they restrict it to root users only.
I think the call to sysctl (and possibly other similar calls) should be moved to use rootwrap, along with preventing issues like this it would have the added benifit of making the code slightly more OS agnostic.
tags: | added: compute |
Changed in nova: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Angus Lees (gus) |
Changed in nova: | |
status: | In Progress → Invalid |
Changed in openstack-manuals: | |
status: | New → Confirmed |
Changed in openstack-manuals: | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
milestone: | none → juno |
To post a comment you must log in.
Also the use of sysctl to read as non-privileged user might not work with some security models.