Code Monkey home page Code Monkey logo

pyats-docker's People

Contributors

bastell avatar dani-maarouf avatar danielgraziano avatar dwapstra avatar gerriorl avatar jeaubin avatar simingy avatar tahigash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyats-docker's Issues

pyATS version 19.9

Hi Team!

Any chance you will update the container to version 19.9 soon?

ssh negotiate problem - no matching cipher found

[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

Recieving "ReportServer could not start after 30 seconds" error after running a test job

Pyats docker version

`(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!`

Requirments not found ?

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

How to fix this _tkinter.TclError: can't find package Tclx

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:

reporter crash if easypy is launched directly as the docker run command

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.