Decrease time_threshold for zone_purge task.

Bug #1899064 reported by Jorge Niedbalski
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Designate Charm
Fix Released
designate (Ubuntu)

Bug Description


Charms 20.08


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-5a2f-xxxx";
Empty set (0.01 sec)

363:2020-09-25 05:23:41.154 1685647 DEBUG designate.central.service [req-8223a934-84df-44eb-97bd-a0194343955a - - - - -] Performing purge with limit of 100 and criterion of {u'deleted': u'!0', u'deleted_at': u'<=2020-09-18 05:23:41.143790', u'shard': u'BETWEEN 1365,2729'} purge_zones /usr/lib/python2.7/dist-packages/designate/central/

No zone was found by this criteria, therefore, the hard delete zone from the database
didn't apply.

This delta is governed by time_threshold
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-designate (master)

Submitter: Zuul
Branch: master

commit 1aefb4c274f58bbd496d348d8accd2b668f61ae9
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
    should be purged is too long. This patch makes
    it 1 hour by default and adds a new config
    option for it (zone-purge-time-threshold).

    Change-Id: Ifc6d43ca897c218ae365b4881a2f09b61542efa4
    Fixes-Bug: #1899064
    Signed-off-by: Jorge Niedbalski <email address hidden>

Changed in charm-designate:
status: In Progress → Fix Committed
Changed in charm-designate:
milestone: none → 20.10
Changed in charm-designate:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.