Skip to content

Commit 9684f47

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 e461aab commit 9684f47

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
@@ -1037,6 +1037,10 @@ def sync_networks_ports_and_dhcp_opts(self, ctx):
10371037
except RuntimeError:
10381038
LOG.warning("Create network in OVN NB failed for "
10391039
"network %s", network['id'])
1040+
except n_exc.IpAddressGenerationFailure:
1041+
LOG.warning("No more IP addresses available during "
1042+
"implicit port creation while creating "
1043+
"network %s", network['id'])
10401044

10411045
self._sync_metadata_ports(ctx, db_ports)
10421046

0 commit comments

Comments
 (0)