-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
topotests: 'sudo pytest bgp-ecmp-topo1/test_bgp_ecmp_topo1.py' always fail #4383
Comments
I had a similar problem recently when I was switching between python2 and python3, and poking at topotests. I'd managed to harm my python2 installation of exabgp, and I had no |
Mark is correct, your @polychaeta autoclose in 2 days |
Hi, Mark,I have a try that, but it still didn't work. I have /usr/local/bin/exabgp. the new error following: zfg@zfg-virtual-machine:~/frr/frr/tests/topotests/bgp-ecmp-topo1$ sudo pytest test_bgp_ecmp_topo1.py -s -vv 2019-05-23 19:37:56,021 INFO: Running environment diagnostics test_bgp_ecmp_topo1.py::test_bgp_convergence 2019-05-23 19:37:58,769 INFO: loading topology: test_bgp_ecmp_topo1 ================================== FAILURES ===================================
E AssertionError: BGP router network did not converge test_bgp_ecmp_topo1.py:157: AssertionError |
This issue will no longer be automatically closed. |
Thanks for all of you! The problem has been solved. The installtion of exabgp is not correctly. |
Hi, I configure test according to "http://docs.frrouting.org/projects/dev-guide/en/latest/topotests.html", but 'sudo pytest bgp-ecmp-topo1/test_bgp_ecmp_topo1.py' always fail. ‘sudo pytest ospf-topo1/test_ospf_topo1.py’ is ok.
the following is error messages:
zfg@zfg-virtual-machine:~/frr/frr/tests/topotests$ sudo pytest bgp-ecmp-topo1/test_bgp_ecmp_topo1.py -s -vv
2019-05-23 01:15:59,043 INFO: Running environment diagnostics
2019-05-23 01:15:59,331 WARNING: failed to find exabgp or returned error
============================================================================ test session starts ============================================================================
platform linux2 -- Python 2.7.15rc1, pytest-3.3.2, py-1.5.2, pluggy-0.6.0 -- /usr/bin/python2
cachedir: .cache
rootdir: /home/zfg/frr/frr/tests/topotests, inifile: pytest.ini
collected 2 items
bgp-ecmp-topo1/test_bgp_ecmp_topo1.py::test_bgp_convergence 2019-05-23 01:16:02,794 INFO: loading topology: test_bgp_ecmp_topo1
2019-05-23 01:16:02,794 INFO: starting topology: test_bgp_ecmp_topo1
2019-05-23 01:16:06,085 INFO: r1: running version: 7.0.1-MyOwnFRRVersion-g305c097
2019-05-23 01:16:06,088 INFO: r1: waiting for zebra to start (1 seconds)
2019-05-23 01:16:07,985 INFO: starting BGP on all 20 peers (10 seconds)
2019-05-23 01:16:18,251 INFO: peer1 exabgp started, output=bash: exabgp: Command not found
2019-05-23 01:16:18,251 INFO: peer1
2019-05-23 01:16:18,319 INFO: peer20 exabgp started, output=bash: exabgp: Command not found
....
2019-05-23 01:16:18,908 INFO: peer17
2019-05-23 01:16:18,930 INFO: peer16 exabgp started, output=bash: exabgp: Command not found
2019-05-23 01:16:18,930 INFO: peer16
2019-05-23 01:16:19,014 INFO: '_output_summary_cmp' polling started (interval 0.5 secs, maximum wait 30 secs)
2019-05-23 01:16:55,952 ERROR: '_output_summary_cmp' failed after 36.94 seconds
2019-05-23 01:16:56,037 ERROR: assert failed at "test_bgp_ecmp_topo1/test_bgp_convergence": BGP router network did not converge
assert json["ipv4Unicast"]["peers"]["10.0.2.107"]["state"] value is different (
--- Expected value
+++ Current value
@@ -1 +1 @@
-"Established"
+"Active")
json["ipv4Unicast"]["peers"]["10.0.2.107"]["prefixReceivedCount"] value is different (
--- Expected value
+++ Current value
@@ -1 +1 @@
-42
+0)
......
bgp-ecmp-topo1/test_bgp_ecmp_topo1.py:185: AssertionError
========================================================================= 2 failed in 68.50 seconds =========================================================================
zfg@zfg-virtual-machine:~/frr/frr/tests/topotests$
the following is my configure:
os: Ubuntu 18.04.2 LTS,
frr: frr-7.0.1-1-gcd305c097,
exabgp:
zfg@zfg-virtual-machine:/$ exabgp -v
ExaBGP : 3.4.17
Python : 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
Uname : #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019
zfg@zfg-virtual-machine:/etc/exabgp$ ll
total 32
drwxr-xr-x 2 exabgp exabgp 4096 5月 22 23:02 ./
drwxr-xr-x 136 root root 12288 5月 22 22:21 ../
-rw-r--r-- 1 exabgp exabgp 399 5月 22 22:59 exabgp.cfg
-rw-r--r-- 1 exabgp exabgp 702 5月 22 22:59 exabgp.env
-rwxr-xr-x 1 exabgp exabgp 853 5月 22 23:01 exa-receive.py*
-rwxr-xr-x 1 exabgp exabgp 1827 5月 22 23:02 exa-send.py*
The text was updated successfully, but these errors were encountered: