ciscotestautomation / pyats-docker Goto Github PK
View Code? Open in Web Editor NEWDockerfile and scripts for pyATS
License: Apache License 2.0
Dockerfile and scripts for pyATS
License: Apache License 2.0
Hi Team!
Any chance you will update the container to version 19.9 soon?
[2020-03-06 21:29:09,144] +++ Unicon plugin ios +++
Unable to negotiate with 192.168.1.55 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
[2020-03-06 21:29:09,168] +++ connection to spawn: ssh -l admin 192.168.1.55 -p 22, id: 140467210717896 +++
[2020-03-06 21:29:09,169] connection to fspipswi001
After update the continaer ciscotestautomation/pyats:20.1 to 20.2
i get above error
`(pyats) root@bca36fee1ec0:~# pyats version check
You are currently running pyATS version: 20.10
Python: 3.6.10 [64bit]
Package Version
genie 20.10
genie.libs.clean 20.10
genie.libs.conf 20.10
genie.libs.filetransferutils 20.10
genie.libs.health 20.10
genie.libs.ops 20.10
genie.libs.parser 20.10
genie.libs.robot 20.10
genie.libs.sdk 20.10
genie.telemetry 20.10
genie.trafficgen 20.10
pyats 20.10
pyats.aereport 20.10
pyats.aetest 20.10
pyats.async 20.10
pyats.connections 20.10
pyats.contrib 20.10.3
pyats.datastructures 20.10
pyats.easypy 20.10
pyats.kleenex 20.10
pyats.log 20.10
pyats.reporter 20.10
pyats.results 20.10
pyats.robot 20.10
pyats.tcl 20.10
pyats.topology 20.10
pyats.utils 20.10
unicon 20.10
unicon.plugins 20.10
(pyats) root@bca36fee1ec0:~#`
Full traceback of the error
`(pyats) root@bca36fee1ec0:~# pyats run job test_cases/test_connection_job.py --testbed svk_testbed.yaml
2020-11-26T05:38:34: %REPORTER-WARNING: Attempting to start ReportServer... (5s/30s)
2020-11-26T05:38:39: %REPORTER-WARNING: Attempting to start ReportServer... (10s/30s)
2020-11-26T05:38:44: %REPORTER-WARNING: Attempting to start ReportServer... (15s/30s)
2020-11-26T05:38:49: %REPORTER-WARNING: Attempting to start ReportServer... (20s/30s)
2020-11-26T05:38:54: %REPORTER-WARNING: Attempting to start ReportServer... (25s/30s)
2020-11-26T05:38:59: %REPORTER-ERROR: ReportServer could not start after 30 seconds
2020-11-26T05:38:59: %EASYPY-ERROR: !!! an unhandled exception has interrupted execution !!!
2020-11-26T05:38:59: %EASYPY-ERROR:
2020-11-26T05:38:59: %EASYPY-ERROR: This may be caused by:
2020-11-26T05:38:59: %EASYPY-ERROR: - keyboard interrupts (ctrl+c)
2020-11-26T05:38:59: %EASYPY-ERROR: - job file issues
2020-11-26T05:38:59: %EASYPY-ERROR: - unexpected exceptions from your plugins
2020-11-26T05:38:59: %EASYPY-ERROR:
2020-11-26T05:38:59: %EASYPY-ERROR: As a consequence:
2020-11-26T05:38:59: %EASYPY-ERROR: - execution crashed and the environment may not be cleaned up
2020-11-26T05:38:59: %EASYPY-ERROR: - TRADE/TIMS uploading will likely not occur
2020-11-26T05:38:59: %EASYPY-ERROR:
2020-11-26T05:38:59: %EASYPY-ERROR: Please investigate the traceback below before raising issue to pyats-support.
2020-11-26T05:38:59: %EASYPY-ERROR:
2020-11-26T05:38:59: %EASYPY-ERROR: --------------------------------------------------------------------------------
2020-11-26T05:38:59: %EASYPY-ERROR:
2020-11-26T05:38:59: %EASYPY-ERROR: pyATS Instance : /pyats
2020-11-26T05:38:59: %EASYPY-ERROR: Python Version : cpython-3.6.10 (64bit)
2020-11-26T05:38:59: %EASYPY-ERROR: CLI Arguments : /pyats/bin/pyats run job test_cases/test_connection_job.py --testbed svk_testbed.yaml
2020-11-26T05:38:59: %EASYPY-ERROR: User : root
2020-11-26T05:38:59: %EASYPY-ERROR: Host Server : bca36fee1ec0
2020-11-26T05:38:59: %EASYPY-ERROR: Host OS Version : Debian GNU/Linux 10 buster (x86_64)
2020-11-26T05:38:59: %EASYPY-ERROR:
2020-11-26T05:38:59: %EASYPY-ERROR: Traceback (most recent call last):
2020-11-26T05:38:59: %EASYPY-ERROR: File "src/pyats/easypy/reporter/ae.py", line 79, in pyats.easypy.reporter.ae.AEReporter.start
2020-11-26T05:38:59: %EASYPY-ERROR: File "src/pyats/reporter/server.py", line 876, in pyats.reporter.server.ReportServer.start_server
2020-11-26T05:38:59: %EASYPY-ERROR: pyats.reporter.exceptions.ServerNotStartedError: ReportServer could not start after 30 seconds
2020-11-26T05:38:59: %EASYPY-INFO: Sending report email...
2020-11-26T05:38:59: %EASYPY-INFO: Missing SMTP server configuration, or failed to reach/authenticate/send mail. Result notification email failed to send.
2020-11-26T05:38:59: %EASYPY-INFO: Creating archive file: /root/.pyats/archive/20-Nov/test_connection_job.2020Nov26_05:38:30.866360.zip
Process ForkProcess-2:
Traceback (most recent call last):
File "src/pyats/reporter/server.py", line 914, in pyats.reporter.server.ReportServer._run_server
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "src/pyats/reporter/server.py", line 929, in pyats.reporter.server.ReportServer._run_server
File "src/pyats/reporter/server.py", line 56, in pyats.reporter.server.signal_catcher
pyats.reporter.exceptions.SignalError: Received SIGTERM
2020-11-26T05:38:59: %EASYPY-INFO: Done!`
I get the following which causes my build to fail:
RUN pip install -r /pyats/requirements.txt
Could not open requirements file: [Errno 2] No such file or directory: '/pyats/requirements.txt'
Please advise thanks
I am running docker container with mounting
docker run -it -v /auto/pysw/ats64/:/auto/pysw/ats64/ -v $PWD:/pyats/unified-perf ciscotestautomation/pyats:latest bash
I am doing
source /pyats/bin/activate
source /auto/pysw/ats64/env.sh
Then running easypy command getting below error '
2021-06-22T10:23:31: %EASYPY-INFO: Job finished. Wrapping up...
2021-06-22T10:23:31: %EASYPY-ERROR: Caught 1 or more error in Easypy plugins:
2021-06-22T10:23:31: %EASYPY-ERROR: TestbedPlugin[pre_job] Traceback (most recent call last):
2021-06-22T10:23:31: %EASYPY-ERROR: File "src/pyats/utils/schemaengine.py", line 603, in pyats.utils.schemaengine.Use.validate
2021-06-22T10:23:31: %EASYPY-ERROR: File "src/pyats/utils/import_utils/misc.py", line 44, in pyats.utils.import_utils.misc.import_from_name
2021-06-22T10:23:31: %EASYPY-ERROR: File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
2021-06-22T10:23:31: %EASYPY-ERROR: return _bootstrap._gcd_import(name[level:], package, level)
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 994, in _gcd_import
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 971, in _find_and_load
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 941, in _find_and_load_unlocked
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 219, in _call_with_frames_removed
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 994, in _gcd_import
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 971, in _find_and_load
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 955, in _find_and_load_unlocked
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 665, in _load_unlocked
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 678, in exec_module
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 219, in _call_with_frames_removed
2021-06-22T10:23:31: %EASYPY-ERROR: File "/pyats/lib/python3.6/site-packages/hltapi/init.py", line 3, in
2021-06-22T10:23:31: %EASYPY-ERROR: from .legacy import Ixia, Spirent, Pagent
2021-06-22T10:23:31: %EASYPY-ERROR: File "/pyats/lib/python3.6/site-packages/hltapi/legacy.py", line 5, in
2021-06-22T10:23:31: %EASYPY-ERROR: from ats.tcl import Interpreter, KeyedList
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 971, in _find_and_load
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 955, in _find_and_load_unlocked
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 658, in _load_unlocked
2021-06-22T10:23:31: %EASYPY-ERROR: File "", line 571, in module_from_spec
2021-06-22T10:23:31: %EASYPY-ERROR: File "src/pyats/utils/import_utils/legacy.py", line 33, in pyats.utils.import_utils.legacy.LegacyLoader.create_module
2021-06-22T10:23:31: %EASYPY-ERROR: File "/pyats/lib/python3.6/site-packages/pyats/tcl/init.py", line 38, in
2021-06-22T10:23:31: %EASYPY-ERROR: from .interpreter import Interpreter, _global_interpreter
2021-06-22T10:23:31: %EASYPY-ERROR: File "src/pyats/tcl/interpreter.py", line 756, in init pyats.tcl.interpreter
2021-06-22T10:23:31: %EASYPY-ERROR: File "src/pyats/tcl/interpreter.py", line 90, in pyats.tcl.interpreter.Interpreter.init
2021-06-22T10:23:31: %EASYPY-ERROR: _tkinter.TclError: can't find package Tclx
2021-06-22T10:23:31: %EASYPY-ERROR:
This does not currently work....
docker run -it --rm -v $(PWD):/tests ciscotestautomation/pyats easypy /tests/pyats_ios_example_job.py -testbed_file /tests/default_testbed.yaml -archive_dir=/tests/.pyATS
As a workaround you can do the following:
run_tests.sh
easypy /tests/pyats_ios_example_job.py -testbed_file /tests/default_testbed.yaml -archive_dir=/tests/.pyATS
and then
docker run -it --rm -v $(PWD):/tests ciscotestautomation/pyats bash /tests/run_tests.sh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.