stratum / fabric-tna

The SD-Fabric data plane
https://docs.sd-fabric.org/
30 stars 15 forks source link

test.FabricIPv4UnicastGtpTest fails for fabric-spgw profile #33

Closed ccascone closed 4 years ago

ccascone commented 4 years ago
************************************************
STARTING PTF TESTS...
************************************************
python -u ptf_runner.py --device stratum-bfrt --port-map port_map.veth.json --ptf-dir fabric.ptf --cpu-port 320 --device-id 1 --grpc-addr "127.0.0.1:28000" --p4info /p4c-out/p4info.txt --tofino-pipeline-tar /p4c-out/pipeline.tar.bz2 test.FabricIPv4UnicastGtpTest
INFO:PTF runner:Sending P4 config
INFO:PTF runner:Executing PTF command: ptf --test-dir fabric.ptf -i 0@veth1 -i 1@veth3 -i 2@veth5 -i 3@veth7 -i 4@veth9 -i 5@veth11 -i 6@veth13 -i 7@veth15 --test-params=p4info='/p4c-out/p4info.txt';grpcaddr='127.0.0.1:28000';device_id='1';cpu_port='320';device='stratum-bfrt' test.FabricIPv4UnicastGtpTest
WARNING: No route found for IPv6 destination :: (no default route?)
test.FabricIPv4UnicastGtpTest ... FAIL

======================================================================
FAIL: test.FabricIPv4UnicastGtpTest
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/fabric-p4test/tests/ptf/base_test.py", line 813, in handle
    return f(*args, **kwargs)
  File "fabric.ptf/test.py", line 115, in runTest
    self.runIPv4UnicastTest(pkt, next_hop_mac=HOST2_MAC)
  File "/fabric-p4test/tests/ptf/fabric_test.py", line 864, in runIPv4UnicastTest
    testutils.verify_packet(self, exp_pkt, self.port2)
  File "/usr/local/lib/python2.7/dist-packages/ptf/testutils.py", line 2546, in verify_packet
    % (device, port, result.format()))
AssertionError: Expected packet was not received on device 0, port 2.
========== EXPECTED ==========
dst        : DestMACField         = '00:00:00:00:00:02' (None)
src        : SourceMACField       = '00:00:00:00:aa:01' (None)
type       : XShortEnumField      = 2048            (0)
--
version    : BitField             = 4               (4)
ihl        : BitField             = None            (None)
tos        : XByteField           = 0               (0)
len        : ShortField           = None            (None)
id         : ShortField           = 1               (1)
flags      : FlagsField           = 0               (0)
frag       : BitField             = 0               (0)
ttl        : ByteField            = 63              (64)
proto      : ByteEnumField        = 17              (0)
chksum     : XShortField          = None            (None)
src        : Emph                 = '10.0.3.1'      (None)
dst        : Emph                 = '10.0.4.1'      ('127.0.0.1')
options    : PacketListField      = []              ([])
--
sport      : ShortEnumField       = 2152            (53)
dport      : ShortEnumField       = 2152            (53)
len        : ShortField           = None            (None)
chksum     : XShortField          = None            (None)
--
version    : BitField             = 1               (1)
PT         : BitField             = 1               (1)
reserved   : BitField             = 0               (0)
E          : BitField             = 0               (0)
S          : BitField             = 0               (0)
PN         : BitField             = 0               (0)
gtp_type   : ByteField            = 255             (255)
length     : ShortField           = None            (None)
teid       : IntField             = 4009738480      (0)
--
version    : BitField             = 4               (4)
ihl        : BitField             = None            (None)
tos        : XByteField           = 0               (0)
len        : ShortField           = None            (None)
id         : ShortField           = 1               (1)
flags      : FlagsField           = 0               (0)
frag       : BitField             = 0               (0)
ttl        : ByteField            = 64              (64)
proto      : ByteEnumField        = 17              (0)
chksum     : XShortField          = None            (None)
src        : Emph                 = '10.0.1.1'      (None)
dst        : Emph                 = '10.0.2.1'      ('127.0.0.1')
options    : PacketListField      = []              ([])
--
sport      : ShortEnumField       = 5061            (53)
dport      : ShortEnumField       = 5060            (53)
len        : ShortField           = None            (None)
chksum     : XShortField          = None            (None)
--
load       : StrField             = '\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab' ('')
--
0000   00 00 00 00 00 02 00 00  00 00 AA 01 08 00 45 00   ..............E.
0010   00 C0 00 01 00 00 3F 11  60 2B 0A 00 03 01 0A 00   ......?.`+......
0020   04 01 08 68 08 68 00 AC  08 D4 30 FF 00 9C EE FF   ...h.h....0.....
0030   C0 F0 45 00 00 9C 00 01  00 00 40 11 63 4F 0A 00   ..E.......@.cO..
0040   01 01 0A 00 02 01 13 C5  13 C4 00 88 D5 68 AB AB   .............h..
0050   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0060   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0070   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0080   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0090   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
00a0   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
00b0   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
00c0   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB         ..............
========== RECEIVED ==========
1 total packets. Displaying most recent 1 packets:
------------------------------
dst        : DestMACField         = '00:00:00:00:00:02' (None)
src        : SourceMACField       = '00:00:00:00:aa:01' (None)
type       : XShortEnumField      = 2048            (0)
--
version    : BitField             = 3L              (4)
ihl        : BitField             = 0L              (None)
tos        : XByteField           = 255             (0)
len        : ShortField           = 156             (None)
id         : ShortField           = 61183           (1)
flags      : FlagsField           = 6L              (0)
frag       : BitField             = 240L            (0)
ttl        : ByteField            = 69              (64)
proto      : ByteEnumField        = 0               (0)
chksum     : XShortField          = 192             (None)
src        : Emph                 = '0.1.0.0'       (None)
dst        : Emph                 = '63.17.96.43'   ('127.0.0.1')
options    : PacketListField      = [<IPOption  copy_flag=0L optclass=control option=experimental_measurement length=0 value='\x03\x01\n\x00\x04\x01\x08h\x08h\x00\xac\x08\xd4\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab' |>, <IPOption_MTU_Probe  copy_flag=1L optclass=1L option=mtu_probe length=171 |>] ([])
--
load       : StrField             = '\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab\xab' ('')
--
0000   00 00 00 00 00 02 00 00  00 00 AA 01 08 00 30 FF   ..............0.
0010   00 9C EE FF C0 F0 45 00  00 C0 00 01 00 00 3F 11   ......E.......?.
0020   60 2B 0A 00 03 01 0A 00  04 01 08 68 08 68 00 AC   `+.........h.h..
0030   08 D4 AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0040   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0050   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0060   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0070   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0080   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
0090   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
00a0   AB AB AB AB AB AB AB AB  AB AB AB AB AB AB AB AB   ................
00b0   AB AB                                              ..
==============================
ccascone commented 4 years ago

I checked again and it works on master. I was probably running with some older tofino compiler outputs from the int-support branch...