Bug 2245159
| Summary: | Error: Failed to create neutron ports for node - Ironic nodes stop mapping neutron segments and fail to clean or deploy with RPN | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Chris Janiszewski <cjanisze> | |
| Component: | openstack-neutron | Assignee: | Harald Jensås <hjensas> | |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Eran Kuris <ekuris> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 16.2 (Train) | CC: | chrisw, hjensas, jlibosva, mburns, rhos-maint, sbaker, scohen | |
| Target Milestone: | async | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2263310 (view as bug list) | Environment: | ||
| Last Closed: | 2024-06-24 20:01:56 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | 2263310 | |||
| Bug Blocks: | ||||
|
Description
Chris Janiszewski
2023-10-19 19:33:38 UTC
So the root cause here is that OvnSbSynchronizer is assuming all nodes are running OVN-Controller. Additionally, the configuration option that is supposed to turn the sync to 'off' or 'log' mode does not honor the configuration option see [3]. neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovn_db_sync.OvnSbSynchronizer When the `sync_hostname_and_physical_networks` method run's it will compare host physical_networks to mappings in neutrons `segmenthostmappings` table. Any mappings in neutron that is not seen on OVN chassis is then treated as "stale" and cleaned up. This is problematic when there are other plug-ins/agents involved, for example ML2 networking-baremetal[2]. Any segment-host mapping created for baremetal nodes are deleted from the database. And since there is de-duplication[1] on updates from agents - the segment-host mappings are not re-created unless services are re-started or the baremetal node is deleted and re-created in the ironic service. The OvnSbSynchronizer should not remove mappings unless they belong to OVN hosts. [1] https://opendev.org/openstack/neutron/commit/176503e610aee16cb5799a77466579bc55129450 [2] https://opendev.org/openstack/networking-baremetal/src/branch/master/networking_baremetal/agent/ironic_neutron_agent.py [3] https://bugs.launchpad.net/neutron/+bug/2040166 This is now fixed in the current release of 17.1 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |