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
Change-Id: Ia106d81c1b2588e5d938d2238c8a2f6660bf5ef1
(cherry picked from commit 5d9b23c6021ad961fafc17866c6b8ea50f2dc824)
Reviewed: https:/ /review. opendev. org/c/openstack /octavia/ +/916761 /opendev. org/openstack/ octavia/ commit/ d943336c0eb7461 838a040e2633550 03682df960
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit d943336c0eb7461 838a040e2633550 03682df960
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 1fafc17866c6b8e a50f2dc824)
Change-Id: Ia106d81c1b2588
(cherry picked from commit 5d9b23c6021ad96