← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1300800] [NEW] Nova boot fails if sbin not in path

 

Public bug reported:

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_ipv4_forwarding().

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.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1300800

Title:
  Nova boot fails if sbin not in path

Status in OpenStack Compute (Nova):
  New

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_ipv4_forwarding().

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1300800/+subscriptions


Follow ups

References