Project

General

Profile

Bug #23449

ceph-detect-init test case failed in docker env

Added by Chang Liu almost 2 years ago. Updated 11 months ago.

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

0%

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

Description

 71/154 Test   #8: run-tox-ceph-detect-init ................***Failed    7.70 sec
pep8 develop-inst-nodeps: /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init
WARNING:Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
pep8 installed: attrs==17.4.0,-e git+https://github.com/ceph/ceph.git@9a031bad0f2f21b6ba3b7ec50065151e366a0544#egg=ceph_detect_init&subdirectory=src/ceph-detect-init,configparser==3.5.0,coverage==4.5.1,discover==0.4.0,enum34==1.1.6,extras==1.0.0,fixtures==3.0.0,flake8==3.0.4,funcsigs==1.0.2,linecache2==1.0.0,mccabe==0.5.3,mock==2.0.0,more-itertools==4.1.0,pbr==3.1.1,pluggy==0.6.0,py==1.5.3,pycodestyle==2.0.0,pyflakes==1.2.3,pytest==3.5.0,python-mimeparse==1.6.0,python-subunit==1.2.0,six==1.11.0,testrepository==0.0.20,testtools==2.3.0,tox==2.9.1,traceback2==1.4.0,unittest2==1.1.0,virtualenv==15.2.0
pep8 runtests: PYTHONHASHSEED='1859599324'
pep8 runtests: commands[0] | flake8 ceph_detect_init tests
py27 develop-inst-nodeps: /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init
py27 installed: attrs==17.4.0,-e git+https://github.com/ceph/ceph.git@9a031bad0f2f21b6ba3b7ec50065151e366a0544#egg=ceph_detect_init&subdirectory=src/ceph-detect-init,configparser==3.5.0,coverage==4.5.1,discover==0.4.0,enum34==1.1.6,extras==1.0.0,fixtures==3.0.0,flake8==3.0.4,funcsigs==1.0.2,linecache2==1.0.0,mccabe==0.5.3,mock==2.0.0,more-itertools==4.1.0,pbr==3.1.1,pluggy==0.6.0,py==1.5.3,pycodestyle==2.0.0,pyflakes==1.2.3,pytest==3.5.0,python-mimeparse==1.6.0,python-subunit==1.2.0,six==1.11.0,testrepository==0.0.20,testtools==2.3.0,tox==2.9.1,traceback2==1.4.0,unittest2==1.1.0,virtualenv==15.2.0
py27 runtests: PYTHONHASHSEED='1859599324'
py27 runtests: commands[0] | coverage run --source=ceph_detect_init /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/bin/py.test -v tests
============================= test session starts ==============================
platform linux2 -- Python 2.7.5, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 -- /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/bin/python2.7
cachedir: .pytest_cache
rootdir: /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init, inifile:
collecting ... collected 20 items

tests/test_all.py::TestCephDetectInit::test_alpine PASSED                [  5%]
tests/test_all.py::TestCephDetectInit::test_arch PASSED                  [ 10%]
tests/test_all.py::TestCephDetectInit::test_centos PASSED                [ 15%]
tests/test_all.py::TestCephDetectInit::test_debian PASSED                [ 20%]
tests/test_all.py::TestCephDetectInit::test_docker PASSED                [ 25%]
tests/test_all.py::TestCephDetectInit::test_fedora PASSED                [ 30%]
tests/test_all.py::TestCephDetectInit::test_freebsd PASSED               [ 35%]
tests/test_all.py::TestCephDetectInit::test_gentoo PASSED                [ 40%]
tests/test_all.py::TestCephDetectInit::test_gentoo_is_openrc PASSED      [ 45%]
tests/test_all.py::TestCephDetectInit::test_gentoo_is_systemd PASSED     [ 50%]
tests/test_all.py::TestCephDetectInit::test_get FAILED                   [ 55%]
tests/test_all.py::TestCephDetectInit::test_get_distro PASSED            [ 60%]
tests/test_all.py::TestCephDetectInit::test_normalized_distro_name PASSED [ 65%]
tests/test_all.py::TestCephDetectInit::test_oraclevms PASSED             [ 70%]
tests/test_all.py::TestCephDetectInit::test_platform_information_container FAILED [ 75%]
tests/test_all.py::TestCephDetectInit::test_platform_information_freebsd FAILED [ 80%]
tests/test_all.py::TestCephDetectInit::test_platform_information_linux FAILED [ 85%]
tests/test_all.py::TestCephDetectInit::test_rhel PASSED                  [ 90%]
tests/test_all.py::TestCephDetectInit::test_run FAILED                   [ 95%]
tests/test_all.py::TestCephDetectInit::test_suse PASSED                  [100%]

=================================== FAILURES ===================================
_________________________ TestCephDetectInit.test_get __________________________
NOTE: Incompatible Exception Representation, displaying natively:

_StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 174, in test_get
    self.assertRaises(exc.UnsupportedPlatform, g)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 485, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <function get at 0x21acf50> returned <module 'ceph_detect_init.docker' from '/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/ceph_detect_init/docker/__init__.pyc'>

____________ TestCephDetectInit.test_platform_information_container ____________
NOTE: Incompatible Exception Representation, displaying natively:

_StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 308, in test_platform_information_container
    m.assert_called_once_with('/.dockerenv')
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
    raise AssertionError(msg)
AssertionError: Expected 'mock' to be called once. Called 0 times.

----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
  File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format
  File "/usr/lib64/python2.7/logging/__init__.py", line 464, in format
  File "/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
TypeError: not all arguments converted during string formatting
Logged from file __init__.py, line 120
Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
  File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format
  File "/usr/lib64/python2.7/logging/__init__.py", line 464, in format
  File "/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
TypeError: not all arguments converted during string formatting
Logged from file __init__.py, line 120
_____________ TestCephDetectInit.test_platform_information_freebsd _____________
NOTE: Incompatible Exception Representation, displaying natively:

_StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 316, in test_platform_information_freebsd
    ceph_detect_init.platform_information())
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: ('freebsd', '12.0-CURRENT', 'r306554M') != ('docker', 'docker', 'docker')

______________ TestCephDetectInit.test_platform_information_linux ______________
NOTE: Incompatible Exception Representation, displaying natively:

_StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 260, in test_platform_information_linux
    ceph_detect_init.platform_information()[:-1])
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: ('debian', '8.0') != ('docker', 'docker')

_________________________ TestCephDetectInit.test_run __________________________
NOTE: Incompatible Exception Representation, displaying natively:

_StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 326, in test_run
    self.assertRaises(exc.UnsupportedPlatform, main.run, argv)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 485, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <function run at 0x21b5320> returned 0

----------------------------- Captured stdout call -----------------------------
none
none
===================== 5 failed, 15 passed in 0.13 seconds ======================
ERROR: InvocationError: '/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/bin/coverage run --source=ceph_detect_init /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py27/bin/py.test -v tests'
py3 develop-inst-nodeps: /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init
py3 installed: attrs==17.4.0,-e git+https://github.com/ceph/ceph.git@9a031bad0f2f21b6ba3b7ec50065151e366a0544#egg=ceph_detect_init&subdirectory=src/ceph-detect-init,coverage==4.5.1,discover==0.4.0,extras==1.0.0,fixtures==3.0.0,flake8==3.0.4,linecache2==1.0.0,mccabe==0.5.3,mock==2.0.0,more-itertools==4.1.0,pbr==3.1.1,pluggy==0.6.0,py==1.5.3,pycodestyle==2.0.0,pyflakes==1.2.3,pytest==3.5.0,python-mimeparse==1.6.0,python-subunit==1.2.0,six==1.11.0,testrepository==0.0.20,testtools==2.3.0,tox==2.9.1,traceback2==1.4.0,unittest2==1.1.0,virtualenv==15.2.0
py3 runtests: PYTHONHASHSEED='1859599324'
py3 runtests: commands[0] | coverage run --source=ceph_detect_init /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/py.test -v tests
============================= test session starts ==============================
platform linux -- Python 3.4.5, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 -- /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/python3
cachedir: .pytest_cache
rootdir: /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init, inifile:
collecting ... collected 20 items

tests/test_all.py::TestCephDetectInit::test_alpine PASSED                [  5%]
tests/test_all.py::TestCephDetectInit::test_arch PASSED                  [ 10%]
tests/test_all.py::TestCephDetectInit::test_centos PASSED                [ 15%]
tests/test_all.py::TestCephDetectInit::test_debian PASSED                [ 20%]
tests/test_all.py::TestCephDetectInit::test_docker PASSED                [ 25%]
tests/test_all.py::TestCephDetectInit::test_fedora PASSED                [ 30%]
tests/test_all.py::TestCephDetectInit::test_freebsd PASSED               [ 35%]
tests/test_all.py::TestCephDetectInit::test_gentoo PASSED                [ 40%]
tests/test_all.py::TestCephDetectInit::test_gentoo_is_openrc PASSED      [ 45%]
tests/test_all.py::TestCephDetectInit::test_gentoo_is_systemd PASSED     [ 50%]
tests/test_all.py::TestCephDetectInit::test_get FAILED                   [ 55%]
tests/test_all.py::TestCephDetectInit::test_get_distro PASSED            [ 60%]
tests/test_all.py::TestCephDetectInit::test_normalized_distro_name PASSED [ 65%]
tests/test_all.py::TestCephDetectInit::test_oraclevms PASSED             [ 70%]
tests/test_all.py::TestCephDetectInit::test_platform_information_container FAILED [ 75%]
tests/test_all.py::TestCephDetectInit::test_platform_information_freebsd FAILED [ 80%]
tests/test_all.py::TestCephDetectInit::test_platform_information_linux FAILED [ 85%]
tests/test_all.py::TestCephDetectInit::test_rhel PASSED                  [ 90%]
tests/test_all.py::TestCephDetectInit::test_run FAILED                   [ 95%]
tests/test_all.py::TestCephDetectInit::test_suse PASSED                  [100%]

=================================== FAILURES ===================================
_________________________ TestCephDetectInit.test_get __________________________
NOTE: Incompatible Exception Representation, displaying natively:

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 174, in test_get
    self.assertRaises(exc.UnsupportedPlatform, g)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 485, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <function get at 0x7f8b941d6730> returned <module 'ceph_detect_init.docker' from '/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/ceph_detect_init/docker/__init__.py'>

____________ TestCephDetectInit.test_platform_information_container ____________
NOTE: Incompatible Exception Representation, displaying natively:

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 308, in test_platform_information_container
    m.assert_called_once_with('/.dockerenv')
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 947, in assert_called_once_with
    raise AssertionError(msg)
AssertionError: Expected 'mock' to be called once. Called 0 times.

----------------------------- Captured stderr call -----------------------------
--- Logging error ---
Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/ceph_detect_init/__init__.py", line 113, in platform_information
    with open(file_name, 'r') as f:
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1062, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1118, in _mock_call
    raise effect
OSError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.4/logging/__init__.py", line 978, in emit
    msg = self.format(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 828, in format
    return fmt.format(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 565, in format
    record.message = record.getMessage()
  File "/usr/lib64/python3.4/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/coverage", line 11, in <module>
    sys.exit(main())
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/cmdline.py", line 753, in main
    status = CoverageScript().command_line(argv)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/cmdline.py", line 488, in command_line
    return self.do_run(options, args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/cmdline.py", line 627, in do_run
    self.run_python_file(filename, args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/execfile.py", line 184, in run_python_file
    exec(code, main_mod.__dict__)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/py.test", line 11, in <module>
    sys.exit(main())
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/config.py", line 61, in main
    return config.hook.pytest_cmdline_main(config=config)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 138, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 107, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 145, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 168, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 62, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 79, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 158, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 178, in call_runtest_hook
    return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 192, in __init__
    self.result = func()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 178, in <lambda>
    return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 109, in pytest_runtest_call
    item.runtest()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/unittest.py", line 174, in runtest
    self._testcase(result=self)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/unittest2/case.py", line 673, in __call__
    return self.run(*args, **kwds)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 671, in run
    return run_test.run(result)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 80, in run
    return self._run_one(actual_result)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 94, in _run_one
    return self._run_prepared_result(ExtendedToOriginalDecorator(result))
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 108, in _run_prepared_result
    self._run_core()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 144, in _run_core
    self.case._run_test_method, self.result):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 191, in _run_user
    return fn(*args, **kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 719, in _run_test_method
    return self._get_test_method()()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 300, in test_platform_information_container
    ceph_detect_init.platform_information()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/ceph_detect_init/__init__.py", line 120, in platform_information
    "Error while opening %s : %s" % (file_name, err))
Message: 'platform_information: '
Arguments: ('Error while opening /proc/self/cgroup : ',)
--- Logging error ---
Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/ceph_detect_init/__init__.py", line 113, in platform_information
    with open(file_name, 'r') as f:
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1062, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1118, in _mock_call
    raise effect
OSError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/python3.4/logging/__init__.py", line 978, in emit
    msg = self.format(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 828, in format
    return fmt.format(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 565, in format
    record.message = record.getMessage()
  File "/usr/lib64/python3.4/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/coverage", line 11, in <module>
    sys.exit(main())
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/cmdline.py", line 753, in main
    status = CoverageScript().command_line(argv)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/cmdline.py", line 488, in command_line
    return self.do_run(options, args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/cmdline.py", line 627, in do_run
    self.run_python_file(filename, args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/coverage/execfile.py", line 184, in run_python_file
    exec(code, main_mod.__dict__)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/py.test", line 11, in <module>
    sys.exit(main())
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/config.py", line 61, in main
    return config.hook.pytest_cmdline_main(config=config)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 138, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 107, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 145, in _main
    config.hook.pytest_runtestloop(session=session)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/main.py", line 168, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 62, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 79, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 158, in call_and_report
    call = call_runtest_hook(item, when, **kwds)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 178, in call_runtest_hook
    return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 192, in __init__
    self.result = func()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 178, in <lambda>
    return CallInfo(lambda: ihook(item=item, **kwds), when=when)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/runner.py", line 109, in pytest_runtest_call
    item.runtest()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/unittest.py", line 174, in runtest
    self._testcase(result=self)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/unittest2/case.py", line 673, in __call__
    return self.run(*args, **kwds)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 671, in run
    return run_test.run(result)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 80, in run
    return self._run_one(actual_result)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 94, in _run_one
    return self._run_prepared_result(ExtendedToOriginalDecorator(result))
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 108, in _run_prepared_result
    self._run_core()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 144, in _run_core
    self.case._run_test_method, self.result):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/runtest.py", line 191, in _run_user
    return fn(*args, **kwargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 719, in _run_test_method
    return self._get_test_method()()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 300, in test_platform_information_container
    ceph_detect_init.platform_information()
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/ceph_detect_init/__init__.py", line 120, in platform_information
    "Error while opening %s : %s" % (file_name, err))
  File "/usr/lib64/python3.4/logging/__init__.py", line 1849, in debug
    root.debug(msg, *args, **kwargs)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1267, in debug
    self._log(DEBUG, msg, args, **kwargs)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1414, in _log
    self.handle(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1424, in handle
    self.callHandlers(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 1486, in callHandlers
    hdlr.handle(record)
  File "/usr/lib64/python3.4/logging/__init__.py", line 853, in handle
    self.emit(record)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/_pytest/logging.py", line 177, in emit
    logging.StreamHandler.emit(self, record)
Message: 'platform_information: '
Arguments: ('Error while opening /proc/self/cgroup : ',)
_____________ TestCephDetectInit.test_platform_information_freebsd _____________
NOTE: Incompatible Exception Representation, displaying natively:

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 316, in test_platform_information_freebsd
    ceph_detect_init.platform_information())
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: ('freebsd', '12.0-CURRENT', 'r306554M') != ('docker', 'docker', 'docker')

______________ TestCephDetectInit.test_platform_information_linux ______________
NOTE: Incompatible Exception Representation, displaying natively:

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 260, in test_platform_information_linux
    ceph_detect_init.platform_information()[:-1])
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: ('debian', '8.0') != ('docker', 'docker')

_________________________ TestCephDetectInit.test_run __________________________
NOTE: Incompatible Exception Representation, displaying natively:

testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/tests/test_all.py", line 326, in test_run
    self.assertRaises(exc.UnsupportedPlatform, main.run, argv)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 485, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/lib/python3.4/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: <function run at 0x7f8b9389dc80> returned 0

----------------------------- Captured stdout call -----------------------------
none
none
===================== 5 failed, 15 passed in 0.20 seconds ======================
ERROR: InvocationError: '/data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/coverage run --source=ceph_detect_init /data/home/jenkins/jenkins/workspace/ceph/src/ceph-detect-init/.tox/py3/bin/py.test -v tests'
___________________________________ summary ____________________________________
  pep8: commands succeeded
ERROR:   py27: commands failed
ERROR:   py3: commands failed

History

#1 Updated by huang jun 12 months ago

@liuchang what the status now?

#2 Updated by huang jun 11 months ago

The root cause it that all those failed cases in docker will ignore the mock data,
bc the /proc/self/cgroup exists

Also available in: Atom PDF