Yoga Series Release Notes¶
20.5.0-30¶
Bug Fixes¶
When synchronizing the OVN databases, either when running the migration command or during startup, the code responsible for synchronization will only clean up segment-to-host mappings for hosts with agent_type
OVN Controller agent
. Before, the synchronization would clean up (delete) segment-to-host mappings for non-OVN hosts. Fixes bug: 2040172.
Other Notes¶
Added extension
subnetpool-prefix-ops
to the ML2/OVN mechanism driver.
20.5.0¶
Bug Fixes¶
[bug 2022914] Neutron-API supports using relays as the southbound connection in a ML2/OVN setup. Before the maintenance worker of the API required a leader_only connection, which was removed.
Fixed the scenario where the DHCP agent is deployed in conjunction with the OVN metadata agent in order to serve metadata for baremetal nodes. In this scenario, the DHCP agent would not set the route needed for the OVN metadata agent service resulting in baremetal nodes not being able to query the metadata service. For more information see bug 1982569.
For OVN versions v22.09.0 and above, the
mcast_flood_reports
option is now set tofalse
on all ports except “localnet” types. In the past, this option was set totrue
as a workaround for a bug in core OVN multicast implementation.
Now the ML2/OVN trunk driver prevents a trunk creation if the parent port is already bound. In the same way, if a parent port being used in a trunk is bound, the trunk cannot be deleted.
During the port bulk creation, if an IPAM allocation fails (for example, if the IP address is outside of the subnet CIDR), the other IPAM allocations already created are deleted before raising the exception. Fixes bug 2039550.
Other Notes¶
Adds a maintenance task that runs once a day and is responsible for cleaning up Hash Ring nodes that haven’t been updated in 5 days or more. See LP #2033281 for more information.
Added the missing extension
uplink-status-propagation
to the ML2/OVN mechanism driver. This extension is used by the ML2/SR-IOV mechanism driver, that could be loaded with ML2/OVN. Now it is possible to create ports with the “uplink-status-propagation” flag defined.
20.4.0¶
Known Issues¶
When using ML2/OVN, during an upgrade procedure, the OVS system-id stored value can be changed. The ovn-controller service will create the “Chassis” and “Chassis_Private” registers based on this OVS system-id. If the ovn-controller process is not gracefully stopped, that could lead to the existence of duplicated “Chassis” and “Chassis_Private” registers in the OVN Southbound database.
Bug Fixes¶
A new OVN maintenance method
remove_duplicated_chassis_registers
is added. This method will periodically check the OVN Southbound “Chassis” and “Chassis_Private” tables looking for duplicated registers. The older ones (based on the “Chassis_Private.nb_cfg_timestamp” value) will be removed when more than one register has the same hostname, that should be unique.
Other Notes¶
The external_mac entry in the NAT table is used to distribute/centralize the traffic to the FIPs. When there is an external_mac set the traffic is distributed (DVR). When it is empty it is centralized through the gateway port (no DVR). Upon port status transition to down, the external_mac was removed regardless of DVR being enabled or not, leading to centralize the FIP traffic for DVR – though it was for down ports that won’t accept traffic anyway.
20.3.1¶
Known Issues¶
The high availability of metadata service on isolated networks is limited or non-existent. IPv4 metadata is redundant when the DHCP agent managing it is redundant, but recovery is tied to the renewal of the DHCP lease, making most recoveries very slow. IPv6 metadata is not redundant at all as the IPv6 metadata address can only be configured in a single place at a time as it is link-local. Multiple agents trying to configure it will generate an IPv6 duplicate address detection failure.
Administrators may observe the IPv6 metadata address in “dadfailed” state in the DHCP namespace for this reason, which is only an indication it is not highly available. Until a redesign is made to the isolated metadata service there is not a better deployment option. See bug 1953165 for information.
The redirect-type=bridged option is only used if all the tenant networks connected to the router are of type VLAN or FLAT. In this case their traffic will be distributed. However, if there is a mix of VLAN/FLAT and geneve networks connected to the same router, the redirect-type option is not set, and therefore the traffic for the VLAN/FLAT networks will also be centralized but not tunneled.
Bug Fixes¶
1986003 Fixed an issue with concurrent requests to activate the same port binding where one of the requests returned a 500 Internal Server Error. With the fix one request will return successfully and the other will return a 409 Conflict (Binding already active). This fixes errors in nova live-migrations where those concurrent requests might be sent. Nova handles the 409/Conflict response gracefully.
Fix an issue in the OVN driver where network metadata could become unavailable if the metadata port was ever deleted, even if accidental. To re-create the port, a user can now disable, then enable, DHCP for one of the subnets associated with the network using the Neutron API. This will try and create the port, similar to what happens in the DHCP agent for ML2/OVS. For more information, see bug 2015377.
[bug 2003455] As part of a previous commit (https://review.opendev.org/c/openstack/neutron/+/875644) the redirect-type=bridged option was set in all the router gateway ports (cr-lrp ovn ports). However this was breaking the N/S traffic for geneve tenant networks connected to the provider networks through those routers with the redirect-type option enabled. To fix this we ensure that the redirect-type option is only set if all the networks connected to the router are of VLAN or FLAT type, otherwise we fall back to the default option. This also means that if there is a mix of VLAN and geneve tenant networks connected to the same router, the VLAN traffic will be centralized (but not tunneled). If the traffic for the VLAN/FLAT needs to be distributed, then it should use a different router.
20.3.0¶
New Features¶
Address scope is now added to all OVN LSP port registers in the northbound. Northd then writes the address scope from the northbound to the southbound so it can be used there by the ovn-bgp-agent.
After the port is considered as provisioned, the Nova port binding update could have not been received, leaving the port as not bound. Now the port provisioning method has an active wait that will retry several times, waiting for the port binding update. If received, the port status will be set as active if the admin state flag is set.
Core OVN now can set the destination host on the logical switch port during a live migration. That allows to prepare the destination host earlier, achieving a quicker live migration and a lower downtime during the switch between hosts. Neutron includes this information in the port options.
A new script to remove the duplicated port bindings was added. This script will list all
ml2_port_bindings
records in the database, finding those ones with the same port ID. Then the script removes those ones with status=INACTIVE. This script is useful to remove those leftovers that remain in the database after a failed live migration. It is important to remark that this script should not be executed during any live migration process.
Add
use_random_fully
setting to allow an operator to disable the iptables random-fully property on an iptable rules.
Known Issues¶
Until the OVN bug (https://bugzilla.redhat.com/show_bug.cgi?id=2162756) is fixed, setting the “reside-on-redirect-chassis” to true for the logical router port associated to vlan provider network is needed. This workaround makes the traffic centrallized, but not tunneled, through the node with the gateway port, thus avoiding MTU issues.
If the
use_random_fully
setting is disabled, it will prevent random fully from being used and if there’re 2 guests in different networks using the same source_ip and source_port and they try to reach the same dest_ip and dest_port, packets might be dropped in the kernel do to the racy tuple generation . Disabling this setting should only be done if source_port is really important such as in network firewall ACLs and that the source_ip are never repeating within the platform.
Upgrade Notes¶
The default value for the
metadata_workers
configuration option has changed to 0 for the ML2/OVN driver. Since [OVN] Allow to execute “MetadataProxyHandler” in a local thread, the OVN metadata proxy handler can be spawned in the same process of the OVN metadata agent, in a local thread. That reduces the number of OVN SB database connections to one.
Bug Fixes¶
[bug 2003455] It is added an extra checking to ensure the “reside-on-redirect-chassis” is set to true for the logical router port associated to vlan provider network despite having the “ovn_distributed_floating_ip” enabled or not. This is needed as there is an OVN bug (https://bugzilla.redhat.com/show_bug.cgi?id=2162756) making it not work as expected. Until that is fixed, we need these workaround that makes the traffic centrallized, but not tunneled, through the node with the gateway port, thus avoiding MTU issues.
Normalise OVN agent heartbeat timestamp format to match other agent types. This fixes parsing of
GET /v2.0/agents
for some clients, such as gophercloud.
Fixes an issue in the ML2/OVN driver where the network segment tag was not being updated in the OVN Northbound database. For more information, see bug 1944708.
Neutron can record full connection using log-related feature introduced in OVN 21.12. For more info see bug LP#<https://bugs.launchpad.net/neutron/+bug/2003706>
Other Notes¶
The OVN migration performs validation by default. This validation means an instance is spawned and is tested by simple ping after the migration is finished. Also it tries to create new workload post migration. This is useful for very simple scenarios when migration is tested but is not really useful in production since likely the production envrionments already have running workloads. It makes more sense to require the validation explicitly rather than implicitly run it as the migration is mostly intended for production. The VALIDATE_MIGRATION now defaults to False and needs to be changed to True if validation upon request.
Since OVN 20.06, the “Chassis” register configuration is stored in the “other_config” field and replicated into “external_ids”. This replication is stopped in OVN 22.09. The ML2/OVN plugin tries to retrieve the “Chassis” configuration from the “other_config” field first; if this field does not exist (in OVN versions before 20.06), the plugin will use “external_ids” field instead. Neutron will be compatible with the different OVN versions (with and without “other_config” field).
20.2.0¶
New Features¶
OVN mechanism driver refuses to bind a port to a dead agent.
Other Notes¶
OVN driver reverted to using stateful NAT for floating IP implementation. The previous switch to stateless didn’t materialize the expected performance benefits and instead introduced problems with potential hardware offloading.
20.0.0¶
New Features¶
Add the shared field to security group API responses and support using shared as a query filter. For more information see bug 1942615.
Neutron now supports the placement enforcement for the guaranteed minimum bandwidth QoS rule type with direct-phyisical vnic_type as well. The data plane enforcement of such rule and vnic_type combination is still not supported.
Add
request_body
field to router callback event payloads. The field record the origin request body from user.
Add
BEFORE_UPDATE
callback event for router gateway.
Local IP - a virtual IP that can be shared across multiple ports/VMs (similar to anycast IP) and is guaranteed to only be reachable within the same physical server/node boundaries. The feature is primarily focused on high efficiency and performance of the networking data plane for very large scale clouds and/or clouds with high network throughput demands.
Added two new API methods to
QuotaDriverAPI
class.get_resource_usage
returns the current resource usage.quota_limit_check
checks the current resource usage of several resources against a set of deltas (a dictionary of resource names and resource counters).
Add support for VNIC type
remote-managed
in OVN. The OVN driver can now bind remote managed ports to SmartNIC DPUs. SmartNIC DPU portbinding requires OVN version 21.12 or above, compiled with OVN VIF version 21.12 or above.
Since this version, the support for stateless security groups is mandatory. The minimum OVN NB schema version must be 5.17.
Virtual ports are supported in OVN since version 2.12. Since Yoga, this support is mandatory. The minimum OVN SB schema version must be 2.5.
Report packet processing capacity on the OVS agent resource provider as the new
NET_PACKET_RATE_KILOPACKET_PER_SEC
,NET_PACKET_RATE_EGR_KILOPACKET_PER_SEC
orNET_PACKET_RATE_IGR_KILOPACKET_PER_SEC
resource inventory. This is similar to how the bandwidth resource is reported today. The former is used for non-hardware-offloaded OVS deployments, where packets processed from both ingress and egress directions are handled by the same set of CPU cores. Remaining inventories are used for hardware-offloaded OVS, where the incoming and outgoing packets are handled by independent hardware resources.
Added port-resource-request-groups API extension, that provides support for the new format of port’s
resource_request
andbinding:profile.allocation
attributes. The new format allows to request multiple groups of resources and traits from the same RP subtree.Assigning a new
QoS policy
withminimum_packet_rate
rule to analready bound port
updates the allocation in Placement.NOTE
: Placement allocation update is not supported if original QoS policy had nominimum_packet_rate
rule. Changing from direction-lessminimum_packet_rate
rule to a direction-orientedminimum_packet_rate
rule is not supported.
New configuration options for neutron-ovs-agent under section
[ovs]
:resource_provider_packet_processing_without_direction
,resource_provider_packet_processing_with_direction
andresource_provider_packet_processing_inventory_defaults
.resource_provider_packet_processing_without_direction
controls the minimum packet rate the OVS backend can guarantee in kilo (1000) packet per second.resource_provider_packet_processing_with_direction
is similar to the first option, but used in case the OVS backend has hardware offload capabilities. The last option can be used to tune the other fields (allocation_ratio
,min_unit
,max_unit
,reserved
,step_size
) of resource provider inventories.
Floating IP QoS network inheritance is now available for OVN L3 plugin QoS extension. If a network, hosting a floating IP, has a QoS associated, the floating IP addresses will inherit the network QoS policy and will apply on the OVN backend.
Added
qos-pps-minimum-rule-alias
API extension to enable GET, PUT and DELETE operations on QoS minimum packet rate rule without specifying policy ID.
Enabled placement enforcement for QoS minimum packet rate rule in OVS backend.
Added new API extension to QoS service plugin to support CRUD operations for minimum packet rate rule in Neutron server.
Added a check to verify if all rows of
ml2_port_bindings
table in the DB are using the new format forprofile
column. This check is part of upgrade check, that can be executed withneutron-status upgrade check
command. If some rows are using obsolete format, they can be sanitized with a script that can be executed withneutron-sanitize-port-binding-profile-allocation
command.
Upgrade Notes¶
A unique constraint for (network_id, network_type, physical_network) is added to the networksegments table. This was done to prevent race conditions on dynamic segment allocation. Operators having networks with multiple segments (e.g. when using hierarchical portbinding) should check that this constraint is not violated with the included upgrade-check.
Deprecation Notes¶
Config option
allow_overlapping_ips
is deprecated for removal now. Default value for that option is now changed to theTrue
in the default IPAM module of Neutron, as the only reason it was defaulting toFalse
was to keep compatibility with Nova security group code that was removed already. The config option itself will removed in theZ
release.
The
[agent] veth_mtu
parameter of ML2 OVS mechanism driver configuration has been deprecated. This parameter has had no effect since the Wallaby release.
Bug Fixes¶
Changes the API behaviour while using OVN driver to enforce that it’s not possible to delete all the IPs from a router port. For more info see bug LP#1948457
Support for the extensions
dns_domain_ports
andsubnet_dns_publish_fixed_ip
belonging to the DNS integration is now properly announced by the OVN driver. See bug 1947127
For IPv4 subnets when dns_nameservers is not set in the subnet, servers defined in ‘ovn/dns_servers’ config option or system’s resolv.conf are used, but for IPv6 subnets these are not used. The same will now be used for IPv6 subnets too. Additionally dns servers added in ‘ovn/dns_servers’ config option or system’s resolv.conf will be filtered as per the subnet’s IP version. For more info see the bug report 1951816.
Fixes bug 1943724.
The agent reporting state to the server now uses a RPC timeout set to the report_interval configuration option value. See 1948676.
Other Notes¶
Abstract method
plug_new
from the neutron.agent.linux.interface.LinuxInterfaceDriver now has additional positional argumentlink_up
. Usage of this method withoutlink_up
is now not possible. Third-party drivers which inherit from this base class now have to update the implementation of theirplug_new
method.
Class “PortBindingMixin” is removed. Last time this class was used in-tree was in Kilo release, in “N1kvNeutronPluginV2” and “SdnvePluginV2” classes. No active project is using it anymore. Table “portbindingports” is dropped from the database; it was used only in “PortBindingMixin”.
Any L3 agent extension must inherit from
neutron_lib.agent.l3_extension.L3AgentExtension
. TheL3AgentExtensionsManager
makes this check during the initial loading. AL3ExtensionException
will be raised if the condition is not met.
New service plugin and openvswitch agent extension could be configured in order to enable Local IP feature:
local_ip
OVN mechanism driver allows only to have one physical network per bridge.
It is assumed now that OVN supports Northbound table
Port_Group
by default. This table was added in the DB schema version 5.11. A sanity check is included if OVN is defined inml2.mechanism_drivers
configuration option.
OVN driver now uses stateless NAT for floating IP implementation. This allows to avoid hitting conntrack, potentially improving performance and also allowing to offload NAT rules to hardware.