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/ +/844370 /opendev. org/openstack/ designate/ commit/ 5b1b404e359a516 ab468e3568412f4 c69a7a0f5b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 5b1b404e359a516 ab468e3568412f4 c69a7a0f5b
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