insights-client throws a fatal error when obfuscation is enabled
Issue
-
When obfuscation is enabled, running
insights-clientthrows the below fatal errorStarting to collect Insights data for localhost.localdomain soscleaner is a tool to help obfuscate sensitive information from an existing sosreport. Please review the content before passing it along to any third party. /var/tmp/z1eeybq0/insights-localhost-20220425172911 appears to be a inode/directory - continuing Unable to determine system hostname!!! Automatic Hostname Data Obfuscation Will Not Occur!!! To Remedy This Situation please enable the 'general' plugin when running sosreport and/or be sure the 'hostname' symlink exists in the root directory of you sosreport Fatal error Traceback (most recent call last): File "/var/lib/insights/last_stable.egg/insights/client/phase/v1.py", line 32, in _f func(client, config) File "/var/lib/insights/last_stable.egg/insights/client/phase/v1.py", line 313, in collect_and_output insights_archive = client.collect() File "/var/lib/insights/last_stable.egg/insights/client/__init__.py", line 72, in _init_connection return func(self, *args, **kwargs) File "/var/lib/insights/last_stable.egg/insights/client/__init__.py", line 392, in collect tar_file = client.collect(self.config) File "/var/lib/insights/last_stable.egg/insights/client/client.py", line 303, in collect output = dc.done(collection_rules, rm_conf) File "/var/lib/insights/last_stable.egg/insights/client/data_collector.py", line 472, in done cleaner.clean_report(clean_opts, self.archive.archive_dir) File "/var/lib/insights/last_stable.egg/insights/contrib/soscleaner.py", line 790, in clean_report for f in self._excluded_files(): File "/var/lib/insights/last_stable.egg/insights/contrib/soscleaner.py", line 740, in _excluded_files excluded_files.append(meta_data["results"]["object"]["relative_path"]) TypeError: list indices must be integers or slices, not str Starting to collect Insights data for localhost.localdomain soscleaner is a tool to help obfuscate sensitive information from an existing sosreport. Please review the content before passing it along to any third party. /var/tmp/4qv1kis6/insights-localhost-20220425172931 appears to be a inode/directory - continuing Unable to determine system hostname!!! Automatic Hostname Data Obfuscation Will Not Occur!!! To Remedy This Situation please enable the 'general' plugin when running sosreport and/or be sure the 'hostname' symlink exists in the root directory of you sosreport Working Directory - /var/tmp/4qv1kis6/soscleaner-1416706971983809 Completed IP Report Completed Hostname Report Completed Domainname Report Beginning Clean Up Process Removing Working Directory - /var/tmp/4qv1kis6/soscleaner-1416706971983809 Clean Up Process Complete Archiving Complete Writing RHSM facts to /etc/rhsm/facts/insights-client.facts... Uploading Insights data. Successfully uploaded report from localhost.localdomain to account xxxxxx.
Environment
- Red Hat Insights
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.