neutron/neutron/agent
Cedric Brandily fbc2278414 Allow metadata proxy to log with nobody user/group
Currently metadata proxy cannot run with nobody user/group as
metadata proxy (as other services) uses WatchedFileHandler handler to
log to file which does not support permissions drop (the process must
be able to r/w after permissions drop to "watch" the file).

This change allows to enable/disable log watch in metadata proxies with
the new option metadata_proxy_log_watch. It should be disabled when
metadata_proxy_user/group is not allowed to read/write metadata proxy
log files. Option default value is deduced from metadata_proxy_user:

* True if metadata_proxy_user is agent effective user id/name,
* False otherwise.

When log watch is disabled and logrotate is enabled on metadata proxy
logging files, 'copytruncate' logrotate option must be used otherwise
metadata proxy logs will be lost after the first log rotation.

DocImpact
Change-Id: I40a7bd82a2c60d9198312fdb52e3010c60db3511
Partial-Bug: #1427228
2015-04-01 22:41:07 +02:00
..
common Allow metadata proxy to log with nobody user/group 2015-04-01 22:41:07 +02:00
dhcp Merge "Use common agent.linux.utils.ensure_dir method" 2015-03-13 07:41:38 +00:00
l3 Rename/move/remove HaRouter methods 2015-03-25 11:40:10 -04:00
linux Allow metadata proxy to log with nobody user/group 2015-04-01 22:41:07 +02:00
metadata Allow metadata proxy to log with nobody user/group 2015-04-01 22:41:07 +02:00
ovsdb Moves ovs_lib to agent/common 2015-03-25 13:48:33 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
dhcp_agent.py Do not run neutron-ns-metadata-proxy as root on dhcp agent 2015-02-20 21:20:21 +00:00
firewall.py Add missing methods to NoopFirewallDriver 2014-09-28 22:16:57 +04:00
l2population_rpc.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
l3_agent.py Remove remaining uses of passing root_helper 2015-02-20 03:24:38 +00:00
metadata_agent.py Merge "Start metadata agent without trying to connect db" 2015-03-23 16:45:05 +00:00
rpc.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
securitygroups_rpc.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00