Bug 1882015

Summary: Could not initialize 'report': dictionary keys changed during iteration
Product: [Fedora] Fedora Reporter: Marius Vollmer <mvollmer>
Component: sosAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 33CC: bmr, jhunsaker, pmoravec, sbonazzo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-4.0-2.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 00:15:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Vollmer 2020-09-23 15:27:26 UTC
sos-4.0-1.fc33.noarch

When uncommenting "enable-plugins" in /etc/sos/sos.conf, sos fails with a Python runtime error:

# grep ^enable /etc/sos/sos.conf
enable-plugins = host,logs
# sos report -l --debug
Could not initialize 'report': dictionary keys changed during iteration
Traceback (most recent call last):
  File "/usr/sbin/sos", line 21, in <module>
    sos = SoS(sys.argv[1:])
  File "/usr/lib/python3.9/site-packages/sos/__init__.py", line 121, in __init__
    self._init_component()
  File "/usr/lib/python3.9/site-packages/sos/__init__.py", line 181, in _init_component
    raise err
  File "/usr/lib/python3.9/site-packages/sos/__init__.py", line 176, in _init_component
    self._component = _to_load(self.parser, self.args, self.cmdline)
  File "/usr/lib/python3.9/site-packages/sos/report/__init__.py", line 120, in __init__
    super(SoSReport, self).__init__(parser, args, cmdline)
  File "/usr/lib/python3.9/site-packages/sos/component.py", line 86, in __init__
    self.opts = self.load_options()
  File "/usr/lib/python3.9/site-packages/sos/component.py", line 208, in load_options
    opts.update_from_conf(self.args.config_file, self.args.component)
  File "/usr/lib/python3.9/site-packages/sos/options.py", line 223, in update_from_conf
    _update_from_section(component, config)
  File "/usr/lib/python3.9/site-packages/sos/options.py", line 189, in _update_from_section
    for key in odict.keys():
RuntimeError: dictionary keys changed during iteration

Comment 1 Marius Vollmer 2020-09-23 15:27:50 UTC
Also see https://gitmemory.com/issue/sosreport/sos/2206/676668430

Comment 2 Sandro Bonazzola 2020-09-23 15:35:52 UTC
Was reported in https://github.com/sosreport/sos/issues/2206 and fixed by https://github.com/sosreport/sos/commit/1d7bab6c7ce3f78758113ca3cdf3e9fa1762df24
Fix was not included in 4.0 tag.
Bryn, any chance you can release a 4.0.1 including this fix upstream?

Comment 3 Bryn M. Reeves 2020-09-23 15:47:34 UTC
I've not been maintaining sos upstream since last year - Jake Hunsaker (@TurboTurtle) should be able to help you out though.

Comment 4 Fedora Update System 2020-09-24 07:01:05 UTC
FEDORA-2020-9e89468693 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-9e89468693

Comment 5 Fedora Update System 2020-09-24 07:01:07 UTC
FEDORA-2020-9e89468693 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-9e89468693

Comment 6 Fedora Update System 2020-09-24 13:32:47 UTC
FEDORA-2020-9e89468693 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-9e89468693`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-9e89468693

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2020-09-29 00:15:34 UTC
FEDORA-2020-9e89468693 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.