When creating a LB + a listener with an allowed_cidr with the
fully-populated API, an issue happened when Octavia validated that the
allowed_cidrs and the VIP ip address have the same IP version. The
vip.ip_address value was not updated in the load balancer object,
forcing the expiration of the DB object before entering _graph_create
fixes this issue.
Note: there's no change in the tests, the test function for this feature
exists, looks correct, and passes successfully, the bug is only
reproducible in octavia-api.
Reviewed: https:/ /review. opendev. org/c/openstack /octavia/ +/912721 /opendev. org/openstack/ octavia/ commit/ 5d9b23c6021ad96 1fafc17866c6b8e a50f2dc824
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 5d9b23c6021ad96 1fafc17866c6b8e a50f2dc824
Author: Gregory Thiemonge <email address hidden>
Date: Wed Mar 13 04:31:17 2024 -0400
Fix fully-populated API with allowed_cidrs
When creating a LB + a listener with an allowed_cidr with the
fully-populated API, an issue happened when Octavia validated that the
allowed_cidrs and the VIP ip address have the same IP version. The
vip.ip_address value was not updated in the load balancer object,
forcing the expiration of the DB object before entering _graph_create
fixes this issue.
Note: there's no change in the tests, the test function for this feature
exists, looks correct, and passes successfully, the bug is only
reproducible in octavia-api.
Closes-Bug: 2057751 e5d938d2238c8a2 f6660bf5ef1
Change-Id: Ia106d81c1b2588