]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add run_as_root option to utils.execute
authorTerry Wilson <twilson@redhat.com>
Wed, 21 Jan 2015 20:19:06 +0000 (14:19 -0600)
committerTerry Wilson <twilson@redhat.com>
Thu, 12 Feb 2015 01:33:39 +0000 (19:33 -0600)
commit804b3b61386b3262be112d88dfd70eef08d764e4
tree233b6d21b9c07ada73401750768d77a171fafe25
parentc49c87d1e4d015a08a4612846dce816bfbb755ee
Add run_as_root option to utils.execute

This change adds the run_as_root option that exists in the
processutils.execute method. This option makes it possible
to just look up the root_helper from the config when
necessary, while still making it possible to not use any
privilege escalation.

Currently, processutils.execute exposes some eventlet issues
in the neutron codebase, otherwise this patch would just move
us over to using it.

Change-Id: Ic9ebe77dada4f7f044f009ff04494906d4f50ae2
Partially-Implements: blueprint rootwrap-daemon-mode
neutron/agent/linux/utils.py
neutron/tests/unit/agent/linux/test_utils.py