Decrease time_threshold for zone_purge task.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Designate Charm |
Fix Released
|
Undecided
|
Unassigned | ||
designate (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
[Environment]
Ussuri
Charms 20.08
[Description]
After deleting a zone on a designate-bind backend, the zone
remains active until the zone purge producer task gets executed.
$ openstack zone show 98c02cfb-5a2f-xxxx
Could not find Zone
$ openstack zone delete 98c02cfb-5a2f-xxxx
Could not find Zone
mysql> select * from zones where id="98c02cfb-
Empty set (0.01 sec)
363:2020-09-25 05:23:41.154 1685647 DEBUG designate.
No zone was found by this criteria, therefore, the hard delete zone from the database https:/
didn't apply.
This delta is governed by time_threshold https:/
which is set to 1 week.
### Proposed actions
1) Make the time_threshold shorter to a 1 hour span by default.
2) Don't list deleted_at zones in designate list operation.
Changed in charm-designate: | |
milestone: | none → 20.10 |
Changed in charm-designate: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. opendev. org/756910 /git.openstack. org/cgit/ openstack/ charm-designate /commit/ ?id=1aefb4c274f 58bbd496d348d8a ccd2b668f61ae9
Committed: https:/
Submitter: Zuul
Branch: master
commit 1aefb4c274f58bb d496d348d8accd2 b668f61ae9
Author: Jorge Niedbalski <email address hidden>
Date: Thu Oct 8 15:06:21 2020 -0300
Make zone_purge time threshold configurable.
The default of one week for how old deleted zones time-threshold) .
should be purged is too long. This patch makes
it 1 hour by default and adds a new config
option for it (zone-purge-
Change-Id: Ifc6d43ca897c21 8ae365b4881a2f0 9b61542efa4
Fixes-Bug: #1899064
Signed-off-by: Jorge Niedbalski <email address hidden>