aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Chapman <woppin@gmail.com>2021-03-04 22:54:40 +1100
committerJake Hunsaker <jhunsake@redhat.com>2021-06-24 13:38:33 -0400
commitfc0ae513b1630ecea96d89af1952d384995a3257 (patch)
tree88ca46ba5505322154fcad139a361587ef964023
parent0c7a25b005b7c9f19607952dcef6e0e417b7a65e (diff)
downloadsos-fc0ae513b1630ecea96d89af1952d384995a3257.tar.gz
[openstack_designate] Collect current pool configuration
Use designate-manage to grab the current pools from designate, in case they differ from the pools stored in /etc Signed-off-by: Michael Chapman <woppin@gmail.com>
-rw-r--r--sos/report/plugins/openstack_designate.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/sos/report/plugins/openstack_designate.py b/sos/report/plugins/openstack_designate.py
index 47c53bd5..0ae991b0 100644
--- a/sos/report/plugins/openstack_designate.py
+++ b/sos/report/plugins/openstack_designate.py
@@ -19,6 +19,16 @@ class OpenStackDesignate(Plugin):
var_puppet_gen = "/var/lib/config-data/puppet-generated/designate"
def setup(self):
+ # collect current pool config
+ pools_cmd = self.fmt_container_cmd(
+ self.get_container_by_name(".*designate_central"),
+ "designate-manage pool generate_file --file /dev/stdout")
+
+ self.add_cmd_output(
+ pools_cmd,
+ suggest_filename="openstack_designate_current_pools.yaml"
+ )
+
# configs
self.add_copy_spec([
"/etc/designate/*",