aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Johnson <johnsomor@gmail.com>2020-08-13 15:21:28 -0700
committerJake Hunsaker <jhunsake@redhat.com>2020-08-17 15:20:18 -0400
commitb4dce020c75ca03911ad729b5ad68bd3921585ef (patch)
treedeef064199722de1b95c9c8603899638468eecc6
parent064205a6fe78829239631dac751823c2a32ec2bd (diff)
downloadsos-b4dce020c75ca03911ad729b5ad68bd3921585ef.tar.gz
[openstack_designate] Add list command output
This patch adds the various "list" command output for OpenStack designate to the SOS report. Closes: #2150 Signed-off-by: Michael Johnson <johnsomor@gmail.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/openstack_designate.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/sos/report/plugins/openstack_designate.py b/sos/report/plugins/openstack_designate.py
index 653b20e5..39b993cd 100644
--- a/sos/report/plugins/openstack_designate.py
+++ b/sos/report/plugins/openstack_designate.py
@@ -38,6 +38,35 @@ class OpenStackDesignate(Plugin):
"/var/log/containers/designate/*.log"
])
+ subcmds = [
+ 'dns service list',
+ 'dns quota list',
+ 'ptr record list',
+ 'tld list',
+ 'tsigkey list --column name --column algorithm --column scope',
+ 'zone blacklist list',
+ 'zone export list',
+ 'zone import list',
+ 'zone list',
+ 'zone transfer accept list',
+ 'zone transfer request list'
+ ]
+
+ # commands
+ self.add_cmd_output([
+ 'openstack %s --all-projects' % sub for sub in subcmds
+ ])
+
+ # get recordsets for each zone
+ cmd = "openstack zone list -f value -c id"
+ ret = self.exec_cmd(cmd)
+ if ret['status'] == 0:
+ for zone in ret['output'].splitlines():
+ zone = zone.split()[0]
+ self.add_cmd_output(
+ "openstack recordset list --all-projects %s" % zone,
+ subdir='recordset')
+
def postproc(self):
protect_keys = [
"password", "connection", "transport_url", "admin_password",