← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1628044] [NEW] BGP Dynamic Routing: Not listening on 179 port in router namespace for V6

 

Public bug reported:

Trying to configure BGP on Mitaka/Ubuntu  setup.

#uname -a
Linux hp3bl2 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

BGP neighborship is not getting established. Neutron router sents
RST,ACK on session establishment request from Cisco Router.


Snapshot of /var/log/neutron/neutron-bgp-dragent.log

============================================================
_connect_loop /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:1078
2016-09-26 17:29:15.102 2010 INFO bgpspeaker.peer [-] Will try to reconnect to fd00:10:6b50:600a::2 after 30 secs: True
2016-09-26 17:29:22.055 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-7b042acb-731e-430c-bfd5-b67359980c69 - - - - -] Report state task started _report_state /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:675
2016-09-26 17:29:22.058 2010 DEBUG oslo_messaging._drivers.amqpdriver [req-326e6789-1dd1-4b89-9ab6-82395d96e407 - - - - -] CALL msg_id: 89ef26385d34408cbde5deb5725d1bb2 exchange 'neutron' topic 'q-plugin' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:454
2016-09-26 17:29:22.082 2010 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: 89ef26385d34408cbde5deb5725d1bb2 __call__ /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:302
2016-09-26 17:29:33.945 2010 DEBUG oslo_service.periodic_task [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Running periodic task BgpDrAgentWithStateReport.periodic_resync run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215
2016-09-26 17:29:33.946 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Started periodic resync. periodic_resync /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:173
2016-09-26 17:29:33.947 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] resync (b9ed49f6-7a32-4049-a74b-9791dcfaea32): ['Periodic route cache refresh'] _periodic_resync_helper /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:165
2016-09-26 17:29:33.948 2010 DEBUG oslo_concurrency.lockutils [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Lock "bgp-dragent" acquired by "neutron.services.bgp.agent.bgp_dragent.sync_state" :: waited 0.000s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:273
2016-09-26 17:29:33.950 2010 DEBUG oslo_messaging._drivers.amqpdriver [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] CALL msg_id: e9eaf874365f453fb9cf76dce327b53b exchange 'neutron' topic 'q-bgp-plugin' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:454
2016-09-26 17:29:34.009 2010 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: e9eaf874365f453fb9cf76dce327b53b __call__ /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:302
2016-09-26 17:29:34.011 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Recording resync request for BGP Speaker b9ed49f6-7a32-4049-a74b-9791dcfaea32 with reason=Periodic route cache refresh schedule_resync /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:509
2016-09-26 17:29:34.012 2010 DEBUG oslo_concurrency.lockutils [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Lock "bgp-dragent" released by "neutron.services.bgp.agent.bgp_dragent.sync_state" :: held 0.064s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:285
2016-09-26 17:29:46.103 2010 DEBUG bgpspeaker.peer [-] Peer fd00:10:6b50:600a::2 BGP FSM went from Active to Connect bgp_state /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:222
2016-09-26 17:29:46.103 2010 DEBUG bgpspeaker.peer [-] Peer(ip: fd00:10:6b50:600a::2, asn: 65002) trying to connect to ('fd00:10:6b50:600a::2', 179) _connect_loop /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:1064
2016-09-26 17:29:46.104 2010 DEBUG bgpspeaker.base [-] Connect TCP called for fd00:10:6b50:600a::2:179 _connect_tcp /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py:399
2016-09-26 17:29:46.105 2010 DEBUG bgpspeaker.peer [-] Peer fd00:10:6b50:600a::2 BGP FSM went from Connect to Active bgp_state /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:222
2016-09-26 17:29:46.106 2010 DEBUG bgpspeaker.peer [-] Socket could not be created in time (30 secs), reason Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py", line 1072, in _connect_loop
    password=password)
  File "/usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py", line 410, in _connect_tcp
    sock.connect(peer_addr)
  File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
    while not socket_connect(fd, address):
  File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
    raise socket.error(err, errno.errorcode[err])
error: [Errno 101] ENETUNREACH
============================================

Here is the netstat output.

root@hp3bl2:/etc/neutron# ip netns exec qrouter-ee1287c3-f3d2-498f-82f3-ba7643d1e074 netstat -A inet6 -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
raw6       0      0 :::58                   :::*                    7


Please let me know if whether more information required.
Thank you,
Vishwanath Shivappa

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1628044

Title:
  BGP Dynamic Routing: Not listening on 179 port in router namespace for
  V6

Status in neutron:
  New

Bug description:
  Trying to configure BGP on Mitaka/Ubuntu  setup.

  #uname -a
  Linux hp3bl2 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

  BGP neighborship is not getting established. Neutron router sents
  RST,ACK on session establishment request from Cisco Router.

  
  Snapshot of /var/log/neutron/neutron-bgp-dragent.log

  ============================================================
  _connect_loop /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:1078
  2016-09-26 17:29:15.102 2010 INFO bgpspeaker.peer [-] Will try to reconnect to fd00:10:6b50:600a::2 after 30 secs: True
  2016-09-26 17:29:22.055 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-7b042acb-731e-430c-bfd5-b67359980c69 - - - - -] Report state task started _report_state /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:675
  2016-09-26 17:29:22.058 2010 DEBUG oslo_messaging._drivers.amqpdriver [req-326e6789-1dd1-4b89-9ab6-82395d96e407 - - - - -] CALL msg_id: 89ef26385d34408cbde5deb5725d1bb2 exchange 'neutron' topic 'q-plugin' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:454
  2016-09-26 17:29:22.082 2010 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: 89ef26385d34408cbde5deb5725d1bb2 __call__ /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:302
  2016-09-26 17:29:33.945 2010 DEBUG oslo_service.periodic_task [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Running periodic task BgpDrAgentWithStateReport.periodic_resync run_periodic_tasks /usr/lib/python2.7/dist-packages/oslo_service/periodic_task.py:215
  2016-09-26 17:29:33.946 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Started periodic resync. periodic_resync /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:173
  2016-09-26 17:29:33.947 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] resync (b9ed49f6-7a32-4049-a74b-9791dcfaea32): ['Periodic route cache refresh'] _periodic_resync_helper /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:165
  2016-09-26 17:29:33.948 2010 DEBUG oslo_concurrency.lockutils [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Lock "bgp-dragent" acquired by "neutron.services.bgp.agent.bgp_dragent.sync_state" :: waited 0.000s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:273
  2016-09-26 17:29:33.950 2010 DEBUG oslo_messaging._drivers.amqpdriver [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] CALL msg_id: e9eaf874365f453fb9cf76dce327b53b exchange 'neutron' topic 'q-bgp-plugin' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:454
  2016-09-26 17:29:34.009 2010 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: e9eaf874365f453fb9cf76dce327b53b __call__ /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:302
  2016-09-26 17:29:34.011 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Recording resync request for BGP Speaker b9ed49f6-7a32-4049-a74b-9791dcfaea32 with reason=Periodic route cache refresh schedule_resync /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:509
  2016-09-26 17:29:34.012 2010 DEBUG oslo_concurrency.lockutils [req-089bb213-a2c5-40c8-9e1f-9282e80e4482 - - - - -] Lock "bgp-dragent" released by "neutron.services.bgp.agent.bgp_dragent.sync_state" :: held 0.064s inner /usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:285
  2016-09-26 17:29:46.103 2010 DEBUG bgpspeaker.peer [-] Peer fd00:10:6b50:600a::2 BGP FSM went from Active to Connect bgp_state /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:222
  2016-09-26 17:29:46.103 2010 DEBUG bgpspeaker.peer [-] Peer(ip: fd00:10:6b50:600a::2, asn: 65002) trying to connect to ('fd00:10:6b50:600a::2', 179) _connect_loop /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:1064
  2016-09-26 17:29:46.104 2010 DEBUG bgpspeaker.base [-] Connect TCP called for fd00:10:6b50:600a::2:179 _connect_tcp /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py:399
  2016-09-26 17:29:46.105 2010 DEBUG bgpspeaker.peer [-] Peer fd00:10:6b50:600a::2 BGP FSM went from Connect to Active bgp_state /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:222
  2016-09-26 17:29:46.106 2010 DEBUG bgpspeaker.peer [-] Socket could not be created in time (30 secs), reason Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py", line 1072, in _connect_loop
      password=password)
    File "/usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py", line 410, in _connect_tcp
      sock.connect(peer_addr)
    File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 237, in connect
      while not socket_connect(fd, address):
    File "/usr/lib/python2.7/dist-packages/eventlet/greenio/base.py", line 39, in socket_connect
      raise socket.error(err, errno.errorcode[err])
  error: [Errno 101] ENETUNREACH
  ============================================

  Here is the netstat output.

  root@hp3bl2:/etc/neutron# ip netns exec qrouter-ee1287c3-f3d2-498f-82f3-ba7643d1e074 netstat -A inet6 -an
  Active Internet connections (servers and established)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State
  raw6       0      0 :::58                   :::*                    7

  
  Please let me know if whether more information required.
  Thank you,
  Vishwanath Shivappa

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1628044/+subscriptions


Follow ups