5dcf4e4521
Fix bug 1037815 Summary: Copy/paste the essential parts of the rootwrap mechanism from nova/cinder into quantum. This includes the core changes to filter.py and wrapper.py which deal with loading filters from files pointed to by rootwrap.conf Detailed changes: Transliterate the old rootwrap/*-agent.py files to new format, and put the results in etc/quantum/rootwrap.d Delete the *-agent.py files. Add conf to point to etc/quantum/rootwrap.d Add a unit test cribbed from nova to exercise the filter mechanism Add a unit test to exercise the actual filtered execution Note that as written, this patch does not set the default execute mechanism (in the agent .ini files) to rootwrap, leaves it as sudo. That can be done in a followon change, or in distro specific packaging. Note also that there is still work to do around finishing and testing the filter specs themselves. We've decided that that is out of scope for this patch. Change-Id: I9aba6adc5ba40b6145be5fa38c5ece3b666ae5ca
33 lines
1.1 KiB
INI
33 lines
1.1 KiB
INI
[DEFAULT]
|
|
# Show debugging output in log (sets DEBUG log level output)
|
|
# debug = true
|
|
|
|
# Where to store dnsmasq state files. This directory must be writable by the
|
|
# user executing the agent. The value below is compatible with a default
|
|
# devstack installation.
|
|
state_path = /opt/stack/data
|
|
|
|
|
|
# The DHCP requires that an inteface driver be set. Choose the one that best
|
|
# matches you plugin.
|
|
|
|
# OVS
|
|
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver
|
|
# LinuxBridge
|
|
#interface_driver = quantum.agent.linux.interface.BridgeInterfaceDriver
|
|
# Ryu
|
|
#interface_driver = quantum.agent.linux.interface.RyuInterfaceDriver
|
|
|
|
# The agent can use other DHCP drivers. Dnsmasq is the simplest and requires
|
|
# no additional setup of the DHCP server.
|
|
dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq
|
|
|
|
# Allow overlapping IP (Must have kernel build with CONFIG_NET_NS=y and
|
|
# iproute2 package that supports namespaces).
|
|
# use_namespaces = True
|
|
|
|
# Use "sudo quantum-rootwrap /etc/quantum/rootwrap.conf" to use the real
|
|
# root filter facility.
|
|
# Change to "sudo" to skip the filtering and just run the comand directly
|
|
root_helper = sudo
|