Fix zone update when adding new Bind9 target to pool.
When a new Bind9 is added to the pool, Designate will trigger 'modzone'
rndc command that will fail, unless zone is already present on the backend.
This change will first verify that the zone is present on the backend,
before an update attempt. If zone is not present - zone creation will be
triggered.
Reviewed: https:/ /review. opendev. org/c/openstack /designate/ +/828679 /opendev. org/openstack/ designate/ commit/ 66cc876eadd9a4d ed3afa35aed675c 15c60f149d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 66cc876eadd9a4d ed3afa35aed675c 15c60f149d
Author: Dmitry Galkin <email address hidden>
Date: Thu Feb 10 10:40:35 2022 +0100
Fix zone update when adding new Bind9 target to pool.
When a new Bind9 is added to the pool, Designate will trigger 'modzone'
rndc command that will fail, unless zone is already present on the backend.
This change will first verify that the zone is present on the backend,
before an update attempt. If zone is not present - zone creation will be
triggered.
Closes-Bug: 1958409
Co-authored-by: Kiran Pawar <email address hidden> 2e7133ff2afad7c 96e2ae6b7f0
Change-Id: I782bf38a68f24a