These are chat archives for Exa-Networks/exabgp

24th
Oct 2016
steiler
@steiler
Oct 24 2016 16:38
Hi Guys
I'm actually peering with a Juniper router trying to exchange evpn routes, which crashes exabgp with the following error
Mon, 24 Oct 2016 18:36:08 | INFO | 7703 | network | Peer 10.166.22.44 ASN 65000 in loop, peer reset, message [notification sent (1,0)] error[Message header error / Unspecific / can not decode update message of type "2"]
are there any knows issues? shall I file a github issue?
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:42
can you please run exabgp with the ‘-d’ option
and provide me the FULL output per mail please
make sure you are running the latest version on github for 3.4 please first :smile:
steiler
@steiler
Oct 24 2016 16:43
running master actually
bad idea?
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:43
Ok - great - no - it is working - the configuration file will change before release but I have been saying that for a year !
steiler
@steiler
Oct 24 2016 16:44
does -d equal exabgp.log.enable=true exabgp.log.all=true
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:45
without looking at the code - not sure but sounds about right
it should show you the RAW packets exchanged on the wire
steiler
@steiler
Oct 24 2016 16:45
Mon, 24 Oct 2016 18:40:30 | INFO | 7768 | parser | attribute mp-reach-nlri flag 0x90 type 0x0e len 0x1e4 payload 0019 4604 0AA6 162C 0002 2500 010A C700 2A04 4C00 0004 0000 0000 3000 0000 0004 4C30 0021 5A9B 002E 200A C764 2249 5601 0119 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 0000 4956 0102 2100 010A C700 2A04 4C00 0004 0000 0000 3000 0000 0004 4C30 0021 5A9B 0F2E 0049 5601 0225 0001 0AC7 002A 044C ...
like this
?!
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:46
yes, I need the FULL logs or at least the OPEN exchanged ( with the decoded capabilities )
It should also have a line which shows the BGP message with FFFF FFF FFFF .. etc.
steiler
@steiler
Oct 24 2016 16:48
alright .. unfortunately I feel like the biggest hurdle right now is to find you mail address facepalm
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:48
And having the full logs allows me to use your config file to lab the setup so still better ..
first @ last . com
steiler
@steiler
Oct 24 2016 16:48
cheers
steiler
@steiler
Oct 24 2016 16:56
alright, mail is on its way ... let me know if the information provided is sufficient
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:57
Yes I have everything I need
steiler
@steiler
Oct 24 2016 16:58
so when will it be fixed?
just kidding ...
Thomas Mangin
@thomas-mangin
Oct 24 2016 16:58
Can you let me reproduce first :wink:
steiler
@steiler
Oct 24 2016 16:59
if I can help out with anything else let me know
Thomas Mangin
@thomas-mangin
Oct 24 2016 17:00
ok - can reproduce
./sbin/exabgp qa/conf/aggregator.conf --decode "0000 0201 4001 0100 4002 0040 0504 0000 0064 C010 0800 02FD E80 0 0004 4C90 0E01 E400 1946 040A A616 2C00 0225 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 3000 215A 9B00 2E20 0AC7 6422 4956 0101 1900 01 0A C700 2A04 4C00 0004 0000 0000 3000 0000 0000 0049 5601 0221 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 3000 215A 9B0F 2E00 4956 0102 2 500 010A C700 2A04 4C00 0004 0000 0000 3000 0000 0004 4C30 0021 5A9B 0F2C 200A C764 4E49 5601 0221 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 30D6 1558 EA61 0D00 4956 0102 2500 010A C700 2A04 4C00 0004 0000 0000 3000 0000 0004 4C30 D615 58EA 610D 200A C764 E749 5601 0225 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 30D6 1558 EA61 0D20 0AC7 64E8 4956 0102 2500 010A C700 2A04 4C00 0004 0000 0000 3000 0000 0004 4C30 0021 5A9 B 0F2C 200A C764 5149 5601 0225 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 3000 215A 9B0F 2C20 0AC7 6452 4956 0102 2100 010A C700 2A04 4C 00 0004 0000 0000 3000 0000 0004 4C30 0021 5A9B 002E 0049 5601 0221 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 3000 215A 9B00 2800 4956 0 102 2100 010A C700 2A04 4C00 0004 0000 0000 3000 0000 0004 4C30 0021 5A9B 0F2C 0049 5601 0225 0001 0AC7 002A 044C 0000 0400 0000 0030 0000 0000 044C 3000 215A 9B0F 2C20 0AC7 6450 4956 01"
btw - I did not write that code - so having to learn about EVPN first :worried:
Thomas Mangin
@thomas-mangin
Oct 24 2016 17:07
The patch may be my current impending implementation of treat as withdraw :wink:
reading rfc7432
(Pdb++) rd
route-distinguisher 10.199.0.42:1100
(Pdb++) esi
00:00:04:00:00:00:00:30:00:00
(Pdb++) etag
1100
(Pdb++) maclength
48
Does that look right :
(Pdb++) mac
00:21:5A:9B:0F:2E
steiler
@steiler
Oct 24 2016 17:09
have to doublecheck the mac, the rest looks correct
1100 00:21:5a:9b:0f:2e 00:00:04:00:00:00:00:30:00:00 Oct 20 14:02:16
jepp that entry exists
Thomas Mangin
@thomas-mangin
Oct 24 2016 17:10
It looks like that data has no IP setup in the packet .. is that normal too ?
what would you have expected to have been sent ?
steiler
@steiler
Oct 24 2016 17:12
well the advertisement can have a MAC-IP binding ... but doesn't have to ... let me lookup the rfc
sorry have to move now ... well be back in some time
references should be here: https://www.rfc-editor.org/rfc/rfc7432.txt
Thomas Mangin
@thomas-mangin
Oct 24 2016 17:15
Yes - but I did not implement the code and it is missing the JSON printing also
May take me some time to fix it - need to head home too
steiler
@steiler
Oct 24 2016 17:15
gnraf ...
alright ... we'll speak soon... cheers
Thomas Mangin
@thomas-mangin
Oct 24 2016 17:18
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:00:2E/48:10.199.100.34: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:unknown:0x00010ac7002a044c0000040000000030000000000000495601 origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:0F:2E/48:: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:0F:2C/48:10.199.100.78: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:D6:15:58:EA:61:0D/48:: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:D6:15:58:EA:61:0D/48:10.199.100.231: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:D6:15:58:EA:61:0D/48:10.199.100.232: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:0F:2C/48:10.199.100.81: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:0F:2C/48:10.199.100.82: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:00:2E/48:: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:00:28/48:: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:0F:2C/48:: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | decoded update 1 evpn:macadv::10.199.0.42:1100:00:00:04:00:00:00:00:30:00:00:1100:00:21:5A:9B:0F:2C/48:10.199.100.80: label [ 300384 ] origin igp local-preference 100 extended-community target:65000:1100
Mon, 24 Oct 2016 18:19:03 | INFO | 82649 | parser | update json { "exabgp": "3.5.0", "time": 1477329543.77, "host" : "Thomas.local", "pid" : 82649, "ppid" : 75821, "counter": 1, "type": "update", "neighbor": { "address": { "local": "127.0.0.1", "peer": "127.0.0.1" }, "asn": { "local": "65533", "peer": "65533" }, "direction": "in", "message": { "update": { "attribute": { "origin": "igp", "local-preference": 100, "extended-community": [ 842122827662412 ] }, "announce": { "l2vpn evpn": { "10.166.22.44": [ MAC, EVPN, MAC, MAC, MAC, MAC, MAC, MAC, MAC, MAC, MAC, MAC, MAC ] } } } } } }
06:19:04 thomas  Thomas  ~  source  …  exabgp  thomas  master + 
can fix the breakage but not give you correct data ATM
steiler
@steiler
Oct 24 2016 18:13
I assume it's processing line 139 in mac.py only conditionally depending on the prior if case
Thomas Mangin
@thomas-mangin
Oct 24 2016 18:18
well - you can have a quick patch which fixes the issue
email it .. not a real fix but should get you going.
steiler
@steiler
Oct 24 2016 18:18
no worries ... it's not that urgent...
steiler
@steiler
Oct 24 2016 18:48
thanks thomas, does not crash any more... however have a look at line line 124-125 ... the ip check is already preformed... if iplenUnpack > 0 then ... else ip=None ... should do the job
Thomas Mangin
@thomas-mangin
Oct 24 2016 19:21
I am 1/2 way to a correct patch
Thomas Mangin
@thomas-mangin
Oct 24 2016 19:55
@steiler - should now work fine
Exa-Networks/exabgp@6174400