aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2017-10-26 12:12:25 +0000
committerBryn M. Reeves <bmr@redhat.com>2018-03-09 15:11:00 +0000
commitbecab7d603b86975c8712d73c738bbf621740b01 (patch)
treeff3a5c5c4bdb4ef1e91261bbf30c22a69bc768e0
parentff2b26dfe74e67ff969796b4f60bd5291a535277 (diff)
downloadsos-becab7d603b86975c8712d73c738bbf621740b01.tar.gz
[openstack_ironic] collect PXE environment information
This adds two directories, /httpboot and /tftpboot, as well as version of iPXE boot images package. Signed-off-by: Dmitry Tantsur <divius.inside@gmail.com>
-rw-r--r--sos/plugins/openstack_ironic.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sos/plugins/openstack_ironic.py b/sos/plugins/openstack_ironic.py
index 123d4b7c..51118634 100644
--- a/sos/plugins/openstack_ironic.py
+++ b/sos/plugins/openstack_ironic.py
@@ -63,10 +63,9 @@ class OpenStackIronic(Plugin):
"/var/log/containers/httpd/ironic-api/*log"
], sizelimit=self.limit)
- self.add_cmd_output('ls -laRt /var/lib/ironic/')
- self.add_cmd_output(
- 'ls -laRt ' + self.var_puppet_gen + '/var/lib/ironic/'
- )
+ for path in ['/var/lib/ironic', '/httpboot', '/tftpboot']:
+ self.add_cmd_output('ls -laRt %s' % path)
+ self.add_cmd_output('ls -laRt %s' % (self.var_puppet_gen + path))
if self.get_option("verify"):
self.add_cmd_output("rpm -V %s" % ' '.join(self.packages))