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: