Skip to content

Commit b6145ee

Browse files
committed
Handle no more IP addresses available during a network sync
In some corner cases, like when db_sync is performed after OVS to OVN migration, an implicit metadata port creation on a network with depleted IP pool can raise IP allocation error. Just catch and log this error such that the db_sync tool can finish syncing. Change-Id: Ibb32ec5492c4fe00b9dac510f7e69160982992dd (cherry picked from commit a86e300)
1 parent 5c4f902 commit b6145ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,10 @@ def sync_networks_ports_and_dhcp_opts(self, ctx):
10281028
except RuntimeError:
10291029
LOG.warning("Create network in OVN NB failed for "
10301030
"network %s", network['id'])
1031+
except n_exc.IpAddressGenerationFailure:
1032+
LOG.warning("No more IP addresses available during "
1033+
"implicit port creation while creating "
1034+
"network %s", network['id'])
10311035

10321036
self._sync_metadata_ports(ctx, db_ports)
10331037

0 commit comments

Comments
 (0)