BGP peering issue

asked 2016-09-26 01:09:38 -0500

Vishu gravatar image

updated 2016-09-26 07:18:07 -0500

 2016-09-26 06:53:52.024 2010 DEBUG neutron.services.bgp.agent.bgp_dragent [req-4b2c4bda-52e1-4bd0-b321-b50a77e715c0 - - - - -] Report state task started _report_state /usr/lib/python2.7/dist-packages/neutron/services/bgp/agent/bgp_dragent.py:675
2016-09-26 06:53:52.026 2010 DEBUG oslo_messaging._drivers.amqpdriver [req-720b81a4-3d9c-4139-8820-98d67b29e288 - - - - -] CALL msg_id: 62104ed652a34b12a4bd3deae39a8f82 exchange 'neutron' topic 'q-plugin' _send /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:454
2016-09-26 06:53:52.048 2010 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: 62104ed652a34b12a4bd3deae39a8f82 __call__ /usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py:302
2016-09-26 06:54:10.548 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 06:54:10.549 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 06:54:10.549 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 06:54:10.550 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 06:54:10.551 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
 _connect_loop /usr/lib/python2.7/dist-packages/ryu/services/protocols/bgp/peer.py:1078


root@hp3bl2:~# neutron agent-list
+--------------------------------------+---------------------------+--------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type                | host   | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+---------------------------+--------+-------------------+-------+----------------+---------------------------+
| 41a707f6-1813-4f90-b26e-689f6515d3dd | DHCP agent                | hp3bl2 | nova              | :-)   | True           | neutron-dhcp-agent        |
| cd230c9f-92ee-4ab7-94df-4bbf66e0a091 | Metadata agent            | hp3bl2 |                   | :-)   | True           | neutron-metadata-agent    |
| d5cfbad5-a7c5-4b5d-8303-e276e24e6b0a | BGP dynamic routing agent | hp3bl2 |                   | :-)   | True           | neutron-bgp-dragent       |
| ed5093ba-991a-453b-a3ae-91e7c0caf4cd | L3 agent                  | hp3bl2 | nova              | :-)   | True           | neutron-l3-agent          |
| f54fbabc-1d8f-4b0b-aabe-c3d9dc4ca32f | Open vSwitch agent        | hp3bl2 |                   | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+---------------------------+--------+-------------------+-------+----------------+---------------------------+

root@hp3bl2:~# neutron bgp-dragent-list-hosting-speaker bgp1
+--------------------------------------+--------+----------------+-------+
| id                                   | host   | admin_state_up | alive |
+--------------------------------------+--------+----------------+-------+
| d5cfbad5-a7c5-4b5d-8303-e276e24e6b0a | hp3bl2 | True           | :-)   |
+--------------------------------------+--------+----------------+-------+

root@hp3bl2:~# neutron bgp-peer-list
+--------------------------------------+-----------+----------------------+-----------+
| id                                   | name      | peer_ip              | remote_as |
+--------------------------------------+-----------+----------------------+-----------+
| a26820d2-46c5-4e2c-9dcd-8d9b5193d660 | bgp-peer1 | FD00:10:6B50:600A::2 |     65002 |
+--------------------------------------+-----------+----------------------+-----------+


root@hp3bl2:~# neutron bgp-speaker-advertiseroute-list bgp1
+--------------------+---------------------+
| destination        | next_hop            |
+--------------------+---------------------+
| 2001:db8:1234::/64 | 2001:db8:4321:42::4 |
+--------------------+---------------------+

root@hp3bl2:~# neutron bgp-speaker-list
+--------------------------------------+------+----------+------------+
| id                                   | name | local_as | ip_version |
+--------------------------------------+------+----------+------------+
| b9ed49f6-7a32-4049-a74b-9791dcfaea32 | bgp1 |    65002 |          6 |
+--------------------------------------+------+----------+------------+

root@hp3bl2:~# neutron router-port-list router1
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                                  |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------------+
| 21da44af-4507-4100-92a3-38f9a850f3f5 |      | fa:16:3e:84:2f:6a | {"subnet_id": "cf0b5fdb-c6f0-4350-8801-6994c3ec1484", "ip_address": "2001:db8:4321:42::4"} |
| 5c49fe76-afdf-47ab-9213-9427c373ec07 |      | fa:16:3e:6a:93:8c | {"subnet_id": "5f68c3b4-0772-41ac-ba77-ee343fbe5838", "ip_address": "2001:db8:1234::1"}    |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------------+

root@hp3bl2:~# neutron subnet-list
+--------------------------------------+-------------+-----------------------+---------------------------------------------------------------------------------+
| id                                   | name        | cidr                  | allocation_pools                                                                |
+--------------------------------------+-------------+-----------------------+---------------------------------------------------------------------------------+
| cf0b5fdb-c6f0-4350-8801-6994c3ec1484 | public-ip6  | 2001:db8:4321:42::/64 ...
(more)
edit retag flag offensive close merge delete