diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-03-20 13:59:14 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-21 12:43:23 +0000 |
commit | 4f0b4ae64e8561b2e73a4a4294982ec2ced2c74b (patch) | |
tree | 50d8a0fac3ceb9f30a5c04f9d36e2bad0ac0dee3 | |
parent | 7d2661b8153220157b6e47eb6d89b030b2c1718d (diff) | |
download | sos-4f0b4ae64e8561b2e73a4a4294982ec2ced2c74b.tar.gz |
[openstack_neutron] skip collecting /var/lib/neutron/lock
Since the directory can have huge number of less important files,
don't collect but just list them.
Resolves: #1598
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/openstack_neutron.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/plugins/openstack_neutron.py b/sos/plugins/openstack_neutron.py index 9ae741f3..d338ee21 100644 --- a/sos/plugins/openstack_neutron.py +++ b/sos/plugins/openstack_neutron.py @@ -41,7 +41,12 @@ class OpenStackNeutron(Plugin): self.var_puppet_gen + "/etc/default/neutron-server", self.var_puppet_gen + "/etc/my.cnf.d/tripleo.cnf" ]) + # copy whole /var/lib/neutron except for potentially huge lock subdir; + # rather take a list of files in the dir only self.add_copy_spec("/var/lib/neutron/") + self.add_forbidden_path("/var/lib/neutron/lock") + self.add_cmd_option("ls -laZR /var/lib/neutron/lock") + if self.get_option("verify"): self.add_cmd_output("rpm -V %s" % ' '.join(self.packages)) |