commit d73df70d850a927a7673e150ab6279a6bb77435f
Author: Elena Ezhova <email address hidden>
Date: Wed Jun 22 19:36:56 2016 +0300
Cleanup deleted load balancers in housekeeper's db_cleanup
When load balancer is deleted the corresponding DB entry is marked
as DELETED and is never actually removed along with a VIP
associated whit this load balancer.
This adds a new method to db_cleanup routine that scans the DB for
load balancers with DELETED provisioning_status and deletes them
from db if they are older than load_balancer_expiry_age. Corresponding
VIP entries are deleted in cascade.
Added new config option `load_balancer_expiry_age` to the `house_keeping`
config section.
Also changed the default value of exp_age argument to
CONF.house_keeping.amphora_expiry_age in check_amphora_expiry_age
method.
Reviewed: https:/ /review. openstack. org/332913 /git.openstack. org/cgit/ openstack/ octavia/ commit/ ?id=d73df70d850 a927a7673e150ab 6279a6bb77435f
Committed: https:/
Submitter: Jenkins
Branch: master
commit d73df70d850a927 a7673e150ab6279 a6bb77435f
Author: Elena Ezhova <email address hidden>
Date: Wed Jun 22 19:36:56 2016 +0300
Cleanup deleted load balancers in housekeeper's db_cleanup
When load balancer is deleted the corresponding DB entry is marked
as DELETED and is never actually removed along with a VIP
associated whit this load balancer.
This adds a new method to db_cleanup routine that scans the DB for expiry_ age. Corresponding
load balancers with DELETED provisioning_status and deletes them
from db if they are older than load_balancer_
VIP entries are deleted in cascade.
Added new config option `load_balancer_ expiry_ age` to the `house_keeping`
config section.
Also changed the default value of exp_age argument to house_keeping. amphora_ expiry_ age in check_amphora_ expiry_ age
CONF.
method.
DocImpact
Closes-Bug #1573725
Change-Id: I4f99d38f44f218 ac55a76ef062ed9 ea401c0a02d