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/ +/847432 /opendev. org/openstack/ designate/ commit/ 5e569a3c7646042 131926b090f570c a5082503e3
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit 5e569a3c7646042 131926b090f570c a5082503e3
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 ed3afa35aed675c 15c60f149d)
Change-Id: I782bf38a68f24a
(cherry picked from commit 66cc876eadd9a4d