Browse code

Ensure syslog option is honored by neutron and tempest

Syslog settings were not configured at all for these two
projects. As a result, regardless of the value of the
SYSLOG environment variable, the use_syslog options for
these two projects was always set to False.

Change-Id: Iba6155d62beffa06e5bb9ac16b06082ec64d0926
Closes-Bug: #1394024

salvatore authored on 2014/10/30 02:22:46
Showing 2 changed files
... ...
@@ -785,7 +785,7 @@ function _configure_neutron_common {
785 785
 
786 786
     iniset $NEUTRON_CONF database connection `database_connection_url $Q_DB_NAME`
787 787
     iniset $NEUTRON_CONF DEFAULT state_path $DATA_DIR/neutron
788
-
788
+    iniset $NEUTRON_CONF DEFAULT use_syslog $SYSLOG
789 789
     # If addition config files are set, make sure their path name is set as well
790 790
     if [[ ${#Q_PLUGIN_EXTRA_CONF_FILES[@]} > 0 && $Q_PLUGIN_EXTRA_CONF_PATH == '' ]]; then
791 791
         die $LINENO "Neutron additional plugin config not set.. exiting"
... ...
@@ -247,6 +247,7 @@ function configure_tempest {
247 247
         fi
248 248
     fi
249 249
 
250
+    iniset $TEMPEST_CONF DEFAULT use_syslog $SYSLOG
250 251
     # Oslo
251 252
     iniset $TEMPEST_CONFIG DEFAULT lock_path $TEMPEST_STATE_PATH
252 253
     mkdir -p $TEMPEST_STATE_PATH