summaryrefslogtreecommitdiff
path: root/tools/genenv
diff options
context:
space:
mode:
authorDaneyon Hansen <danehans@cisco.com>2015-04-01 18:38:46 +0000
committerDaneyon Hansen <danehans@cisco.com>2015-04-07 19:13:29 +0000
commit0b671ad58d31dc3c3704a35a9ef0c17af0834e72 (patch)
tree726964e5a0810383b908c0413943702a998e916d /tools/genenv
parent5ea37557cf1d5600e0bb141e010a4bcdbd967162 (diff)
downloadkolla-0b671ad58d31dc3c3704a35a9ef0c17af0834e72.tar.gz
kolla-0b671ad58d31dc3c3704a35a9ef0c17af0834e72.zip
Adds Initial Logging Support
Previously, logging was hard coded into the nova and neutron containers. This patch creates two common params for logging: DEBUG_LOGGING VERBOSE_LOGGING and sets default values of verbose=true and debug=false. This patch implements logging for Nova and Neutron. Add'l OS service config scripts and images will need to be updated to use the logging params. Change-Id: I03d48005d5b4789aa3c519879a20d963ef1cbaa3
Diffstat (limited to 'tools/genenv')
-rwxr-xr-xtools/genenv26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/genenv b/tools/genenv
index 5484cb8f7..bb349b5b0 100755
--- a/tools/genenv
+++ b/tools/genenv
@@ -31,6 +31,20 @@ PASSWORD=12345
ADMIN_TENANT_NAME=admin
PUBLIC_IP=$HOST_IP
+# Logging
+DEBUG_LOGGING=false
+VERBOSE_LOGGING=true
+NOVA_LOG_DIR=
+NEUTRON_LOG_DIR=
+NOVA_API_LOG_FILE=
+NOVA_CONDUCTOR_LOG_FILE=
+NOVA_SCHEDULER_LOG_FILE=
+NOVA_COMPUTE_LOG_FILE=
+NEUTRON_SERVER_LOG_FILE=
+NEUTRON_L3_AGENT_LOG_FILE=
+NEUTRON_LINUXBRIDGE_AGENT_LOG_FILE=
+NEUTRON_METADATA_AGENT_LOG_FILE=
+
# RabbitMQ
RABBITMQ_SERVICE_HOST=$HOST_IP
RABBIT_USER=guest
@@ -86,6 +100,18 @@ export OS_TENANT_NAME=$ADMIN_TENANT_NAME
EOF
cat > ./compose/openstack.env <<EOF
+DEBUG_LOGGING=$DEBUG_LOGGING
+VERBOSE_LOGGING=$VERBOSE_LOGGING
+NOVA_LOG_DIR=$NOVA_LOG_DIR
+NEUTRON_LOG_DIR=$NEUTRON_LOG_DIR
+NOVA_API_LOG_FILE=$NOVA_API_LOG_FILE
+NOVA_CONDUCTOR_LOG_FILE=$NOVA_CONDUCTOR_LOG_FILE
+NOVA_SCHEDULER_LOG_FILE=$NOVA_SCHEDULER_LOG_FILE
+NOVA_COMPUTE_LOG_FILE=$NOVA_COMPUTE_LOG_FILE
+NEUTRON_SERVER_LOG_FILE=$NEUTRON_SERVER_LOG_FILE
+NEUTRON_L3_AGENT_LOG_FILE=$NEUTRON_L3_AGENT_LOG_FILE
+NEUTRON_LINUXBRIDGE_AGENT_LOG_FILE=$NEUTRON_LINUXBRIDGE_AGENT_LOG_FILE
+NEUTRON_METADATA_AGENT_LOG_FILE=$NEUTRON_METADATA_AGENT_LOG_FILE
ADMIN_USER_PASSWORD=$ADMIN_USER_PASSWORD
ADMIN_TENANT_NAME=$ADMIN_TENANT_NAME
CONFIG_NETWORK=$CONFIG_NETWORK