-
Bug
-
Resolution: Done
-
Normal
-
rhel-8.9.0
-
None
-
Moderate
-
rhel-sst-insights
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
If docs needed, set a value
-
-
All
-
None
-
57,005
Description of problem:
Can reproduce below error after run "insights-client --unregister && insights-client --register".
Full log is in attachment(os_tests.tests.test_general_check.TestGeneralCheck.test_collect_insights_result.debug).
Could not serialize insights.specs.Specs.amq_broker to json: FileNotFoundError(2, 'No such file or directory')
Fatal error
Traceback (most recent call last):
File "/var/lib/insights/last_stable.egg/insights/client/phase/v1.py", line 33, in _f
func(client, config)
File "/var/lib/insights/last_stable.egg/insights/client/phase/v1.py", line 321, in collect_and_output
insights_archive = client.collect()
File "/var/lib/insights/last_stable.egg/insights/client/_init_.py", line 69, 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 503, in done
return self.archive.create_tar_file()
File "/var/lib/insights/last_stable.egg/insights/client/archive.py", line 183, in create_tar_file
logger.debug("Tar File Size: %s", str(os.path.getsize(tar_file_name)))
File "/usr/lib64/python3.6/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/insights-client/insights-archive-6uz9d4ru/insights-ip-10-22-1-171.us-west-2.compute.internal-20230406084619.tar.gz'
Starting to collect Insights data for ip-10-22-1-171.us-west-2.compute.internal
Uploading Insights data.
Successfully uploaded report from ip-10-22-1-171.us-west-2.compute.internal to account 477931.
View the Red Hat Insights console at https://console.redhat.com/insights/
RHEL Version:
RHEL-8.9(4.18.0-483.el8.x86_64)
How reproducible:
100%
Steps to Reproduce:
1. Boot into an RHEL-8.9 system with insights registered
2. Try to unregister insights and register it again
#insights-client --unregister && insights-client --register
Actual results:
insights-client throw FileNotFoundError
Expected results:
No such error
Additional info:
- N/A
- external trackers