krikkit:/srv/cfgmgmt # salt krikkit state.highstate /usr/lib/python3.11/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") [ERROR ] 'EntryPoints' object has no attribute 'items' 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 41, in iter_entry_points for entry_point_group, entry_points_list in entry_points.items(): ^^^^^^^^^^^^^^^^^^ AttributeError: 'EntryPoints' object has no attribute 'items' Reproducible: Always
Upstream issue is https://github.com/saltstack/salt/issues/62851 regarding entrypoints compatibility. Solved upstream. Need patch applied in Fedora, or update to newer version that works.
Can the maintainer please patch this, or update it to the newer version? This is preventing salt from working at all in Fedora 38, and the fix is available.
fix is here: https://github.com/Foxboron/archlinux-pkgbuilds/commit/045bd1404c9383d4b37ec4ac5c7da2b168b87c35 and here: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-admin/salt/files/salt-3005.1-importlib-metadata-5-r1.patch
I've gone ahead and done an upgraded scratch build to 3006.1 with the following changes: - Update to 3006.1 - Stop carrying unit files and use upstream (they match what we were carrying) - Remove sysv init files from module (no longer used) - Update requirements patch (should be reviewed but looks to still be needed); specifically we need to look at the note about "We need contextvars for salt-ssh" - Refactor spec file to more closely match upstream - Switch to rpmautospec rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=101477785 There are a couple of things to consider with this update: - Upstream is running the master as non-root, we should review and decide if this would be a good change to import during the upgrade - Is there an upgrade path from 3005->3006 that is safe? We should still patch the existing 3005.1 packages to get them working again in the affected branches.
I've done a scratch build with the upstream patch (https://github.com/saltstack/salt/commit/b676e6338a7c094cb3335d11f851ac0e12222017.patch) applied for F38. It would be great to know if this resolves all current issues. f38: https://koji.fedoraproject.org/koji/taskinfo?taskID=101479366
It looks like F37 would also need to be updated with this patch. f37: https://koji.fedoraproject.org/koji/taskinfo?taskID=101480067
what I would like is a pull request, it would save me that work . can you do it ?
(In reply to Jonathan Steffan from comment #6) > It looks like F37 would also need to be updated with this patch. > > f37: https://koji.fedoraproject.org/koji/taskinfo?taskID=101480067 I don't think it's necessary to patch F37. Although it had the same version of salt, it seemed to work fine for me, probably because the older version of setuptools was used in F37. I only started seeing problems after upgrading to F38.
(In reply to Jonathan Steffan from comment #5) > I've done a scratch build with the upstream patch > (https://github.com/saltstack/salt/commit/ > b676e6338a7c094cb3335d11f851ac0e12222017.patch) applied for F38. It would be > great to know if this resolves all current issues. > > f38: https://koji.fedoraproject.org/koji/taskinfo?taskID=101479366 I installed salt and salt-minion RPMs from that, and it seemed to have resolved all the issues I was seeing. Thanks!
I did the PR [1] lets wait one or two days for response , if no answer, I will merge and build it [1] https://src.fedoraproject.org/rpms/salt/pull-request/8
FEDORA-2023-b9be998334 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b9be998334
FEDORA-2023-b9be998334 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-36308c4d0a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-36308c4d0a
FEDORA-2023-aa84f9d4e3 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-aa84f9d4e3
FEDORA-2023-36308c4d0a 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-36308c4d0a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-36308c4d0a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-622965abe9 has been pushed to the Fedora 38 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-622965abe9` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-622965abe9 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-622965abe9 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-36308c4d0a has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.