Bugzilla – Bug 1207071
[Build 20230111] fails to start salt: AttributeError: 'EntryPoints' object has no attribute 'items'
Last modified: 2024-06-18 12:02:20 UTC
## Observation openQA test in scenario opensuse-Tumbleweed-LegacyX86-DVD-i586-textmode@32bit fails in [salt](https://openqa.opensuse.org/tests/3034409/modules/salt/steps/24) ## Test suite description Installation in textmode and selecting the textmode "desktop" during installation. ## Error message /usr/lib/python3.10/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.10/site-packages/salt/utils/parsers.py", line 214, in parse_args mixin_after_parsed_func(self) File "/usr/lib/python3.10/site-packages/salt/utils/parsers.py", line 907, in __setup_logging salt._logging.setup_logging() File "/usr/lib/python3.10/site-packages/salt/_logging/impl.py", line 984, in setup_logging setup_extended_logging(opts) File "/usr/lib/python3.10/site-packages/salt/_logging/impl.py", line 891, in setup_extended_logging providers = salt.loader.log_handlers(opts) File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 878, in log_handlers _module_dirs( File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 166, in _module_dirs for entry_point in entrypoints.iter_entry_points("salt.loader"): File "/usr/lib/python3.10/site-packages/salt/utils/entrypoints.py", line 29, in _wrapped return f(*args, **kwargs) File "/usr/lib/python3.10/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' Usage: salt-run [options] <function> [arguments] [ERROR ] 'EntryPoints' object has no attribute 'items' Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/salt/utils/parsers.py", line 214, in parse_args mixin_after_parsed_func(self) File "/usr/lib/python3.10/site-packages/salt/utils/parsers.py", line 907, in __setup_logging salt._logging.setup_logging() File "/usr/lib/python3.10/site-packages/salt/_logging/impl.py", line 984, in setup_logging setup_extended_logging(opts) File "/usr/lib/python3.10/site-packages/salt/_logging/impl.py", line 891, in setup_extended_logging providers = salt.loader.log_handlers(opts) File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 878, in log_handlers _module_dirs( File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 166, in _module_dirs for entry_point in entrypoints.iter_entry_points("salt.loader"): File "/usr/lib/python3.10/site-packages/salt/utils/entrypoints.py", line 29, in _wrapped return f(*args, **kwargs) File "/usr/lib/python3.10/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' salt-run: error: Error while processing <function LogLevelMixIn.__setup_logging at 0xb5e816e8>: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/salt/utils/parsers.py", line 214, in parse_args mixin_after_parsed_func(self) File "/usr/lib/python3.10/site-packages/salt/utils/parsers.py", line 907, in __setup_logging salt._logging.setup_logging() File "/usr/lib/python3.10/site-packages/salt/_logging/impl.py", line 984, in setup_logging setup_extended_logging(opts) File "/usr/lib/python3.10/site-packages/salt/_logging/impl.py", line 891, in setup_extended_logging providers = salt.loader.log_handlers(opts) File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 878, in log_handlers _module_dirs( File "/usr/lib/python3.10/site-packages/salt/loader/__init__.py", line 166, in _module_dirs for entry_point in entrypoints.iter_entry_points("salt.loader"): File "/usr/lib/python3.10/site-packages/salt/utils/entrypoints.py", line 29, in _wrapped return f(*args, **kwargs) File "/usr/lib/python3.10/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 Fails since (at least) Build [20230111](https://openqa.opensuse.org/tests/3034409) (current job) ## Expected result Last good: [20230110](https://openqa.opensuse.org/tests/3030253) (or more recent) ## Further details Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=i586&distri=opensuse&flavor=LegacyX86-DVD&machine=32bit&test=textmode&version=Tumbleweed)
This issue is caused by "importlib_metadata" >= 5.0.0, there is already an upstream Salt PR to fix this issue: https://github.com/saltstack/salt/pull/62854 (not included in 3005.1 release) I'm backporting this PR to our 3005.1 package.
I think I'm mostly puzzled for not seeing this issue during Staging: https://openqa.opensuse.org/tests/3030998#step/salt/24 where that test passed (at least in the eye of openQA; as User I'd be scared; but the command had retval 0)
From the tests I did, where I used a fresh TW container, the issue was not there after installing "salt-master" and "salt-minion". I only got the issue when I explicitely installed "python310-importlib-metadata" package on the container. Maybe this package is installed only sometimes, by some other tests on the instance?
(In reply to Pablo Suárez Hernández from comment #3) > From the tests I did, where I used a fresh TW container, the issue was not > there after installing "salt-master" and "salt-minion". > > I only got the issue when I explicitely installed > "python310-importlib-metadata" package on the container. > > Maybe this package is installed only sometimes, by some other tests on the > instance? That sounds plausible; some recommended package pulling in importlib-metadata; that gives at least some idea why we only see it now and not in staging
This should be now fixed by: https://build.opensuse.org/request/show/1058037
(In reply to Pablo Suárez Hernández from comment #5) > This should be now fixed by: > > https://build.opensuse.org/request/show/1058037 Thanks, Staging in progress. I expect to see this request accepted for snapshot 0113
SR is accepted now. Closing as RESOLVED/FIXED. Thanks
SUSE-SU-2023:2581-1: An update that contains two features and has six fixes can now be installed. Category: security (moderate) Bug References: 1207071, 1209233, 1211612, 1211754, 1212516, 1212517 Jira References: MSQA-666, PED-4361 Sources used: SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): salt-3006.0-150300.53.50.2 SUSE Manager Proxy 4.2 (src): salt-3006.0-150300.53.50.2 SUSE Manager Retail Branch Server 4.2 (src): salt-3006.0-150300.53.50.2 SUSE Manager Server 4.2 (src): salt-3006.0-150300.53.50.2 SUSE Enterprise Storage 7.1 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise Micro 5.1 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise Micro 5.2 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise Micro for Rancher 5.2 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise Real Time 15 SP3 (src): salt-3006.0-150300.53.50.2 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): salt-3006.0-150300.53.50.2 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-202305:15217-1: An update that contains two features and has three recommended fixes can now be installed. Category: recommended (important) Bug References: 1207071, 1209233, 1211612 Jira References: MSQA-666, PED-3139 Sources used: NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-202305:15216-1: An update that contains two features and has six recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1207071, 1207830, 1208719, 1209233, 1210458, 1211612 Jira References: MSQA-666, PED-3139 Sources used: NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-2023:2573-1: An update that contains two features and has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1207071, 1209233, 1211612, 1211754 Jira References: MSQA-666, PED-3139 Sources used: SUSE Manager Client Tools for SLE 15 (src): venv-salt-minion-3006.0-150000.3.32.1 SUSE Manager Client Tools for SLE Micro 5 (src): venv-salt-minion-3006.0-150000.3.32.1 SUSE Manager Proxy 4.3 Module 4.3 (src): venv-salt-minion-3006.0-150000.3.32.1 SUSE Manager Server 4.3 Module 4.3 (src): venv-salt-minion-3006.0-150000.3.32.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2572-1: An update that contains two features and has six fixes can now be installed. Category: security (moderate) Bug References: 1207071, 1209233, 1211612, 1211754, 1212516, 1212517 Jira References: MSQA-666, PED-4361 Sources used: SUSE Enterprise Storage 7 (src): salt-3006.0-150200.98.2 SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): salt-3006.0-150200.98.2 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): salt-3006.0-150200.98.2 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): salt-3006.0-150200.98.2 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2571-1: An update that contains two features and has six fixes can now be installed. Category: security (moderate) Bug References: 1207071, 1209233, 1211612, 1211754, 1212516, 1212517 Jira References: MSQA-666, PED-4361 Sources used: openSUSE Leap 15.4 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 openSUSE Leap 15.5 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro for Rancher 5.3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro 5.3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro for Rancher 5.4 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro 5.4 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 Basesystem Module 15-SP4 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 Basesystem Module 15-SP5 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Package Hub 15 15-SP4 (src): python-jmespath-0.9.3-150000.3.3.4 SUSE Package Hub 15 15-SP5 (src): python-jmespath-0.9.3-150000.3.3.4 Server Applications Module 15-SP4 (src): salt-3006.0-150400.8.34.2 Transactional Server Module 15-SP4 (src): salt-3006.0-150400.8.34.2 SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Real Time 15 SP3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Manager Proxy 4.2 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Manager Retail Branch Server 4.2 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Manager Server 4.2 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Enterprise Storage 7.1 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Enterprise Storage 7 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE CaaS Platform 4.0 (src): python-ply-3.10-150000.3.3.4, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro 5.1 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro 5.2 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 SUSE Linux Enterprise Micro for Rancher 5.2 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, python-jmespath-0.9.3-150000.3.3.4 openSUSE Leap Micro 5.3 (src): python-ply-3.10-150000.3.3.4, python-simplejson-3.17.2-150300.3.2.3, salt-3006.0-150400.8.34.2, python-jmespath-0.9.3-150000.3.3.4 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-202305:15214-1: An update that contains two features and has six recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1207071, 1207830, 1208719, 1209233, 1210458, 1211612 Jira References: MSQA-666, PED-3139 Sources used: NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-2023:2568-1: An update that contains two features and has six recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1207071, 1207830, 1208719, 1209233, 1210458, 1211612 Jira References: MSQA-666, PED-3139 Sources used: NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-202305:15220-1: An update that contains two features and has three recommended fixes can now be installed. Category: recommended (important) Bug References: 1207071, 1209233, 1211612 Jira References: MSQA-666, PED-3139 Sources used: NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-2023:2583-1: An update that contains two features and has three recommended fixes can now be installed. Category: recommended (important) Bug References: 1207071, 1209233, 1211612 Jira References: MSQA-666, PED-3139 Sources used: SUSE Manager Client Tools for RHEL, Liberty and Clones 9 (src): venv-salt-minion-3006.0-1.16.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-2023:4408-1: An update that solves eight vulnerabilities, contains two features and has 48 fixes can now be installed. Category: recommended (important) Bug References: 1097531, 1182851, 1186738, 1190781, 1193357, 1193948, 1194632, 1195624, 1195895, 1196050, 1196432, 1197288, 1197417, 1197533, 1197637, 1198489, 1198556, 1198744, 1199149, 1199372, 1199562, 1200566, 1200596, 1201082, 1202165, 1202631, 1203685, 1203834, 1203886, 1204206, 1204939, 1205687, 1207071, 1208691, 1209233, 1210954, 1210994, 1211591, 1211612, 1211741, 1211754, 1212516, 1212517, 1212794, 1212844, 1212855, 1213257, 1213293, 1213441, 1213518, 1213630, 1213926, 1213960, 1214796, 1214797, 1215489 CVE References: CVE-2022-22934, CVE-2022-22935, CVE-2022-22936, CVE-2022-22941, CVE-2022-22967, CVE-2023-20897, CVE-2023-20898, CVE-2023-28370 Jira References: MSQA-706, PED-3139 Sources used: NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:2585-1: An update that contains two features and has seven security fixes can now be installed. Category: security (moderate) Bug References: 1186945, 1207071, 1209233, 1211612, 1211754, 1212516, 1212517 Jira References: MSQA-666, PED-4361 Sources used: openSUSE Leap Micro 5.3 (src): python-pyzmq-17.1.2-150000.3.5.2 openSUSE Leap Micro 5.4 (src): python-pyzmq-17.1.2-150000.3.5.2 openSUSE Leap 15.4 (src): python-pyzmq-17.1.2-150000.3.5.2 openSUSE Leap 15.5 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro for Rancher 5.3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro 5.3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro for Rancher 5.4 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro 5.4 (src): python-pyzmq-17.1.2-150000.3.5.2 Basesystem Module 15-SP4 (src): python-pyzmq-17.1.2-150000.3.5.2 Basesystem Module 15-SP5 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Package Hub 15 15-SP5 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): salt-3006.0-150000.97.2, python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Real Time 15 SP3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): salt-3006.0-150000.97.2, python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): salt-3006.0-150000.97.2, python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Manager Proxy 4.2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Manager Retail Branch Server 4.2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Manager Server 4.2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Enterprise Storage 7.1 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Enterprise Storage 7 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE CaaS Platform 4.0 (src): salt-3006.0-150000.97.2, python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro 5.1 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro 5.2 (src): python-pyzmq-17.1.2-150000.3.5.2 SUSE Linux Enterprise Micro for Rancher 5.2 (src): python-pyzmq-17.1.2-150000.3.5.2 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.