← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1218142] Re: Neutron daemon Pidfile class does not need to not use root_helper

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1218142

Title:
  Neutron daemon Pidfile class does not need to not use root_helper

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  I noticed while writing a daemon that used the daemon Pidfile class
  that it defaults to using sudo, so not passing rootwrap will generate
  errors like this:

  2013-07-19 17:53:44.512 3111 DEBUG quantum.agent.linux.utils [-] Running command: ['sudo', 'cat', '/proc/23384/cmdline'] execute /usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py:42
  2013-07-19 17:53:44.533 3111 DEBUG quantum.agent.linux.utils [-]
  Command: ['sudo', 'cat', '/proc/23384/cmdline']
  Exit code: 1
  Stdout: ''
  Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n' execute /usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py:59

  We actually don't need root priveleges to read /proc/$pid/cmdline, so
  root_helper can be removed along with the rootwrap filters for it.

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