Merge "Deprecate support for OVN Metadata Agent"

This commit is contained in:
Zuul
2025-07-20 18:26:13 +00:00
committed by Gerrit Code Review
5 changed files with 24 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ Puppet::Type.newtype(:ovn_metadata_agent_config) do
ensurable
newparam(:name, :namevar => true) do
desc 'Section/setting name to manage from neutron_ovn_metadata_agent.ini'
desc 'Section/setting name to manage from neutron_ovn_metadata_agent.ini (DEPRECATED)'
newvalues(/\S+\/\S+/)
end

View File

@@ -1,5 +1,6 @@
# == Class: neutron::agents::ovn_metadata
#
# DEPRECATED !!
# Setup and configure neutron ovn metadata agent.
#
# === Parameters
@@ -152,6 +153,8 @@ class neutron::agents::ovn_metadata (
include neutron::deps
include neutron::params
warning('ovn-metadata-agent is deprecated')
resources { 'ovn_metadata_agent_config':
purge => $purge_config,
}

View File

@@ -12,6 +12,7 @@
#
# == Class: neutron::agents:ovn_metadata::metadata_rate_limiting
#
# DEPRECATED !!
# Setups metadata ratelimit options for ovn metadata agent
#
# === Parameters
@@ -51,6 +52,8 @@ class neutron::agents::ovn_metadata::metadata_rate_limiting (
) {
include neutron::deps
warning('ovn-metadata-agent is deprecated')
ovn_metadata_agent_config {
'metadata_rate_limiting/rate_limit_enabled': value => $rate_limit_enabled;
'metadata_rate_limiting/ip_versions': value => join(any2array($ip_versions), ',');

View File

@@ -66,9 +66,6 @@
# [*metadata_agent_config*]
# (optional) Manage configuration of metadata_agent.ini
#
# [*ovn_metadata_agent_config*]
# (optional) Manage configuration of neutron_ovn_metadata_agent.ini
#
# [*metering_agent_config*]
# (optional) Manage configuration of metering_agent.ini
#
@@ -96,6 +93,11 @@
# [*plugin_ml2_config*]
# (optional) Manage configuration of ml2_conf.ini
#
# DEPRECATED PARAMETERS
#
# [*ovn_metadata_agent_config*]
# (optional) Manage configuration of neutron_ovn_metadata_agent.ini
#
# NOTE: The configuration MUST NOT be already handled by this module
# or Puppet catalog compilation will fail with duplicate resources.
#
@@ -115,7 +117,6 @@ class neutron::config (
Hash $l3_agent_config = {},
Hash $dhcp_agent_config = {},
Hash $metadata_agent_config = {},
Hash $ovn_metadata_agent_config = {},
Hash $metering_agent_config = {},
Hash $fwaas_agent_config = {},
Hash $fwaas_service_config = {},
@@ -125,6 +126,8 @@ class neutron::config (
Hash $taas_service_config = {},
Hash $bgp_dragent_config = {},
Hash $plugin_ml2_config = {},
# DEPRECATED PARAMETERS
Optional[Hash] $ovn_metadata_agent_config = undef,
) {
include neutron::deps
@@ -144,7 +147,6 @@ class neutron::config (
create_resources('neutron_l3_agent_config', $l3_agent_config)
create_resources('neutron_dhcp_agent_config', $dhcp_agent_config)
create_resources('neutron_metadata_agent_config', $metadata_agent_config)
create_resources('ovn_metadata_agent_config', $ovn_metadata_agent_config)
create_resources('neutron_metering_agent_config', $metering_agent_config)
create_resources('neutron_fwaas_agent_config', $fwaas_agent_config)
create_resources('neutron_fwaas_service_config', $fwaas_service_config)
@@ -154,4 +156,9 @@ class neutron::config (
create_resources('neutron_taas_service_config', $taas_service_config)
create_resources('neutron_bgp_dragent_config', $bgp_dragent_config)
create_resources('neutron_plugin_ml2', $plugin_ml2_config)
if $ovn_metadata_agent_config != undef {
warning('The ovn_metadata_agent_config parameter is deprecated')
create_resources('ovn_metadata_agent_config', $ovn_metadata_agent_config)
}
}

View File

@@ -0,0 +1,5 @@
---
deprecations:
- |
Support for Ovn Metadata Agent service has been deprecated, because
the service was deprecated in neutron.