Bug 2212190 - Salt minion fails to start with "AttributeError: 'dict' object has no attribute 'select'" after latest update
Summary: Salt minion fails to start with "AttributeError: 'dict' object has no attribu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: salt
Version: 37
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jonathan Steffan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-04 14:54 UTC by Micke
Modified: 2023-06-09 01:38 UTC (History)
6 users (show)

Fixed In Version: salt-3005.1-5.fc37
Clone Of:
Environment:
Last Closed: 2023-06-09 01:38:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.