osrg / goplane

an agent for configuring linux network stack via GoBGP
http://osrg.github.io/gobgp/
119 stars 26 forks source link

iptables test: "listen tcp :50051: bind: address already in use" #35

Open gdimopoulos opened 6 years ago

gdimopoulos commented 6 years ago

uname -a Linux c 3.16.0-77-generic #99~14.04.1-Ubuntu SMP Tue Jun 28 19:17:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I had to change goplaned to goplane inside goplane/test/iptables/demo.py, otherwise prepare fails. Similar in goplane/test/iptables/Dockerfile I changed goplane/goplaned to goplane.

sudo ./demo.py prepare and sudo ./demo.py are completed without errors, but in the logs I see "address already in use" errors

cat /tmp/goplane/g1/goplane.log time="2018-02-01T14:02:37Z" level=error msg="Invalid dataplane type(). dataplane engine can't be started" time="2018-02-01T14:02:37Z" level=warning msg="listen failed" Error="listen tcp :50051: bind: address already in use" Key=":50051" Topic=grpc time="2018-02-01T14:02:37Z" level=info msg="cleared iptables chain: FORWARD, table: filter"

cat /tmp/goplane/g1/gobgpd.log time="2018-02-01T14:02:37Z" level=info msg="gobgpd started"
time="2018-02-01T14:02:37Z" level=warning msg="listen failed" Error="listen tcp :50051: bind: address already in use" Key=":50051" Topic=grpc
time="2018-02-01T14:02:37Z" level=info msg="listen tcp 127.0.0.1:6060: bind: address already in use"
time="2018-02-01T14:02:37Z" level=info msg="Finished reading the config file" Topic=Config
time="2018-02-01T14:02:37Z" level=fatal msg="failed to set global config: listen tcp4 0.0.0.0:179: bind: address already in use"
time="2018-02-01T14:02:54Z" level=debug msg="state changed" Key=192.168.10.3 Topic=Peer new=BGP_FSM_OPENSENT old=BGP_FSM_ACTIVE reason=new-connection
time="2018-02-01T14:02:54Z" level=debug msg="state changed" Key=192.168.10.3 Topic=Peer new=BGP_FSM_OPENCONFIRM old=BGP_FSM_OPENSENT reason=open-msg-received
time="2018-02-01T14:02:54Z" level=info msg="Peer Up" Key=192.168.10.3 State=BGP_FSM_OPENCONFIRM Topic=Peer
time="2018-02-01T14:02:54Z" level=debug msg="state changed" Key=192.168.10.3 Topic=Peer new=BGP_FSM_ESTABLISHED old=BGP_FSM_OPENCONFIRM reason=open-msg-negotiated
time="2018-02-01T14:03:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:03:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:04:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:04:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:05:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:05:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:06:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:06:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:07:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:07:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:08:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:08:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:09:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:09:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:10:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:10:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:11:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:11:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"

Dan81067 commented 2 years ago

did you solve it?