Add default_log_levels to Mitaka and Ocata nova.conf

If debug is enabled we will also want oslo_messaging
debug logs and this allows for that. A previous patch
added this for >= Pike but it is also needed if these
logs are wanted in >= Mitaka.

Related-Bug: #1817290

Change-Id: I168bd04e3a0332d2ed2a74e411ead3df101402c4
This commit is contained in:
Edward Hope-Morley 2020-06-17 12:37:02 +01:00
parent 3ba8837406
commit 5efd1ce88b
3 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,11 @@ enabled_apis=osapi_compute,metadata
auth_strategy=keystone
my_ip = {{ host_ip }}
{% if debug -%}
# based on https://github.com/openstack/nova/blob/mitaka-eol/nova/config.py
default_log_levels = "amqp=WARN, amqplib=WARN, boto=WARN, qpid=WARN, sqlalchemy=WARN, suds=INFO, oslo_messaging=DEBUG, iso8601=WARN, requests.packages.urllib3.connectionpool=WARN, urllib3.connectionpool=WARN, websocket=WARN, keystonemiddleware=WARN, routes.middleware=WARN, stevedore=WARN, glanceclient=WARN"
{%- endif %}
{% if arch == 'aarch64' -%}
libvirt_use_virtio_for_bridges=False
libvirt_disk_prefix=vd

View File

@ -20,6 +20,11 @@ enabled_apis=osapi_compute,metadata
auth_strategy=keystone
my_ip = {{ host_ip }}
{% if debug -%}
# based on https://github.com/openstack/oslo.log/blob/newton-eol/oslo_log/_options.py
default_log_levels = "amqp=WARN, amqplib=WARN, boto=WARN, qpid=WARN, sqlalchemy=WARN, suds=INFO, oslo.messaging=INFO, oslo_messaging=DEBUG, iso8601=WARN, requests.packages.urllib3.connectionpool=WARN, urllib3.connectionpool=WARN, websocket=WARN, requests.packages.urllib3.util.retry=WARN, urllib3.util.retry=WARN, keystonemiddleware=WARN, routes.middleware=WARN, stevedore=WARN, taskflow=WARN, keystoneauth=WARN, oslo.cache=INFO, dogpile.core.dogpile=INFO"
{%- endif %}
{% if arch == 'aarch64' -%}
libvirt_use_virtio_for_bridges=False
libvirt_disk_prefix=vd

View File

@ -24,6 +24,8 @@ transport_url = {{ transport_url }}
{% endif %}
{% if debug -%}
# based on https://github.com/openstack/oslo.log/blob/stable/ocata/oslo_log/_options.py
default_log_levels = "amqp=WARN, amqplib=WARN, boto=WARN, qpid=WARN, sqlalchemy=WARN, suds=INFO, oslo.messaging=INFO, oslo_messaging=DEBUG, iso8601=WARN, requests.packages.urllib3.connectionpool=WARN, urllib3.connectionpool=WARN, websocket=WARN, requests.packages.urllib3.util.retry=WARN, urllib3.util.retry=WARN, keystonemiddleware=WARN, routes.middleware=WARN, stevedore=WARN, taskflow=WARN, keystoneauth=WARN, oslo.cache=INFO, dogpile.core.dogpile=INFO"
glance.debug = True
{% endif -%}