"clean_zonefile" option in "targets" section of "pools.yaml" file should be exposed as a charm option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Designate Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
"clean_zonefile" in the "targets" section of the "/etc/designate
At the moment when a zone is deleted from Designate, the designate-bind containers don't delete the zone file in /var/cache/bind for that zone.
Designate has code to get designate-bind to delete files for deleted zones. This was found in /usr/lib/
self._clean_
if self._clean_
rndc_
I was able to get Designate to clean the zone files for deleted zones by making the following changes in templates/
$ diff designate/
40d39
< clean_zonefile: true
55d53
< clean_zonefile: true
The updated pools.yaml looks like the following (hostnames and IP addresses have been changed):
ubuntu@
- id: 794ccc2c-
name: default
description: Pool genergated by Juju
ns_records:
- hostname: designate1.
priority: 10
- hostname: designate2.
priority: 10
- hostname: designate3.
priority: 10
nameservers:
- host: 100.86.0.211
port: 53
- host: 100.86.0.212
port: 53
- host: 100.86.0.213
port: 53
targets:
- type: bind9
masters:
- host: 100.86.0.216
port: 5354
- host: 100.86.0.214
port: 5354
- host: 100.86.0.215
port: 5354
options:
host: 100.86.0.211
rndc_host: 100.86.0.211
port: 53
- type: bind9
masters:
- host: 100.86.0.216
port: 5354
- host: 100.86.0.214
port: 5354
- host: 100.86.0.215
port: 5354
options:
host: 100.86.0.212
rndc_host: 100.86.0.212
port: 53
- type: bind9
masters:
- host: 100.86.0.216
port: 5354
- host: 100.86.0.214
port: 5354
- host: 100.86.0.215
port: 5354
options:
host: 100.86.0.213
rndc_host: 100.86.0.213
port: 53
also_notifies: []
The goal of this change will be to add this as a configurable option to allow end-users to decide whether or not to delete a zone file when the zone is deleted.
Changed in charm-designate: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |