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.
Fix proposed to branch: master /review. openstack. org/44198
Review: https:/