[log]: Devstack plugin for logging api

This patch implements devstack plugin for logging api. The logging
api service base on logging api spec [1].

[1] https://specs.openstack.org/openstack/neutron-specs/specs/pike/logging-API-for-security-group-rules.html

Change-Id: Ib86535ad24319cb0e10a48df50651264201673c3
Depends-On: Ib8668dd25ee7c5000a6dafcc7db3dbc33ad190be
Partially-implements: blueprint security-group-logging
Related-Bug: #1468366
This commit is contained in:
Nguyen Phuong An 2016-11-10 18:01:35 +07:00
parent 081870b1a5
commit b27164f0a8
5 changed files with 24 additions and 0 deletions

12
devstack/lib/log Normal file
View File

@ -0,0 +1,12 @@
function configure_log_service_plugin {
neutron_service_plugin_class_add "log"
}
function configure_log_extension {
plugin_agent_add_l2_agent_extension "log"
}
function configure_log {
configure_log_service_plugin
configure_log_extension
}

View File

@ -9,6 +9,7 @@ source $LIBDIR/qos
source $LIBDIR/ovs
source $LIBDIR/segments
source $LIBDIR/trunk
source $LIBDIR/log
Q_BUILD_OVS_FROM_GIT=$(trueorfalse False Q_BUILD_OVS_FROM_GIT)
@ -36,6 +37,9 @@ if [[ "$1" == "stack" ]]; then
if is_service_enabled q-trunk neutron-trunk; then
configure_trunk_extension
fi
if is_service_enabled q-log neutron-log; then
configure_log
fi
if is_service_enabled q-dns neutron-dns; then
configure_dns_extension
post_config_dns_extension

View File

@ -96,6 +96,7 @@ case $VENV in
fi
load_conf_hook quotas
load_rc_hook dns
load_rc_hook log
load_rc_hook qos
load_rc_hook segments
load_rc_hook trunk

View File

@ -18,6 +18,7 @@ NETWORK_API_EXTENSIONS+=",flavors"
NETWORK_API_EXTENSIONS+=",l3-flavors"
NETWORK_API_EXTENSIONS+=",l3-ha"
NETWORK_API_EXTENSIONS+=",l3_agent_scheduler"
NETWORK_API_EXTENSIONS+=",logging"
NETWORK_API_EXTENSIONS+=",metering"
NETWORK_API_EXTENSIONS+=",multi-provider"
NETWORK_API_EXTENSIONS+=",net-mtu"

View File

@ -0,0 +1,6 @@
enable_service neutron-log
[[post-config|/$NEUTRON_CORE_PLUGIN_CONF]]
[network_log]
local_output_log_base = /tmp/test_log.log