summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-09-11 19:05:59 +0000
committerGerrit Code Review <review@openstack.org>2019-09-11 19:05:59 +0000
commit17c26a47582518c3fad895febdaafac3a629ba6e (patch)
tree817b6fa1de3d60e7f50d217a78185bf38aa8c837
parentaed5dcdb68c74b08fa405ac50005753c5836ee5c (diff)
parentb591ad75002bbdf58fd4bf81576c255e818b9dd0 (diff)
downloaddesignate-17c26a47582518c3fad895febdaafac3a629ba6e.tar.gz
Merge "Only log unexpected rndc errors"
-rw-r--r--designate/backend/impl_bind9.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/designate/backend/impl_bind9.py b/designate/backend/impl_bind9.py
index aead79f7..0c1c853c 100644
--- a/designate/backend/impl_bind9.py
+++ b/designate/backend/impl_bind9.py
@@ -97,6 +97,7 @@ class Bind9Backend(base.Backend):
except exceptions.Backend as e:
# If create fails because the zone exists, don't reraise
if "already exists" not in six.text_type(e):
+ LOG.warning('RNDC call failure: %s', e)
raise
self.mdns_api.notify_zone_changed(
@@ -123,6 +124,7 @@ class Bind9Backend(base.Backend):
except exceptions.Backend as e:
# If zone is already deleted, don't reraise
if "not found" not in six.text_type(e):
+ LOG.warning('RNDC call failure: %s', e)
raise
def _execute_rndc(self, rndc_op):
@@ -138,5 +140,4 @@ class Bind9Backend(base.Backend):
LOG.debug('Executing RNDC call: %r', rndc_call)
utils.execute(*rndc_call)
except utils.processutils.ProcessExecutionError as e:
- LOG.info('RNDC call failure: %s', e)
raise exceptions.Backend(e)