From 40a229bc9aae50cb3d138734b57d677adcff5acb Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Tue, 12 Sep 2023 10:02:14 -0230 Subject: [PATCH] [designate] include additional configs and log files Designate deploys bind DNS and unbound services which do not currently have their logs or ansible generate configuration collected. Signed-off-by: Brent Eagles --- sos/report/plugins/openstack_designate.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sos/report/plugins/openstack_designate.py b/sos/report/plugins/openstack_designate.py index 616bb0c158..0d5b7c296d 100644 --- a/sos/report/plugins/openstack_designate.py +++ b/sos/report/plugins/openstack_designate.py @@ -17,6 +17,7 @@ class OpenStackDesignate(Plugin): profiles = ('openstack', 'openstack_controller') var_puppet_gen = "/var/lib/config-data/puppet-generated/designate" + var_ansible_gen = "/var/lib/config-data/ansible-generated" def setup(self): # collect current pool config @@ -32,6 +33,9 @@ def setup(self): "/etc/designate/*", self.var_puppet_gen + "/etc/designate/designate.conf", self.var_puppet_gen + "/etc/designate/pools.yaml", + self.var_ansible_gen + "/designate/etc/designate/named.conf", + self.var_ansible_gen + "/designate/etc/designate/named/*", + self.var_ansible_gen + "/unbound/*" ]) # logs @@ -39,11 +43,15 @@ def setup(self): self.add_copy_spec([ "/var/log/designate/*", "/var/log/containers/designate/*", + "/var/log/containers/designate-bind/*", + "/var/log/containers/unbound/*" ]) else: self.add_copy_spec([ "/var/log/designate/*.log", - "/var/log/containers/designate/*.log" + "/var/log/containers/designate/*.log", + "/var/log/containers/designate-bind/*.log", + "/var/log/containers/unbound/*.log" ]) subcmds = [