Skip to content

Instantly share code, notes, and snippets.

@bluecmd
Created August 6, 2016 18:58
Show Gist options
  • Save bluecmd/bdc7d68a9d6e91ab37aab9f1a637ffa9 to your computer and use it in GitHub Desktop.
Save bluecmd/bdc7d68a9d6e91ab37aab9f1a637ffa9 to your computer and use it in GitHub Desktop.
[openswitch]$ make testenv_rerun feature ops-cli [ops-build]
Build System for openswitch
Platform: genericx86-64
[sudo] password for bluecmd:
Collecting the requested code to run feature tests...
ops-cli: fetching tests from git...
HEAD is now at e84be71 ops-utils call for setting and getting tag and trunked VLANs for port table.
Starting feature tests execution...
Iterating the tests 1 times
Running the testsuite on iteration 1
py34 create: /home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34
py34 installdeps: -r/home/bluecmd/openswitch/ops-build/build/test/feature/requirements.txt
py34 runtests: PYTHONHASHSEED='3714410056'
py34 runtests: commands[0] | flake8 /home/bluecmd/openswitch/ops-build/build/test/feature/code_under_test
py34 runtests: commands[1] | py.test --durations=10 --junitxml=/home/bluecmd/openswitch/ops-build/build/test/feature/test-results.xml --topology-nml-dir topologies --topology-plot-dir topologies --topology-plot-format svg --topology-inject /home/bluecmd/openswitch/ops-build/build/test/feature/attributes.json --topology-platform docker -x -v -s /home/bluecmd/openswitch/ops-build/build/test/feature/code_under_test
============================================================================================================================================= test session starts =============================================================================================================================================
platform linux -- Python 3.4.2, pytest-2.8.4, py-1.4.31, pluggy-0.3.1 -- /home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/bin/python3.4
cachedir: ../../../.cache
topology: platform='docker'
plot_dir='/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/tmp/topologies' (svg)
nml_dir='/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/tmp/topologies'
rootdir: /home/bluecmd/openswitch/ops-build/build/test/feature, inifile:
plugins: topology-docker-openswitch-0.1.0, topology-1.7.2, logging-2015.11.4, timeout-1.0.0, xdist-1.14, random-0.02
collected 18 items
../../../code_under_test/ops-cli/test_ft_logrotate.py::test_ft_logrotate 20:54:17,0022 [topology.manager:294 ][CRITICAL] Build failed at stage "add_node" with "404 Client Error: Not Found ("b"Container command '/sbin/init' not found or does not exist."")". Calling plugin rollback routine...
rm: cannot remove ‘/var/run/netns/None’: No such file or directory
ERROR
=================================================================================================================================================== ERRORS ====================================================================================================================================================
_____________________________________________________________________________________________________________________________________ ERROR at setup of test_ft_logrotate _____________________________________________________________________________________________________________________________________
Error building topology in module test_ft_logrotate:
Traceback (most recent call last):
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/docker/client.py", line 170, in _raise_for_status
response.raise_for_status()
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/requests/models.py", line 844, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localunixsocket/v1.23/containers/0161cb7302986e3a19f56773511b516e837d5845f4463b4c405a74a75bedba0c/start
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/topology/pytest/plugin.py", line 157, in topology
topomgr.build()
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/topology/manager.py", line 239, in build
enode = self._platform.add_node(node)
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/src/topology-docker/lib/topology_docker/platform.py", line 85, in add_node
enode.start()
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/src/topology-docker/lib/topology_docker/node.py", line 233, in start
self._client.start(self.container_id)
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/docker/utils/decorators.py", line 21, in wrapped
return f(self, resource_id, *args, **kwargs)
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/docker/api/container.py", line 368, in start
self._raise_for_status(res)
File "/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/lib/python3.4/site-packages/docker/client.py", line 173, in _raise_for_status
raise errors.NotFound(e, response, explanation=explanation)
docker.errors.NotFound: 404 Client Error: Not Found ("b"Container command '/sbin/init' not found or does not exist."")
--------------------------------------------------------------------------------------------------------- generated xml file: /home/bluecmd/openswitch/ops-build/build/test/feature/test-results.xml ----------------------------------------------------------------------------------------------------------
========================================================================================================================================== slowest 10 test durations ==========================================================================================================================================
1.82s setup code_under_test/ops-cli/test_ft_logrotate.py::test_ft_logrotate
0.00s teardown code_under_test/ops-cli/test_ft_logrotate.py::test_ft_logrotate
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========================================================================================================================================== 1 error in 2.02 seconds ===========================================================================================================================================
ERROR: InvocationError: '/home/bluecmd/openswitch/ops-build/build/test/feature/.tox/py34/bin/py.test --durations=10 --junitxml=/home/bluecmd/openswitch/ops-build/build/test/feature/test-results.xml --topology-nml-dir topologies --topology-plot-dir topologies --topology-plot-format svg --topology-inject /home/bluecmd/openswitch/ops-build/build/test/feature/attributes.json --topology-platform docker -x -v -s /home/bluecmd/openswitch/ops-build/build/test/feature/code_under_test'
___________________________________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________________________________
ERROR: py34: commands failed
tools/Rules.make:773: recipe for target '_testenv_rerun' failed
make[1]: *** [_testenv_rerun] Error 1
tools/Rules.make:675: recipe for target 'testenv_rerun' failed
make: *** [testenv_rerun] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment