[Bug 1207071] New: [Build 20230111] fails to start salt: AttributeError: 'EntryPoints' object has no attribute 'items'
http://bugzilla.opensuse.org/show_bug.cgi?id=1207071 Bug ID: 1207071 Summary: [Build 20230111] fails to start salt: AttributeError: 'EntryPoints' object has no attribute 'items' Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86 URL: https://openqa.opensuse.org/tests/3034409/modules/salt /steps/24 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Salt Assignee: salt-maintainers@suse.de Reporter: dimstar@opensuse.org QA Contact: qa-bugs@suse.de Found By: openQA Blocker: Yes ## 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) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207071 http://bugzilla.opensuse.org/show_bug.cgi?id=1207071#c2 --- Comment #2 from Dominique Leuenberger <dimstar@opensuse.org> --- 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) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207071 http://bugzilla.opensuse.org/show_bug.cgi?id=1207071#c4 --- Comment #4 from Dominique Leuenberger <dimstar@opensuse.org> --- (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 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com