Project

General

Profile

Bug #53675

jenkins api test failure: No module named 'setuptools._distutils'

Added by Laura Flores over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
Build, CI, Dependencies & Tools
Target version:
% Done:

0%

Source:
Tags:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The Ceph API test is failing across PRs:

Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /tmp/tmp.60Il0vqCAA/venv/lib/python3.8/site-packages (from packaging->pytest->-r requirements.txt (line 10)) (3.0.6)
Collecting pytz
  Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB)
Installing collected packages: more-itertools, pytz, jaraco.functools, tempora, repoze.lru, portend, idna, cheroot, chardet, Routes, requests, pyopenssl, PyJWT, CherryPy, ceph, bcrypt
  Attempting uninstall: idna
    Found existing installation: idna 3.3
    Uninstalling idna-3.3:
      Successfully uninstalled idna-3.3
  Attempting uninstall: requests
    Found existing installation: requests 2.26.0
    Uninstalling requests-2.26.0:
      Successfully uninstalled requests-2.26.0
  Attempting uninstall: PyJWT
    Found existing installation: PyJWT 2.3.0
    Uninstalling PyJWT-2.3.0:
      Successfully uninstalled PyJWT-2.3.0
  Running setup.py develop for ceph
  Attempting uninstall: bcrypt
    Found existing installation: bcrypt 3.2.0
    Uninstalling bcrypt-3.2.0:
      Successfully uninstalled bcrypt-3.2.0
Successfully installed CherryPy-13.1.0 PyJWT-2.0.1 Routes-2.4.1 bcrypt-3.1.4 ceph-1.0.0 chardet-4.0.0 cheroot-8.5.2 idna-2.10 jaraco.functools-3.5.0 more-itertools-4.1.0 portend-3.1.0 pyopenssl-21.0.0 pytz-2021.3 repoze.lru-0.7 requests-2.25.1 tempora-4.1.2
/tmp/tmp.60Il0vqCAA
Processing /home/jenkins-build/.cache/pip/wheels/d8/81/0a/fae9efd3c9c706cefa25842310896e727a46567f2dc2dac6a8/coverage-4.5.2-cp38-cp38-linux_x86_64.whl
Installing collected packages: coverage
Successfully installed coverage-4.5.2
***
Error importing packages, have you activated your teuthology virtualenv and set PYTHONPATH to point to teuthology and ceph-qa-suite?
***

Using guessed paths /home/jenkins-build/build/workspace/ceph-api/build/lib/ ['/home/jenkins-build/build/workspace/ceph-api/qa', '/home/jenkins-build/build/workspace/ceph-api/build/lib/cython_modules/lib.3', '/home/jenkins-build/build/workspace/ceph-api/src/pybind']
Traceback (most recent call last):
  File "../qa/tasks/vstart_runner.py", line 138, in <module>
    from tasks.cephfs.fuse_mount import FuseMount
  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/cephfs/fuse_mount.py", line 13, in <module>
    from tasks.cephfs.mount import CephFSMount
  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/cephfs/mount.py", line 20, in <module>
    from tasks.cephfs.filesystem import Filesystem
  File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/cephfs/filesystem.py", line 17, in <module>
    from teuthology.nuke import clear_firewall
  File "/tmp/tmp.60Il0vqCAA/venv/lib/python3.8/site-packages/teuthology/nuke/__init__.py", line 16, in <module>
    from teuthology.nuke.actions import (
  File "/tmp/tmp.60Il0vqCAA/venv/lib/python3.8/site-packages/teuthology/nuke/actions.py", line 7, in <module>
    from teuthology.task import install as install_task
  File "/tmp/tmp.60Il0vqCAA/venv/lib/python3.8/site-packages/teuthology/task/install/__init__.py", line 13, in <module>
    from distutils.version import LooseVersion
  File "/tmp/tmp.60Il0vqCAA/venv/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 92, in create_module
    return importlib.import_module('setuptools._distutils')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/tmp/tmp.60Il0vqCAA/coverage-venv/lib/python3.8/site-packages/setuptools/__init__.py", line 6, in <module>
    import distutils.core
  File "/tmp/tmp.60Il0vqCAA/venv/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 92, in create_module
    return importlib.import_module('setuptools._distutils')
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'setuptools._distutils'
find: ‘/home/jenkins-build/build/workspace/ceph-api/build/out’: No such file or directory

TEST FAILED.

find: ‘/home/jenkins-build/build/workspace/ceph-api/build/out’: No such file or directory

Sample builds:
https://jenkins.ceph.com/job/ceph-api/29236/
https://jenkins.ceph.com/job/ceph-api/29237/


Related issues

Copied to Dashboard - Backport #53679: pacific: jenkins api test failure: No module named 'setuptools._distutils' Resolved

History

#1 Updated by Laura Flores over 2 years ago

  • Subject changed from jenkins ceph api test failure: No module named 'setuptools._distutils' to jenkins api test failure: No module named 'setuptools._distutils'

#2 Updated by Laura Flores over 2 years ago

  • Assignee deleted (David Galloway)

#3 Updated by Laura Flores over 2 years ago

  • Assignee set to Ernesto Puerta

#4 Updated by David Galloway over 2 years ago

I think this might fix it https://github.com/ceph/ceph/pull/44368

#5 Updated by Alfonso Martínez over 2 years ago

  • Project changed from Infrastructure to Dashboard
  • Category set to Build, CI, Dependencies & Tools
  • Status changed from New to Fix Under Review
  • Target version set to v17.0.0
  • Backport set to pacific
  • Pull request ID set to 44368

#6 Updated by Ernesto Puerta over 2 years ago

  • Status changed from Fix Under Review to Pending Backport

#7 Updated by Backport Bot over 2 years ago

  • Copied to Backport #53679: pacific: jenkins api test failure: No module named 'setuptools._distutils' added

#8 Updated by Ernesto Puerta over 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF