When the worker calculates the delta for plugging/unplugging subnets,
it need to check the provisioning_status of the members. But in
amphorav1, this status comes from the LB DB object that is passed to
taskflow. If the provisioning_status is modified by another task
(MarkMemberPendingDeleteInDb), the LB object is not updated.
We need to reload it from the DB to get the current status of the
members.
Note: this patch is for stable branches only as the amphorav1 driver was
removed during the Bobcat cycle
Closes-Bug: #2027967
Change-Id: Iea0ffee1a7307b0852c5a9faf31739c96e76a7ee
(cherry picked from commit 8b196bb3bb05c9d87dae688750457dbb944d4d1b)
(cherry picked from commit 68a3379cda266fac649ef984404090d9cfa246ac)
(cherry picked from commit 13070bd173138189c421c92078bf34ccff7697ab)
(cherry picked from commit 0b07b39816c5fa0fd2bfe88a3541372918722385)
Reviewed: https:/ /review. opendev. org/c/openstack /octavia/ +/888989 /opendev. org/openstack/ octavia/ commit/ 8447d91b6582d82 16e75896121d176 ce312c35a8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 8447d91b6582d82 16e75896121d176 ce312c35a8
Author: Gregory Thiemonge <email address hidden>
Date: Mon Jul 17 11:02:08 2023 +0200
Fix amphorav1 member deletion bug
When the worker calculates the delta for plugging/unplugging subnets, PendingDeleteIn Db), the LB object is not updated.
it need to check the provisioning_status of the members. But in
amphorav1, this status comes from the LB DB object that is passed to
taskflow. If the provisioning_status is modified by another task
(MarkMember
We need to reload it from the DB to get the current status of the
members.
Note: this patch is for stable branches only as the amphorav1 driver was 0852c5a9faf3173 9c96e76a7ee 87dae688750457d bb944d4d1b) c649ef984404090 d9cfa246ac) 9c421c92078bf34 ccff7697ab) fd2bfe88a354137 2918722385)
removed during the Bobcat cycle
Closes-Bug: #2027967
Change-Id: Iea0ffee1a7307b
(cherry picked from commit 8b196bb3bb05c9d
(cherry picked from commit 68a3379cda266fa
(cherry picked from commit 13070bd17313818
(cherry picked from commit 0b07b39816c5fa0