[P4-dev] P4-dev Digest, Vol 19, Issue 17

aditya dogra dogra.aditya at gmail.com
Mon Aug 7 00:35:48 EDT 2017


Hi Avinash/Dongeun,

        We are running the INT Demo and observing that the *Chrome app is
not showing up any delay or any flow.*  Can you please tell what could have
caused this problem ?



We are observing the following error in the Leaf-1 and Leaf-2 .


root at leaf1:/tmp# ls
bmv2-0-notifications.ipc  bmv2_driver.log  bmv2_model.log  start.sh
root at leaf1:/tmp# more bmv2_driver.log
Starting RPC server on port 9090
Adding Thrift service for P4 program dc to server
Starting API RPC server on port 9091
RPC Initialization
Starting SAI RPC server on port 9092
vlan already exists 14000001switcht_api_init
switcht_api_int_transit_enable/disable = 1

*failed to find filter. packet not transformed failed to find filter.
packet not transformedfailed to find filter. packet not transformed failed
to find filter.*


Is the above error related to the issue.



We have updated the submodules of p4factory once and got the latest code of
the submodules. We have rebuild submodules and docker switch.



Also we did the TCP Dump at Leaf-1 and Leaf-2 after starting the iperf
session for 600 seconds .


Started a long running iperf session

root at addogra-VirtualBox:/home/addogra/p4git/p4factory/mininet# iperf -c
10.2.1.3 -t 600



*Leaf-1 TCP Dump output *

*root at leaf1:/tmp# sudo /usr/bin/tcpdump -i leaf1-eth1 -vv*


04:24:59.552027 IP (tos 0x0, ttl 64, id 33041, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.1.1.55493 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:24:59.972394 IP (tos 0x0, ttl 63, id 53566, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.2.2.58030 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:24:59.972477 IP (tos 0x0, ttl 64, id 6948, offset 0, flags [none], proto
UDP (17), length 146)
    10.0.1.1.58030 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:00.016916 IP (tos 0x0, ttl 61, id 34436, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.4.4.46199 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:00.017079 IP (tos 0x0, ttl 64, id 57115, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.1.1.46199 > 10.0.4.4.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:00.757490 IP (tos 0x0, ttl 61, id 37823, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.3.3.55493 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:00.757558 IP (tos 0x0, ttl 64, id 33253, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.1.1.55493 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:00.794022 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
10.1.21.2 tell 10.1.21.1, length 28
04:25:00.974866 IP (tos 0x0, ttl 63, id 53607, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.2.2.58030 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:00.974908 IP (tos 0x0, ttl 64, id 7013, offset 0, flags [none], proto
UDP (17), length 146)
    10.0.1.1.58030 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:01.069164 IP (tos 0x0, ttl 61, id 34630, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.4.4.46199 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:01.069347 IP (tos 0x0, ttl 64, id 57364, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.1.1.46199 > 10.0.4.4.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
^C
213 packets captured
213 packets received by filter
0 packets dropped by kernel
root at leaf1:/tmp#


Leaf-2 TCP Dump output



*root at leaf2:/# sudo /usr/bin/tcpdump -i leaf2-eth1 -vv *
04:25:08.781803 IP (tos 0x0, ttl 64, id 9660, offset 0, flags [none], proto
UDP (17), length 1362)
    10.0.3.3.56371 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.782319 IP (tos 0x0, ttl 61, id 63814, offset 0, flags [none],
proto UDP (17), length 142)
    10.0.2.2.56371 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.783248 IP (tos 0x0, ttl 61, id 63815, offset 0, flags [none],
proto UDP (17), length 142)
    10.0.2.2.56371 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.783760 IP (tos 0x0, ttl 64, id 9662, offset 0, flags [none], proto
UDP (17), length 1362)
    10.0.3.3.56371 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.786295 IP (tos 0x0, ttl 64, id 9663, offset 0, flags [none], proto
UDP (17), length 1362)
    10.0.3.3.56371 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.788428 IP (tos 0x0, ttl 64, id 9664, offset 0, flags [none], proto
UDP (17), length 1362)
    10.0.3.3.56371 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.788574 IP (tos 0x0, ttl 61, id 63817, offset 0, flags [none],
proto UDP (17), length 142)
    10.0.2.2.56371 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.788579 IP (tos 0x0, ttl 61, id 63818, offset 0, flags [none],
proto UDP (17), length 142)
    10.0.2.2.56371 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.789828 IP (tos 0x0, ttl 61, id 63819, offset 0, flags [none],
proto UDP (17), length 142)
    10.0.2.2.56371 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.790370 IP (tos 0x0, ttl 64, id 39176, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.3.3.55493 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:25:08.790773 IP (tos 0x0, ttl 64, id 9667, offset 0, flags [none], proto
UDP (17), length 1362)
    10.0.3.3.56371 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
^C
33313 packets captured
34214 packets received by filter
899 packets dropped by kernel
root at leaf2:/#


*root at leaf2:/# sudo /usr/bin/tcpdump -i leaf2-eth2 -vv*

04:26:59.600932 IP (tos 0x0, ttl 64, id 24692, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.4.4.41863 > 10.0.2.2.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:26:59.707914 IP (tos 0x0, ttl 63, id 63593, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.3.3.38516 > 10.0.4.4.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:26:59.973335 IP (tos 0x0, ttl 64, id 49457, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.4.4.46199 > 10.0.1.1.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:27:00.084384 IP (tos 0x0, ttl 61, id 47024, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.2.2.41863 > 10.0.4.4.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:27:00.343859 IP (tos 0x0, ttl 64, id 32992, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.4.4.38516 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:27:00.426942 IP (tos 0x0, ttl 63, id 63699, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.3.3.38516 > 10.0.4.4.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
04:27:00.427055 IP (tos 0x0, ttl 64, id 32993, offset 0, flags [none],
proto UDP (17), length 146)
    10.0.4.4.38516 > 10.0.3.3.4790: [no cksum] VXLAN-GPE, flags [IP], vni 10
    MPLS (label 0 (IPv4 explicit NULL), exp 1, [S], ttl 3)
    IP0
^C
33 packets captured
33 packets received by filter
0 packets dropped by kernel
root at leaf2:/#



Regards,
Aditya Dogra
"When the going gets tough, the tough get going"

On Thu, Mar 9, 2017 at 10:28 PM, <p4-dev-request at lists.p4.org> wrote:

> Send P4-dev mailing list submissions to
>         p4-dev at lists.p4.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
> or, via email, send a message with subject or body 'help' to
>         p4-dev-request at lists.p4.org
>
> You can reach the person managing the list at
>         p4-dev-owner at lists.p4.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of P4-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: Error while running the INT app from p4factory (Avinash Herle)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 9 Mar 2017 08:57:35 -0800
> From: Avinash Herle <avinash.herle at barefootnetworks.com>
> To: Dongeun Suh <dongeunsuh at gmail.com>
> Cc: p4-dev <p4-dev at lists.p4.org>
> Subject: Re: [P4-dev] Error while running the INT app from p4factory
> Message-ID:
>         <CA+mL89JQ2yRPnULjU9M3LEAVxPLqZFrzkpz9j-h5dP19jZdv2w at mail.gmail.
> com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Dongeun,
>
> Do update the submodules of p4factory once and get the latest code of the
> submodules. You'll need to rebuild submodules and docker switch.
>
> Check the tcpdump inside the docker container, not the host machine.
>
> 1) Run the mininet script
> 2) Start a long running iperf session say, h1 perf -c 10.2.1.4 -t 100
> 3) Open another window and console into
>      a) switch leaf1 (since it is connected to the source h1). Do a tcpdump
> on the interface leaf1-eth1 (interface connected to h1). The host h1 is
> supposed to add the INT shim header. Verify if the INT header is added.
>      b) switch leaf2 (since it is connected to the destination h4). Do a
> tcpdump on the interface leaf2-eth2 (interface connected to h4).
> 4) Do refer the INT spec
> <http://p4.org/wp-content/uploads/fixed/INT/INT-current-spec.pdf> when
> verifying the tcpdump.
>
> Thanks
>
>
> On Wed, Mar 8, 2017 at 11:06 PM, Dongeun Suh <dongeunsuh at gmail.com> wrote:
>
> > Hi Avinash,
> >
> > This is a tcpdump result.
> >
> > In the mininet, I ran iperf as follows.
> >
> > mininet> h1 iperf -c 10.2.1.4 -t 100
> >
> > After that, in host machine, I ran tcpdump.
> > The following is tcpdump result for a packet that seems like a iperf
> > packet from h1 to h4.
> >
> >
> > $ sudo tcpdump -i docker0 -vv
> >
> > ...
> > 16:00:13.516909 IP (tos 0x0, ttl 62, id 19360, offset 0, flags [none],
> > proto UDP (17), length 1374)
> >     10.0.1.1.36915 > 10.0.4.4.4790: [no cksum] VXLAN-GPE, flags [IP], vni
> > 10
> >     MPLS (label 0 (IPv4 explicit NULL), exp 3, ttl 3)
> > (label 50, exp 0, ttl 1)
> > (label 720896, exp 0, ttl 0)
> > (label 0 (IPv4 explicit NULL), exp 0, ttl 161)
> > (label 0 (IPv4 explicit NULL), exp 0, ttl 0)
> > (label 524288, exp 0, ttl 0)
> > (label 274, exp 1, ttl 51)
> > (label 279872, exp 0, ttl 17)
> > (label 140084, exp 2, ttl 81)
> > (label 32772, exp 2, [S], ttl 0)
> > ...
> >
> > Thank you.
> > Dongeun Suh.
> >
> >
> >
> > 2017-03-09 11:05 GMT+09:00 Avinash Herle <avinash.herle@
> > barefootnetworks.com>:
> >
> >> Hi Dongeun,
> >>
> >> Could you dump more information while collecting tcpdump?
> >>
> >> On Wed, Mar 8, 2017 at 5:26 PM, Dongeun Suh <dongeunsuh at gmail.com>
> wrote:
> >>
> >>> Hi Avinash,
> >>>
> >>> Since I didn't get any reponses from you, I'm repeating the message
> >>> below..
> >>>
> >>> Regards,
> >>> Dongeun.
> >>>
> >>>
> >>>
> >>> 2017. 3. 6. ?? 4:08? "Dongeun Suh" <dongeunsuh at gmail.com>?? ??:
> >>>
> >>>> Hi Avinash,
> >>>> Thank you for your kind response.
> >>>>
> >>>> Please check the bolded inlines which are reponses to your last
> advises.
> >>>>
> >>>
> >>>> Thanks in advance.
> >>>> Dongeun.
> >>>>
> >>>> 2017-02-22 1:57 GMT+09:00 Avinash Herle <avinash.herle at barefootnetwork
> >>>> s.com>:
> >>>>
> >>>>> Couple of quick question Dongeun.
> >>>>> 1) Did you install the VXLAN_GPE driver and the other dependencies
> >>>>> mentioned in this realm
> >>>>> <https://github.com/p4lang/p4factory/tree/master/apps/int>?
> >>>>>
> >>>>
> >>>> *I installed all the driver / dependencies. *
> >>>>
> >>>>
> >>>> 2) Once you run the mininet scripts you should see a few log files
> >>>>> (prefixed with tmp_) generated in the path <p4factory>/mininet. Do
> they
> >>>>> report any error?
> >>>>>
> >>>>>
> >>>> *While 'tmp_client_msg_handler' and 'tmp_monitor' files are empty. I
> >>>> found the following messages in 'tmp_h1', 'tmp_h2', 'tmp_h3',
> 'tmp_h4'.*
> >>>>
> >>>> *WARNING: No route found for IPv6 destination :: (no default route?).
> >>>> This affects only IPv6 *
> >>>>
> >>>>
> >>>>> It could also be that the latency values are too small because of
> >>>>> which they do not show up on the graphs. Please try the follow
> >>>>>
> >>>>> 1) Run the mininet script
> >>>>> 2) Start a long running iperf session say, h1 perf -c 10.2.1.4 -t 100
> >>>>> 3) Open another window and console into
> >>>>>      a) switch leaf1 (since it is connected to the source h1). Do a
> >>>>> tcpdump on the interface leaf1-eth1 (interface connected to h1). The
> host
> >>>>> h1 is supposed to add the INT shim header. Verify if the INT header
> is
> >>>>> added.
> >>>>>      b) switch leaf2 (since it is connected to the destination h4).
> Do
> >>>>> a tcpdump on the interface leaf2-eth2 (interface connected to h4).
> >>>>> 4) Do refer the INT spec
> >>>>> <http://p4.org/wp-content/uploads/fixed/INT/INT-current-spec.pdf>
> >>>>> when verifying the tcpdump.
> >>>>>
> >>>>> *Tcpdump on leaf1-eth1 shows following results (MPLS means that INT
> >>>> header is added right..?).*
> >>>>
> >>>> *...*
> >>>> *06:57:58.005648 IP 10.0.1.1.60607 > 10.0.4.4.4790: VXLAN-GPE, flags
> >>>> [IP], vni 10: MPLS (label 0, exp 1, [S], ttl 3) IP0 *
> >>>> *06:57:58.005648 IP 10.0.1.1.60607 > 10.0.4.4.4790: VXLAN-GPE, flags
> >>>> [IP], vni 10: MPLS (label 0, exp 1, [S], ttl 3) IP0 *
> >>>> *...*
> >>>>
> >>>> Let me know if you have any more questions.
> >>>>>
> >>>>> Also, do not reload/refresh the web client when the application is
> >>>>> running. You might have to re-run the application in this case.
> >>>>>
> >>>>> Thanks,
> >>>>> Avinash
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Tue, Feb 21, 2017 at 1:43 AM, Dongeun Suh <dongeunsuh at gmail.com>
> >>>>> wrote:
> >>>>>
> >>>>>> Hi Avinash,
> >>>>>>
> >>>>>> Sorry for bringing up the issue again.
> >>>>>>
> >>>>>> In the INT demo (https://github.com/p4lang/p4f
> >>>>>> actory/tree/master/apps/int), after running 'int_ref_topology.py', I
> >>>>>> checked that the four hosts (h1-4, connected with spine1-2,
> leaf1-2) can
> >>>>>> receive traffic from each other successfully.
> >>>>>>
> >>>>>> However, it seems that INT header is not properly added to the
> >>>>>> packets and thus, the web client does not show any iperf connection
> or
> >>>>>> metric.
> >>>>>>
> >>>>>> Can you help me with this problem? The followings are
> >>>>>> 'bmv2_driver.log' from 'leaf1' container.
> >>>>>>
> >>>>>> (in bmv2_driver.log)
> >>>>>>
> >>>>>> Starting RPC server on port 9090
> >>>>>> Adding Thrift service for P4 program dc to server
> >>>>>> Starting API RPC server on port 9091
> >>>>>> Starting SAI RPC server on port 9092
> >>>>>> RPC Initialization
> >>>>>> vlan already exists 14000001Invalid table (ipv6_fib_lpm) operation
> >>>>>> (17): DUPLICATE_ENTRY
> >>>>>> Invalid table (ipv6_fib_lpm) operation (17): DUPLICATE_ENTRY
> >>>>>> Invalid table (ipv6_fib_lpm) operation (17): DUPLICATE_ENTRY
> >>>>>> Invalid table (ipv6_fib_lpm) operation (2): INVALID_HANDLE
> >>>>>> Invalid table (ipv6_fib_lpm) operation (2): INVALID_HANDLE
> >>>>>> Invalid table (ipv6_fib_lpm) operation (2): INVALID_HANDLE
> >>>>>> switcht_api_init
> >>>>>> switcht_api_int_transit_enable/disable = 1
> >>>>>> @
> >>>>>> @
> >>>>>> ...
> >>>>>> @
> >>>>>> @
> >>>>>> failed to find filter. packet not transformed failed to find filter.
> >>>>>> failed to find filter. packet not transformedfailed to find filter.
> >>>>>> packet not transformed ... (repeated endlessly)
> >>>>>>
> >>>>>> Thanks in advance.
> >>>>>> Dongeun.
> >>>>>>
> >>>>>> 2017-02-14 2:07 GMT+09:00 Avinash Herle <
> >>>>>> avinash.herle at barefootnetworks.com>:
> >>>>>>
> >>>>>>> Looks like you have everything needed within the container to start
> >>>>>>> the model and driver. Clean out the interfaces once 'sudo mn -c'
> and try
> >>>>>>> again.
> >>>>>>>
> >>>>>>> On Mon, Feb 13, 2017 at 8:13 AM, Dongeun Suh <dongeunsuh at gmail.com
> >
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>> Hi Avinash,
> >>>>>>>>
> >>>>>>>> When I build the docker image, I did the following command where
> >>>>>>>> $HOME was set to other than /root (/home/hosung for my case)
> >>>>>>>>
> >>>>>>>> $ cd p4factory/makefiles
> >>>>>>>> $ make -f docker.mk bmv2-docker-image installpath=$HOME/install
> >>>>>>>>
> >>>>>>>> And inside the container, I found the 'install' folder under the
> >>>>>>>> $HOME of the host machine (which was set to /home/hosung) while
> $HOME of
> >>>>>>>> the container machine was set to /root.
> >>>>>>>>
> >>>>>>>> root at spine1:/home/hosung/install# ls
> >>>>>>>> bin  include  lib
> >>>>>>>>
> >>>>>>>> Thank you.
> >>>>>>>> Dongeun Suh.
> >>>>>>>>
> >>>>>>>> 2017-02-14 0:38 GMT+09:00 Avinash Herle <
> >>>>>>>> avinash.herle at barefootnetworks.com>:
> >>>>>>>>
> >>>>>>>>> Hi Dongeun,
> >>>>>>>>>
> >>>>>>>>> A follow up question, did you provide the installpath as
> parameter
> >>>>>>>>> while building the docker image? Inside the container, do you
> have the
> >>>>>>>>> $HOME/install folder with the binaries in it?
> >>>>>>>>>
> >>>>>>>>> On Mon, Feb 13, 2017 at 7:31 AM, Dongeun Suh <
> dongeunsuh at gmail.com
> >>>>>>>>> > wrote:
> >>>>>>>>>
> >>>>>>>>>> Hi Avinash,
> >>>>>>>>>>
> >>>>>>>>>> Thank you for your kind and prompt response.
> >>>>>>>>>>
> >>>>>>>>>> I followed your instruction and under the following 'spine1'
> >>>>>>>>>> container, there exists 'tmp' folder but it is empty.
> >>>>>>>>>>
> >>>>>>>>>> hosung at hosung-VirtualBox:~$ docker ps
> >>>>>>>>>> CONTAINER ID        IMAGE                 COMMAND
> >>>>>>>>>>  CREATED             STATUS              PORTS
> >>>>>>>>>>                   NAMES
> >>>>>>>>>> e3b15473f647        p4dockerswitch_bmv2   "/bin/sh -c /bin/bash"
> >>>>>>>>>>   2 minutes ago       Up 2 minutes        0.0.0.0:26002
> ->9091/tcp,
> >>>>>>>>>> 0.0.0.0:27002->10001/tcp   spine1
> >>>>>>>>>>
> >>>>>>>>>> Thanks.
> >>>>>>>>>> Dongeun Suh.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> 2017-02-13 23:43 GMT+09:00 Avinash Herle <
> >>>>>>>>>> avinash.herle at barefootnetworks.com>:
> >>>>>>>>>>
> >>>>>>>>>>> Hi Dongeun,
> >>>>>>>>>>>
> >>>>>>>>>>> Can you console into the docker containers(spine1 in this case)
> >>>>>>>>>>> and check if the model and driver have started?
> >>>>>>>>>>>
> >>>>>>>>>>> docker exec -it <container name> bash
> >>>>>>>>>>> cd /tmp
> >>>>>>>>>>> You will find bmv2_model.log and bmv2_driver.log
> >>>>>>>>>>>
> >>>>>>>>>>> Please send to me the contents of the logs.
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks,
> >>>>>>>>>>> Avinash
> >>>>>>>>>>>
> >>>>>>>>>>> On Mon, Feb 13, 2017 at 6:30 AM, Dongeun Suh <
> >>>>>>>>>>> dongeunsuh at gmail.com> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> Hi,
> >>>>>>>>>>>>
> >>>>>>>>>>>> I'm trying to run the INT app from
> >>>>>>>>>>>> https://github.com/p4lang/p4factory/tree/master/apps/int and
> >>>>>>>>>>>> when running int_ref_topology.py, I have following errors.
> >>>>>>>>>>>>
> >>>>>>>>>>>> For installations of all the submodules (i.e., bm, p4c-bm,
> >>>>>>>>>>>> switch), I followed the README files from their master
> branches (when
> >>>>>>>>>>>> configuring the switch, I added '--prefix=$HOME/install'
> option as noted in
> >>>>>>>>>>>> the readme file).
> >>>>>>>>>>>>
> >>>>>>>>>>>> hosung at hosung-VirtualBox:~/SUH/p4factory/mininet$ sudo
> >>>>>>>>>>>> ./int_ref_topology.py --model-dir=$HOME/install
> >>>>>>>>>>>> Adding switch spine1
> >>>>>>>>>>>> Traceback (most recent call last):
> >>>>>>>>>>>>   File "./int_ref_topology.py", line 131, in <module>
> >>>>>>>>>>>>     run_cfg(model_dir)
> >>>>>>>>>>>>   File "./int_ref_topology.py", line 91, in run_cfg
> >>>>>>>>>>>>     net = mgr.setupAndStartNetwork()
> >>>>>>>>>>>>   File "/home/hosung/SUH/p4factory/mininet/int_cfg.py", line
> >>>>>>>>>>>> 140, in setupAndStartNetwork
> >>>>>>>>>>>>     self.addSwitches()
> >>>>>>>>>>>>   File "/home/hosung/SUH/p4factory/mininet/int_cfg.py", line
> >>>>>>>>>>>> 177, in addSwitches
> >>>>>>>>>>>>     pps = s.pps, qdepth = s.qdepth )
> >>>>>>>>>>>>   File "build/bdist.linux-x86_64/egg/mininet/net.py", line
> >>>>>>>>>>>> 240, in addSwitch
> >>>>>>>>>>>>   File "/home/hosung/SUH/p4factory/
> mininet/docker/p4model.py",
> >>>>>>>>>>>> line 55, in __init__
> >>>>>>>>>>>>     DockerSwitch.__init__( self, name, **kwargs )
> >>>>>>>>>>>>   File "/home/hosung/SUH/p4factory/
> mininet/docker/docker_node.py",
> >>>>>>>>>>>> line 30, in __init__
> >>>>>>>>>>>>     Node.__init__( self, name, **kwargs )
> >>>>>>>>>>>>   File "build/bdist.linux-x86_64/egg/mininet/node.py", line
> >>>>>>>>>>>> 106, in __init__
> >>>>>>>>>>>>   File "/home/hosung/SUH/p4factory/
> mininet/docker/docker_node.py",
> >>>>>>>>>>>> line 119, in startShell
> >>>>>>>>>>>>     self.pid = int(ps_out[0])
> >>>>>>>>>>>> ValueError: invalid literal for int() with base 10:
> "'16584'\n"
> >>>>>>>>>>>>
> >>>>>>>>>>>> Can someone help me with this problem?
> >>>>>>>>>>>>
> >>>>>>>>>>>> Thanks in advance.
> >>>>>>>>>>>> Dongeun Suh.
> >>>>>>>>>>>>
> >>>>>>>>>>>> _______________________________________________
> >>>>>>>>>>>> P4-dev mailing list
> >>>>>>>>>>>> P4-dev at lists.p4.org
> >>>>>>>>>>>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/
> attachments/20170309/8d01953e/attachment.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at p4.org
> Listinfo - http://mail.p4.org/mailman/listinfo/p4-dev_p4.org
> Archives - http://mail.p4.org/pipermail/p4-dev_p4.org/
>
>
> ------------------------------
>
> End of P4-dev Digest, Vol 19, Issue 17
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170807/c92b7119/attachment-0002.html>


More information about the P4-dev mailing list