Project

General

Profile

Actions

Bug #40010

closed

mgr: Running tox no longer works as described

Added by Sebastian Wagner almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

 CEPH_BUILD_DIR=.tox tox -e py2
py2 create: /home/sebastian/Repos/ceph/src/pybind/mgr/orchestrator_cli/.tox/orchestrator_cli/py2
py2 installdeps: pytest, mock, requests-mock
py2 installed: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.,atomicwrites==1.3.0,attrs==19.1.0,certifi==2019.3.9,chardet==3.0.4,funcsigs==1.0.2,idna==2.8,mock==3.0.5,more-itertools==5.0.0,pathlib2==2.3.3,pkg-resources==0.0.0,pluggy==0.11.0,py==1.8.0,pytest==4.5.0,requests==2.22.0,requests-mock==1.6.0,scandir==1.10.0,six==1.12.0,urllib3==1.25.2,wcwidth==0.1.7
py2 runtests: PYTHONHASHSEED='3045310911'
py2 runtests: commands[0] | /home/sebastian/Repos/ceph/src/pybind/mgr/orchestrator_cli/.tox/orchestrator_cli/py2/bin/py.test .
=================================================================================================================================== test session starts ====================================================================================================================================
platform linux2 -- Python 2.7.15rc1, pytest-4.5.0, py-1.8.0, pluggy-0.11.0
rootdir: /home/sebastian/Repos/ceph/src/pybind/mgr/orchestrator_cli
plugins: requests-mock-1.6.0
collected 0 items / 1 errors                                                                                                                                                                                                                                                               

========================================================================================================================================== ERRORS ==========================================================================================================================================
__________________________________________________________________________________________________________________________ ERROR collecting test_orchestrator.py ___________________________________________________________________________________________________________________________
ImportError while importing test module '/home/sebastian/Repos/ceph/src/pybind/mgr/orchestrator_cli/test_orchestrator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test_orchestrator.py:5: in <module>
    from orchestrator import DriveGroupSpec, DeviceSelection, DriveGroupValidationError, \
../orchestrator.py:14: in <module>
    from mgr_module import PersistentStoreDict
../mgr_module.py:13: in <module>
    import rados
E   ImportError: No module named rados
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================================================================= 1 error in 0.11 seconds ==================================================================================================================================
ERROR: InvocationError: '/home/sebastian/Repos/ceph/src/pybind/mgr/orchestrator_cli/.tox/orchestrator_cli/py2/bin/py.test .'
_________________________________________________________________________________________________________________________________________ summary __________________________________________________________________________________________________________________________________________
ERROR:   py2: commands failed
Actions #1

Updated by Sebastian Wagner almost 5 years ago

  • Status changed from New to Closed

CEPH_BUILD_DIR=.tox tox -e py27 works

Actions

Also available in: Atom PDF