Hmm, I noticed that your system-wide scapy is 2.3.1, while we
specifically use version 2.3.3 in the tests. Also I wonder how it's
possible that the tests pass on centos in gerrit..
Please note that the system-wide or 'pip install'-wide scapy doesn't
matter as make test sets up its own virtualenv (think of it as its own
chroot with all the (python) stuff it needs)...
Quoting Billy McFall (2017-08-15 16:25:19)
> FYI - I was able to run "make test" on my Fedora laptop. I noticed the
> scapy wasn't installed, so I ran "pip uninstall scapy" on the CentOS
> server that is having the issue. Still has the problem.
> Here is the output:
> (virtualenv)[bmcfall@d2fxl02 test]$ scapy
> INFO: Can't import matplotlib. Won't be able to plot.
> INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
> Traceback (most recent call last):
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/bin/scapy",
> line 25, in <module>
> interact()
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/main.py",
> line 300, in interact
> scapy_builtins = __import__("all",globals(),locals(),".").__dict__
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/all.py",
> line 28, in <module>
> from scapy.route6 import *
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/route6.py",
> line 273, in <module>
> conf.route6 = Route6()
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/route6.py",
> line 31, in __init__
> self.resync()
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/route6.py",
> line 44, in resync
> self.routes = read_routes6()
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/arch/linux.py",
> line 283, in read_routes6
> cset = scapy.utils6.construct_source_candidate_set(d, dp, devaddrs,
> LOOPBACK_NAME)
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/utils6.py",
> line 50, in construct_source_candidate_set
> if in6_isgladdr(addr) or in6_isuladdr(addr):
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/utils6.py",
> line 708, in in6_isgladdr
> return in6_isincluded(str, '2000::', 3)
> File
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/utils6.py",
> line 651, in in6_isincluded
> temp = inet_pton(socket.AF_INET6, addr)
> Billy McFall
> On Tue, Aug 15, 2017 at 10:02 AM, Klement Sekera -X (ksekera - PANTHEON
> TECHNOLOGIES at Cisco) <[1][email protected]> wrote:
>
> We do not use the system-wide scapy, instead we install a specific
> version of scapy which we patch with our own stuff.
>
> Could you try "make test-shell" and run scapy from the spawned shell?
>
> Thanks,
> Klement
>
> Quoting Billy McFall (2017-08-15 14:26:33)
> > Thanks Klement,
> > Details:
> > OS: CentOS Linux release 7.3.1611
> > Kernel: 3.10.0-514.21.1.el7.x86_64
> > sudo scapy
> > INFO: Can't import python gnuplot wrapper . Won't be able to
> plot.
> > INFO: Can't import PyX. Won't be able to use psdump() or
> pdfdump().
> > Welcome to Scapy (2.3.1)
> > >>>
> > Let me know if there is something else that would help.
> > Billy
> > On Tue, Aug 15, 2017 at 4:02 AM, Klement Sekera -X (ksekera -
> PANTHEON
> > TECHNOLOGIES at Cisco) <[1][2][email protected]> wrote:
> >
> > Hi Billy,
> >
> > I haven't seen this issue yet, but it looks like this is a scapy
> issue
> > on your box. Scapy is a 3rd party library which we use in the
> test
> > framework. What is the exact version of your OS etc?
> >
> > Thanks,
> > Klement
> >
> > Quoting Billy McFall (2017-08-14 21:30:35)
> > > I am trying to run "make test" on a CentOS bare metal
> server. I'm
> > getting
> > > "Exception: Illegal syntax for IP address". What do I need
> to
> > > setup/configure on my server before running "make test"?
> > > Thanks,
> > > Billy McFall
> > > $ make test V=2
> > > make -C
> /home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root
> > > PLATFORM=vpp TAG=vpp vpp-install
> > > make[1]: Entering directory
> > > `/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root'
> > > @@@@ Arch for platform 'vpp' is native @@@@
> > > @@@@ Finding source for dpdk @@@@
> > > @@@@ Makefile fragment found in
> > >
> >
>
> /home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-data/packages/[1][2][3]dpdk.mk
> > > @@@@
> > > @@@@ Source found in
> > /home/bmcfall/dev/2017_08_14_VPP_Master/vpp/dpdk @@@@
> > > @@@@ Arch for platform 'vpp' is native @@@@
> > > @@@@ Finding source for vpp @@@@
> > > @@@@ Makefile fragment found in
> > >
> >
>
> /home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-data/packages/[2][3][4]vpp.mk
> > > @@@@
> > > @@@@ Source found in
> > /home/bmcfall/dev/2017_08_14_VPP_Master/vpp/src @@@@
> > > @@@@ Configuring dpdk: nothing to do @@@@
> > > @@@@ Building dpdk: nothing to do @@@@
> > > @@@@ Installing dpdk: nothing to do @@@@
> > > @@@@ Configuring vpp: nothing to do @@@@
> > > @@@@ Building vpp: nothing to do @@@@
> > > @@@@ Installing vpp: nothing to do @@@@
> > > make[1]: Leaving directory
> > > `/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root'
> > > make -C test
> > TEST_DIR=/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test
> > >
> >
>
> VPP_TEST_BUILD_DIR=/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/build-vpp-native
> > > VPP_TES
> > >
> >
>
> T_BIN=/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/install-vpp-native/vpp/bin/vpp
> > >
> >
>
> VPP_TEST_PLUGIN_PATH=/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/i
> > >
> >
>
> nstall-vpp-native/vpp/lib/vpp_plugins:/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins
> > > VPP_TEST_INSTALL_PATH=/home/bmcfall
> > >
> /dev/2017_08_14_VPP_Master/vpp/build-root/install-vpp-native/
> > >
> >
>
> LD_LIBRARY_PATH=/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/install-vpp-native/vpp/lib/:/home/bm
> > >
> >
>
> cfall/dev/2017_08_14_VPP_Master/vpp/build-root/install-vpp-native/vpp/lib64/
> > > EXTENDED_TESTS= PYTHON= test
> > > make[1]: Entering directory
> > > `/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test'
> > > Traceback (most recent call last):
> > > File "sanity_run_vpp.py", line 7, in <module>
> > > from framework import VppTestCase, KeepAliveReporter
> > > File
> > "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test/framework.py",
> > > line 20, in <module>
> > > from vpp_pg_interface import VppPGInterface
> > > File
> > >
> >
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test/vpp_pg_interface.py",
> > > line 8, in <module>
> > > from vpp_interface import VppInterface
> > > File
> > >
> >
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test/vpp_interface.py",
> > line
> > > 4, in <module>
> > > from util import Host, mk_ll_addr
> > > File
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test/util.py",
> > line 7,
> > > in <module>
> > > from scapy.layers.inet6 import in6_mactoifaceid
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/layers/inet6.py",
> > > line 56, in <module>
> > > import scapy.route6
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/route6.py",
> > > line 273, in <module>
> > > conf.route6 = Route6()
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/route6.py",
> > > line 31, in __init__
> > > self.resync()
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/route6.py",
> > > line 44, in resync
> > > self.routes = read_routes6()
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/arch/linux.py",
> > > line 283, in read_routes6
> > > cset = scapy.utils6.construct_source_candidate_set(d,
> dp,
> > devaddrs,
> > > LOOPBACK_NAME)
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/utils6.py",
> > > line 50, in construct_source_candidate_set
> > > if in6_isgladdr(addr) or in6_isuladdr(addr):
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/utils6.py",
> > > line 708, in in6_isgladdr
> > > return in6_isincluded(str, '2000::', 3)
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/utils6.py",
> > > line 651, in in6_isincluded
> > > temp = inet_pton(socket.AF_INET6, addr)
> > > File
> > >
> >
>
> "/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/build-root/python/virtualenv/lib/python2.7/site-packages/scapy/pton_ntop.py",
> > > line 40, in inet_pton
> > > raise Exception("Illegal syntax for IP address")
> > > Exception: Illegal syntax for IP address
> > >
> *******************************************************************
> > > * Sanity check failed, cannot run vpp
> > >
> *******************************************************************
> > > make[1]: *** [sanity] Error 1
> > > make[1]: Leaving directory
> > > `/home/bmcfall/dev/2017_08_14_VPP_Master/vpp/test'
> > > make: *** [test] Error 2
> > > On Thu, Jul 6, 2017 at 6:26 AM, Maciek Konstantynowicz
> (mkonstan)
> > > <[3][4][5][email protected]> wrote:
> > >
> > > +vpp-dev.
> > > yes, vpp make-test.
> > >
> >
> [4][5][6]https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> > > [5][6][7]https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> > > -Maciek
> > >
> > > On 6 Jul 2017, at 10:34, [6][7][8][email protected]
> wrote:
> > >
> > > Hi all
> > >
> > > Does vpp has some kind of UT test framework , and how to
> use it
> > ?
> > >
> > > Thanks.
> > >
> > > 王辉 wanghui
> > >
> > > IT开发工程师 IT Development Engineer
> > > 虚拟化南京四部/无线研究院/无线产品经营部 NIV Nanjing
> Dept.
> > IV/Wireless
> > > Product R&D Institute/Wireless Product Operation
> Division
> > >
> > >
> > > _______________________________________________
> > > csit-dev mailing list
> > > [7][8][9][email protected]
> > > [8][9][10]https://lists.fd.io/mailman/listinfo/csit-dev
> > >
> > > _______________________________________________
> > > vpp-dev mailing list
> > > [9][10][11][email protected]
> > > [10][11][12]https://lists.fd.io/mailman/listinfo/vpp-dev
> > >
> > > --
> > > Billy McFall
> > > SDN Group
> > > Office of Technology
> > > Red Hat
> > >
> > > References
> > >
> > > Visible links
> > > 1. [12][13]http://dpdk.mk/
> > > 2. [13][14]http://vpp.mk/
> > > 3. mailto:[14][15][email protected]
> > > 4.
> >
> [15][16]https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> > > 5. [16][17]https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> > > 6. mailto:[17][18][email protected]
> > > 7. mailto:[18][19][email protected]
> > > 8. [19][20]https://lists.fd.io/mailman/listinfo/csit-dev
> > > 9. mailto:[20][21][email protected]
> > > 10. [21][22]https://lists.fd.io/mailman/listinfo/vpp-dev
> >
> > --
> > Billy McFall
> > SDN Group
> > Office of Technology
> > Red Hat
> >
> > References
> >
> > Visible links
> > 1. mailto:[23][email protected]
> > 2. [24]http://dpdk.mk/
> > 3. [25]http://vpp.mk/
> > 4. mailto:[26][email protected]
> > 5.
> [27]https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> > 6. [28]https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> > 7. mailto:[29][email protected]
> > 8. mailto:[30][email protected]
> > 9. [31]https://lists.fd.io/mailman/listinfo/csit-dev
> > 10. mailto:[32][email protected]
> > 11. [33]https://lists.fd.io/mailman/listinfo/vpp-dev
> > 12. [34]http://dpdk.mk/
> > 13. [35]http://vpp.mk/
> > 14. mailto:[36][email protected]
> > 15.
> [37]https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> > 16. [38]https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> > 17. mailto:[39][email protected]
> > 18. mailto:[40][email protected]
> > 19. [41]https://lists.fd.io/mailman/listinfo/csit-dev
> > 20. mailto:[42][email protected]
> > 21. [43]https://lists.fd.io/mailman/listinfo/vpp-dev
>
> --
> Billy McFall
> SDN Group
> Office of Technology
> Red Hat
>
> References
>
> Visible links
> 1. mailto:[email protected]
> 2. mailto:[email protected]
> 3. http://dpdk.mk/
> 4. http://vpp.mk/
> 5. mailto:[email protected]
> 6. https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> 7. https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> 8. mailto:[email protected]
> 9. mailto:[email protected]
> 10. https://lists.fd.io/mailman/listinfo/csit-dev
> 11. mailto:[email protected]
> 12. https://lists.fd.io/mailman/listinfo/vpp-dev
> 13. http://dpdk.mk/
> 14. http://vpp.mk/
> 15. mailto:[email protected]
> 16. https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> 17. https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> 18. mailto:[email protected]
> 19. mailto:[email protected]
> 20. https://lists.fd.io/mailman/listinfo/csit-dev
> 21. mailto:[email protected]
> 22. https://lists.fd.io/mailman/listinfo/vpp-dev
> 23. mailto:[email protected]
> 24. http://dpdk.mk/
> 25. http://vpp.mk/
> 26. mailto:[email protected]
> 27. https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> 28. https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> 29. mailto:[email protected]
> 30. mailto:[email protected]
> 31. https://lists.fd.io/mailman/listinfo/csit-dev
> 32. mailto:[email protected]
> 33. https://lists.fd.io/mailman/listinfo/vpp-dev
> 34. http://dpdk.mk/
> 35. http://vpp.mk/
> 36. mailto:[email protected]
> 37. https://docs.fd.io/csit/rls1704/report/vpp_unit_tests/index.html
> 38. https://docs.fd.io/vpp/17.04/vpp_make_test/html/
> 39. mailto:[email protected]
> 40. mailto:[email protected]
> 41. https://lists.fd.io/mailman/listinfo/csit-dev
> 42. mailto:[email protected]
> 43. https://lists.fd.io/mailman/listinfo/vpp-dev
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev