commit de9e632e1464173ce474d0a3e2a4c10a49ebc117
Author: Jakub Libosvar <email address hidden>
Date: Fri Aug 19 20:16:09 2022 +0000
ovn: Don't fail db sync if new IP allocation fails for metadata
There is a scenario where IP allocation pool is depleted but OVN
metadata port got removed its IP manually. The DB sync script will
attempt to allocate a new IP address if DHCP is enabled in the subnet.
Since the pool has no available IP addresses an exception is raised and
the whole db sync stops.
This patch simply catches the exception, logs and error and continues
syncing other resources.
Closes-bug: #1987135
Signed-off-by: Jakub Libosvar <email address hidden>
Change-Id: Iaa7b0d7ceb244a38fddd7676066683bf2ca72341
(cherry picked from commit d237a2a83034fab809517a39dddee15995226131)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/854011 /opendev. org/openstack/ neutron/ commit/ de9e632e1464173 ce474d0a3e2a4c1 0a49ebc117
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit de9e632e1464173 ce474d0a3e2a4c1 0a49ebc117
Author: Jakub Libosvar <email address hidden>
Date: Fri Aug 19 20:16:09 2022 +0000
ovn: Don't fail db sync if new IP allocation fails for metadata
There is a scenario where IP allocation pool is depleted but OVN
metadata port got removed its IP manually. The DB sync script will
attempt to allocate a new IP address if DHCP is enabled in the subnet.
Since the pool has no available IP addresses an exception is raised and
the whole db sync stops.
This patch simply catches the exception, logs and error and continues
syncing other resources.
Closes-bug: #1987135 38fddd767606668 3bf2ca72341 809517a39dddee1 5995226131)
Signed-off-by: Jakub Libosvar <email address hidden>
Change-Id: Iaa7b0d7ceb244a
(cherry picked from commit d237a2a83034fab