neutron/neutron/tests/functional
Cedric Brandily 80bea7a386 Allow metadata proxy running with nobody user/group
Currently metadata proxy cannot run with nobody user/group as metadata
proxy requires to connect to metadata_proxy_socket when queried.

This change allows to run metadata proxy with nobody user/group by
allowing to choose the metadata_proxy_socket mode with the new option
metadata_proxy_socket_mode (4 choices) in order to adapt socket
permissions to metadata proxy user/group.

This change refactors also where options are defined to enable
metadata_proxy_user/group options in the metadata agent.

In practice:
* if metadata_proxy_user is agent effective user or root, then:
  * metadata proxy is allowed to use rootwrap (unsecure)
  * set metadata_proxy_socket_mode = user (0o644)
* else if metadata_proxy_group is agent effective group, then:
  * metadata proxy is not allowed to use rootwrap (secure)
  * set metadata_proxy_socket_mode = group (0o664)
  * set metadata_proxy_log_watch = false
* else:
  * metadata proxy has lowest permissions (securest) but metadata proxy
    socket can be opened by everyone
  * set metadata_proxy_socket_mode = all (0o666)
  * set metadata_proxy_log_watch = false

An alternative is to set metadata_proxy_socket_mode = deduce, in such
case metadata agent uses previous rules to choose the correct mode.

DocImpact
Closes-Bug: #1427228
Change-Id: I235a0cc4f0cbd55ae4ec1570daf2ebbb6a72441d
2015-04-06 18:31:37 +02:00
..
agent Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
api Simplify retargetable test framework 2015-03-31 20:13:04 +00:00
cmd Define bridge/port fixtures for OVS/LinuxBridge/Veth backends 2015-04-01 15:01:06 +00:00
db Fix displaying of devref for TestModelsMigrations 2015-03-26 10:33:37 +03:00
sanity Add sanity check for OVSDB native support 2015-03-18 17:52:06 -05:00
scheduler DHCP Service LoadBalancing Scheduler 2015-03-18 10:13:53 -07:00
__init__.py Simplify retargetable test framework 2015-03-31 20:13:04 +00:00
base.py Prepare Base(OVS)LinuxTestCase transformation in helpers 2015-03-19 14:43:42 +00:00
requirements.txt Move DB TestModelsMigrations from unit to functional 2014-12-18 22:41:05 -05:00