Support enabling Debug in OVN metadata agent

This patch allows to enable the debug mode in OVN metadata agent.

Change-Id: I83f7c45577ae07acdadef7d2cb160878ffc9fb0b
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
This commit is contained in:
Daniel Alvarez 2018-06-11 23:43:12 +02:00
parent a2c8a130db
commit c37b9ae4c4
2 changed files with 20 additions and 0 deletions

View File

@ -65,9 +65,20 @@ parameters:
default:
tag: openstack.neutron.agent.ovn-metadata
path: /var/log/neutron/networking-ovn-metadata-agent.log
Debug:
type: boolean
default: false
description: Set to True to enable debugging on all services.
OvnMetadataAgentDebug:
default: ''
description: Set to True to enable debugging for OVN Metadata agent.
type: string
constraints:
- allowed_values: [ '', 'true', 'True', 'TRUE', 'false', 'False', 'FALSE']
conditions:
neutron_workers_unset: {equals : [{get_param: NeutronWorkers}, '']}
service_debug_unset: {equals: [{get_param: OvnMetadataAgentDebug}, '']}
resources:
@ -100,6 +111,11 @@ outputs:
neutron::agents::ovn_metadata::metadata_ip: "%{hiera('nova_metadata_vip')}"
neutron::agents::ovn_metadata::ovsdb_connection_timeout: {get_param: OVNDbConnectionTimeout}
ovn::southbound::port: {get_param: OVNSouthboundServerPort}
neutron::agents::ovn_metadata::debug:
if:
- service_debug_unset
- {get_param: Debug}
- {get_param: OvnMetadataAgentDebug}
-
if:
- neutron_workers_unset

View File

@ -0,0 +1,4 @@
---
features:
- |
Now it is possible to enable/disable debug mode in OVN metadata agent.