diff --git a/puppet/services/ovn-metadata.yaml b/puppet/services/ovn-metadata.yaml index 9e1be0c69f..bae685b0eb 100644 --- a/puppet/services/ovn-metadata.yaml +++ b/puppet/services/ovn-metadata.yaml @@ -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 diff --git a/releasenotes/notes/ovn_metadata_agent_support_debug_mode-9d0656ce156a3c91.yaml b/releasenotes/notes/ovn_metadata_agent_support_debug_mode-9d0656ce156a3c91.yaml new file mode 100644 index 0000000000..744f36f466 --- /dev/null +++ b/releasenotes/notes/ovn_metadata_agent_support_debug_mode-9d0656ce156a3c91.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Now it is possible to enable/disable debug mode in OVN metadata agent.