Bug 2212190

Summary: Salt minion fails to start with "AttributeError: 'dict' object has no attribute 'select'" after latest update
Product: [Fedora] Fedora Reporter: Micke <dukhat2259+BUGZILLA>
Component: saltAssignee: Jonathan Steffan <jonathansteffan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: david-dm.murphy, derek, gwync, jonathansteffan, kp, rcallicotte
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: salt-3005.1-5.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-09 01:38:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Micke 2023-06-04 14:54:47 UTC
I have 7 VMs running fedora 37 among my minons. All f37 salt minons have stopped working after last update

# tail /var/log/salt/minion
2023-06-04 06:34:08,077 [salt.utils.parsers:284 ][ERROR   ][930] 'dict' object has no attribute 'select'
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/salt/utils/parsers.py", line 212, in parse_args
    mixin_after_parsed_func(self)
  File "/usr/lib/python3.11/site-packages/salt/utils/parsers.py", line 905, in __setup_logging
    salt._logging.setup_logging()
  File "/usr/lib/python3.11/site-packages/salt/_logging/impl.py", line 971, in setup_logging
    setup_extended_logging(opts)
  File "/usr/lib/python3.11/site-packages/salt/_logging/impl.py", line 878, in setup_extended_logging
    providers = salt.loader.log_handlers(opts)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/salt/loader/__init__.py", line 857, in log_handlers
    _module_dirs(
  File "/usr/lib/python3.11/site-packages/salt/loader/__init__.py", line 153, in _module_dirs
    for entry_point in entrypoints.iter_entry_points("salt.loader"):
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/salt/utils/entrypoints.py", line 29, in _wrapped
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/salt/utils/entrypoints.py", line 51, in iter_entry_points
    for entry_point in entry_points.select(group=group):
                       ^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'select'


# tail /var/log/dnf.rpm.log
2023-06-04T06:27:58+0200 INFO --- logging initialized ---
2023-06-04T06:28:39+0200 SUBDEBUG Upgrade: pipewire-libs-0.3.71-2.fc37.x86_64
2023-06-04T06:28:39+0200 SUBDEBUG Upgrade: pipewire-0.3.71-2.fc37.x86_64
2023-06-04T06:28:39+0200 SUBDEBUG Upgrade: libxcrypt-4.4.34-1.fc37.x86_64
2023-06-04T06:28:39+0200 SUBDEBUG Upgrade: vim-data-2:9.0.1592-1.fc37.noarch
2023-06-04T06:28:39+0200 SUBDEBUG Upgrade: salt-3005.1-4.fc37.noarch
2023-06-04T06:28:41+0200 SUBDEBUG Upgrade: javascriptcoregtk4.0-2.40.2-1.fc37.x86_64
2023-06-04T06:28:41+0200 SUBDEBUG Upgrade: webkit2gtk4.0-2.40.2-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: salt-minion-3005.1-4.fc37.noarch
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: vim-minimal-2:9.0.1592-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: libxcrypt-compat-4.4.34-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: libxcrypt-devel-4.4.34-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: pipewire-alsa-0.3.71-2.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: pipewire-jack-audio-connection-kit-0.3.71-2.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: pipewire-pulseaudio-0.3.71-2.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgrade: btrfs-progs-6.3.1-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: libxcrypt-devel-4.4.33-4.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: salt-minion-3005.1-1.fc37.noarch
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: pipewire-alsa-0.3.70-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: pipewire-jack-audio-connection-kit-0.3.70-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: pipewire-libs-0.3.70-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: pipewire-pulseaudio-0.3.70-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: pipewire-0.3.70-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: webkit2gtk4.0-2.40.1-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: vim-minimal-2:9.0.1587-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: libxcrypt-compat-4.4.33-4.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: vim-data-2:9.0.1587-1.fc37.noarch
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: salt-3005.1-1.fc37.noarch
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: libxcrypt-4.4.33-4.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: javascriptcoregtk4.0-2.40.1-1.fc37.x86_64
2023-06-04T06:28:42+0200 SUBDEBUG Upgraded: btrfs-progs-6.2.2-1.fc37.x86_64


Reproducible: Always

Steps to Reproduce:
1. Have a working f37 w working salt minion
2. Let dnf auto update everything
   salt -> salt-3005.1-4.fc37.noarch
3. f37 salt minion no longer responding

Actual Results:  
Salt minion dead

Expected Results:  
Operational salt minion

Comment 1 Jonathan Steffan 2023-06-07 21:26:23 UTC
Micke,

Please try this scratch build that has the patch removed that is causing this error: https://koji.fedoraproject.org/koji/taskinfo?taskID=101918349

Comment 2 Fedora Update System 2023-06-07 22:53:59 UTC
FEDORA-2023-2f3b2035ff has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2f3b2035ff

Comment 3 Fedora Update System 2023-06-08 02:22:17 UTC
FEDORA-2023-2f3b2035ff has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2f3b2035ff`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2f3b2035ff

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

Comment 4 Micke 2023-06-08 06:42:00 UTC
I can confirm that the rpms built under comment 1 resolves the problem.

The dnf upgrade...35ff command does not yet offer the updated rpms.

Comment 5 Micke 2023-06-08 09:13:21 UTC
And now the command dnf upgrade...35ff worked and the included salt minion works.

Comment 6 Fedora Update System 2023-06-09 01:38:09 UTC
FEDORA-2023-2f3b2035ff has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.