Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] setuptools._distutils not available on Debian 10 (setuptools v40.8.0) #63350

Closed
2 of 9 tasks
dmurphy18 opened this issue Dec 21, 2022 · 0 comments · Fixed by #63352
Closed
2 of 9 tasks

[BUG] setuptools._distutils not available on Debian 10 (setuptools v40.8.0) #63350

dmurphy18 opened this issue Dec 21, 2022 · 0 comments · Fixed by #63352
Assignees
Labels
Bug broken, incorrect, or confusing behavior Sulfur v3006.0 release code name and version

Comments

@dmurphy18
Copy link
Contributor

dmurphy18 commented Dec 21, 2022

Description
tests.integration.ssh.test_state.SSHStateTest.test_show_highstate (from pytest) fails due to

from setuptools._distutils.version import LooseVersion as _LooseVersion\nModuleNotFoundError: No module named \'setuptools._distutils\'

Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Testing framework for Debian 10.

[Dashboard](https://jenkins.saltproject.io/)
[Salt PR Debian 10 amd64 Py3 Pytest Builds](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/)
[master](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/job/master/)
[#2776](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/job/master/2776/)
[Test Results](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/job/master/2776/testReport/)
[Test Results](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/job/master/2776/testReport/junit/)
[tests.integration.ssh.test_state](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/job/master/2776/testReport/junit/tests.integration.ssh.test_state/)
[SSHStateTest](https://jenkins.saltproject.io/job/pr-debian-10-amd64-py3-pytest/job/master/2776/testReport/junit/tests.integration.ssh.test_state/SSHStateTest/)
test_show_highstate

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior
Run test above

Expected behavior
Test to pass

Screenshots

self = <tests.integration.ssh.test_state.SSHStateTest testMethod=test_show_highstate>

    def tearDown(self):
        """
        make sure to clean up any old ssh directories
        """
        salt_dir = self.run_function("config.get", ["thin_dir"], wipe=False)
>       self.assertIsInstance(salt_dir, (str,))
E       AssertionError: {'_error': 'Failed to return clean data', 'stderr': 'Traceback (most recent call last):\n  File "/var/tmp/.root_0e6fa3_salt/salt-call", line 26, in <module>\n    from salt.scripts import salt_call\n  File "/var/tmp/.root_0e6fa3_salt/pyall/salt/__init__.py", line 146, in <module>\n    import salt._logging  # isort:skip\n  File "/var/tmp/.root_0e6fa3_salt/pyall/salt/_logging/__init__.py", line 12, in <module>\n    from salt._logging.impl import (\n  File "/var/tmp/.root_0e6fa3_salt/pyall/salt/_logging/impl.py", line 28, in <module>\n    from salt._logging.handlers import DeferredStreamHandler  # isort:skip\n  File "/var/tmp/.root_0e6fa3_salt/pyall/salt/_logging/handlers.py", line 16, in <module>\n    from salt.utils.versions import warn_until_date\n  File "/var/tmp/.root_0e6fa3_salt/pyall/salt/utils/versions.py", line 21, in <module>\n    from setuptools._distutils.version import LooseVersion as _LooseVersion\nModuleNotFoundError: No module named \'setuptools._distutils\'', 'stdout': '', 'retcode': 1} is not an instance of (<class 'str'>,)

Versions Report
relenv testing with master branch

Additional context
Wondering how the original PR #63309 with the changes for setuptools._distutils.version passed successfully, or was reported as successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Sulfur v3006.0 release code name and version
Projects
None yet
1 participant