[P4-dev] INT Demo

aditya dogra dogra.aditya at gmail.com
Wed Jul 5 12:29:55 EDT 2017


Hi team,

    We are trying to run the Inband Network telemetry Demo as
described in the git
https://github.com/p4lang/p4factory/tree/master/apps/int. We are
trying it on Ubuntu 16.04.2 64 bit.

When we run the below command to make the docker image , its not
building the image or we are finding it at wrong place.
Can someone please tell if this demo works on Ubuntu 16.04.2 64 bit ?
If yes , are there some different steps which we need to follow.


Logs :


make -f docker.mk bmv2-docker-image installpath=$HOME/install

as well as sudo make -f docker.mk bmv2-docker-image installpath=$HOME/install



[ 88%] Built target remote_thr
[ 89%] Built target reqrep
[ 90%] Built target reqttl
[ 90%] Built target separation
[ 91%] Built target shutdown
[ 92%] Built target stats
[ 93%] Built target survey
[ 93%] Built target surveyttl
[ 94%] Built target symbol
[ 95%] Built target tcp
[ 95%] Built target tcp_shutdown
[ 96%] Built target term
[ 97%] Built target timeo
[ 97%] Built target trie
[ 98%] Built target ws
[ 99%] Built target ws_async_shutdown
[100%] Built target zerocopy
Install the project...
-- Install configuration: ""
-- Installing: /usr/include/nanomsg/nn.h
-- Installing: /usr/include/nanomsg/inproc.h
-- Installing: /usr/include/nanomsg/ipc.h
-- Installing: /usr/include/nanomsg/tcp.h
-- Installing: /usr/include/nanomsg/ws.h
-- Installing: /usr/include/nanomsg/pair.h
-- Installing: /usr/include/nanomsg/pubsub.h
-- Installing: /usr/include/nanomsg/reqrep.h
-- Installing: /usr/include/nanomsg/pipeline.h
-- Installing: /usr/include/nanomsg/survey.h
-- Installing: /usr/include/nanomsg/bus.h
-- Installing: /usr/bin/nanocat
-- Removed runtime path from "/usr/bin/nanocat"
-- Installing: /usr/lib/x86_64-linux-gnu/pkgconfig/nanomsg.pc
-- Installing: /usr/lib/x86_64-linux-gnu/libnanomsg.so.1.0.0
-- Installing: /usr/lib/x86_64-linux-gnu/libnanomsg.so.5.0.0
-- Installing: /usr/lib/x86_64-linux-gnu/libnanomsg.so
Cloning into 'nnpy'...
Note: checking out 'c7e718a5173447c85182dc45f99e2abcf9cd4065'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at c7e718a... Merge pull request #7 from bnewbold/patch-1
Downloading/unpacking cffi
  Running setup.py (path:/tmp/pip_build_root/cffi/setup.py) egg_info
for package cffi

Downloading/unpacking pycparser (from cffi)
  Running setup.py (path:/tmp/pip_build_root/pycparser/setup.py)
egg_info for package pycparser

    warning: no previously-included files matching 'yacctab.*' found
under directory 'tests'
    warning: no previously-included files matching 'lextab.*' found
under directory 'tests'
    warning: no previously-included files matching 'yacctab.*' found
under directory 'examples'
    warning: no previously-included files matching 'lextab.*' found
under directory 'examples'
Installing collected packages: cffi, pycparser
  Running setup.py install for cffi
    building '_cffi_backend' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD
-DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python2.7 -c c/_cffi_backend.c
-o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1
-Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro
-fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
-D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security
build/temp.linux-x86_64-2.7/c/_cffi_backend.o -lffi -o
build/lib.linux-x86_64-2.7/_cffi_backend.so

  Running setup.py install for pycparser

    warning: no previously-included files matching 'yacctab.*' found
under directory 'tests'
    warning: no previously-included files matching 'lextab.*' found
under directory 'tests'
    warning: no previously-included files matching 'yacctab.*' found
under directory 'examples'
    warning: no previously-included files matching 'lextab.*' found
under directory 'examples'
    Build the lexing/parsing tables
Successfully installed cffi pycparser
Cleaning up...
Unpacking /nnpy
  Running setup.py (path:/tmp/pip-_rByfX-build/setup.py) egg_info for
package from file:///nnpy

Requirement already satisfied (use --upgrade to upgrade): cffi in
/usr/local/lib/python2.7/dist-packages (from nnpy==0.1)
Requirement already satisfied (use --upgrade to upgrade): pycparser in
/usr/local/lib/python2.7/dist-packages (from cffi->nnpy==0.1)
Installing collected packages: nnpy
  Running setup.py install for nnpy

Successfully installed nnpy
Cleaning up...
 ---> f416f496d6ab
Removing intermediate container 58d00db4ae0c
Step 14/16 : ENV VTYSH_PAGER more
 ---> Running in f3feb783473d
 ---> 79cdd1baacf0
Removing intermediate container f3feb783473d
Step 15/16 : ADD /home/osboxes/install /home/osboxes/install
 ---> 98d0768f3d5c
Removing intermediate container 094ec8d5d283
Step 16/16 : CMD /bin/bash
 ---> Running in 7e3362f51437
 ---> c8a581524a17*Removing intermediate container 7e3362f51437
Successfully built c8a581524a17
Successfully tagged p4dockerswitch_bmv2:latest*
osboxes at osboxes:~/Desktop/p4-git/p4factory/makefiles$
*osboxes at osboxes:~/Desktop/p4-git/p4factory/makefiles$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED
         STATUS              PORTS               NAMES
osboxes at osboxes:~/Desktop/p4-git/p4factory/makefiles$ *

osboxes at osboxes:~/Desktop/p4-git/p4factory/makefiles$ *ls -lat
/home/osboxes/install/*
total 8
drwxr-xr-x 19 osboxes osboxes 4096 Jul  5 07:13 ..
drwxrwxrwx  2 osboxes osboxes 4096 Jul  5 06:15 .
osboxes at osboxes:~/Desktop/p4-git/p4factory/makefiles$


Thanks & Regards,

Aditya dogra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170705/ca96c22c/attachment-0002.html>


More information about the P4-dev mailing list