Add debug logging and individual OpenStack log files

This change introduces config.logging.debug that defaults
to False. Setting to True will enable debug logging for
OpenStack and nginx services.

Change-Id: I2eb428851d795e145c542879faf22b2fd9f8a29f
This commit is contained in:
Corey Bryant 2021-03-02 15:22:07 -05:00
parent e0901510d7
commit a2943e83ce
10 changed files with 28 additions and 0 deletions

View File

@ -55,6 +55,7 @@ def _get_default_config():
'config.logging.custom-config': f'{snap_common}/etc/filebeat'
'/filebeat-microstack.yaml',
'config.logging.datatag': '',
'config.logging.debug': False,
'config.logging.host': 'localhost:5044',
'config.services.extra.enabled': False,
'config.services.extra.filebeat': False,

View File

@ -118,6 +118,7 @@ setup:
dashboard_port: 'config.network.ports.dashboard'
mysql_port: 'config.network.ports.mysql'
rabbit_port: 'config.network.ports.rabbit'
logging_debug: 'config.logging.debug'
logging_tag: 'config.logging.logging.tag'
logging_host: 'config.logging.host'
monitoring_tag: 'config.monitoring.tag'

View File

@ -22,6 +22,9 @@ volume_group = {{ lvm_backend_volume_group }}
volume_backend_name=lvm-loop-based
{% endif %}
log_file = {{ snap_common }}/log/cinder.log
debug = {{ logging_debug }}
[oslo_concurrency]
# Oslo Concurrency lock path
lock_path = {{ snap_common }}/lock

View File

@ -5,6 +5,9 @@ state_path = {{ snap_common }}/lib
use_journal = True
bind_port = 9282
log_file = {{ snap_common }}/log/glance.log
debug = {{ logging_debug }}
[oslo_concurrency]
# Oslo Concurrency lock path
lock_path = {{ snap_common }}/lock

View File

@ -4,6 +4,9 @@ state_path = {{ snap_common }}/lib
# Log to systemd journal
use_journal = True
log_file = {{ snap_common }}/log/horizon.log
debug = {{ logging_debug }}
[oslo_concurrency]
# Oslo Concurrency lock path
lock_path = {{ snap_common }}/lock

View File

@ -4,6 +4,9 @@ state_path = {{ snap_common }}/lib
# Log to systemd journal
use_journal = True
log_file = {{ snap_common }}/log/keystone.log
debug = {{ logging_debug }}
[oslo_concurrency]
# Oslo Concurrency lock path
lock_path = {{ snap_common }}/lock

View File

@ -3,6 +3,10 @@
state_path = {{ snap_common }}/lib
# Log to systemd journal
use_journal = True
log_file = {{ snap_common }}/log/neutron.log
debug = {{ logging_debug }}
bind_port = 9686
{% if dns_domain %}

View File

@ -24,7 +24,11 @@ http {
# Logging Settings
##
{% if logging_debug|lower == "true" %}
error_log {{ snap_common }}/log/nginx-error.log debug;
{% else %}
error_log {{ snap_common }}/log/nginx-error.log;
{% endif %}
access_log {{ snap_common }}/log/nginx-access.log;
##

View File

@ -14,6 +14,9 @@ osapi_compute_listen_port = 8764
host = {{ node_fqdn }}
my_ip = {{ compute_ip }}
log_file = {{ snap_common }}/log/nova.log
debug = {{ logging_debug }}
[workarounds]
disable_rootwrap = True

View File

@ -4,6 +4,9 @@ state_path = {{ snap_common }}/lib
# Log to systemd journal
use_journal = True
log_file = {{ snap_common }}/log/placement.log
debug = {{ logging_debug }}
[oslo_concurrency]
# Oslo Concurrency lock path
lock_path = {{ snap_common }}/lock