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:
parent
a2c8a130db
commit
c37b9ae4c4
@ -65,9 +65,20 @@ parameters:
|
|||||||
default:
|
default:
|
||||||
tag: openstack.neutron.agent.ovn-metadata
|
tag: openstack.neutron.agent.ovn-metadata
|
||||||
path: /var/log/neutron/networking-ovn-metadata-agent.log
|
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:
|
conditions:
|
||||||
neutron_workers_unset: {equals : [{get_param: NeutronWorkers}, '']}
|
neutron_workers_unset: {equals : [{get_param: NeutronWorkers}, '']}
|
||||||
|
service_debug_unset: {equals: [{get_param: OvnMetadataAgentDebug}, '']}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
||||||
@ -100,6 +111,11 @@ outputs:
|
|||||||
neutron::agents::ovn_metadata::metadata_ip: "%{hiera('nova_metadata_vip')}"
|
neutron::agents::ovn_metadata::metadata_ip: "%{hiera('nova_metadata_vip')}"
|
||||||
neutron::agents::ovn_metadata::ovsdb_connection_timeout: {get_param: OVNDbConnectionTimeout}
|
neutron::agents::ovn_metadata::ovsdb_connection_timeout: {get_param: OVNDbConnectionTimeout}
|
||||||
ovn::southbound::port: {get_param: OVNSouthboundServerPort}
|
ovn::southbound::port: {get_param: OVNSouthboundServerPort}
|
||||||
|
neutron::agents::ovn_metadata::debug:
|
||||||
|
if:
|
||||||
|
- service_debug_unset
|
||||||
|
- {get_param: Debug}
|
||||||
|
- {get_param: OvnMetadataAgentDebug}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- neutron_workers_unset
|
- neutron_workers_unset
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Now it is possible to enable/disable debug mode in OVN metadata agent.
|
Loading…
Reference in New Issue
Block a user