Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems using BGP with neutron-dynamic-routing on Pike

Hello. I'm using CentOS 7 with Pike Release. Neutron router, net, subnet, ovs, horizon... are all working fine, and I want to advertise dynamically routers via BGP. My problem is with errors to start a BGP Speaker neutron bgp-.... commands. It was working on Mitaka release and now the drangent isn't starting.

pip install neutron-dynamic-routing

On /etc/neutron/neutron.conf I'm using the new plugin (bgp) changed on Newton or Ocata. service_plugins = router, neutron_dynamic_routing.services.bgp.bgp_plugin.BgpPlugin

On /etc/neutron/bgp_dragent.ini [BGP] bgp_speaker_driver = neutron_dynamic_routing.services.bgp.agent.driver.ryu.driver.RyuBgpDriver bgp_router_id = 65001

Also tried "bgp_speaker_driver = neutron.services.bgp.driver.ryu.driver.RyuBgpDriver"

[root@localhost ~ keystone_admin] neutron agent-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+--------------------+-----------------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host                  | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-----------------------+-------------------+-------+----------------+---------------------------+
| 5767dbf8-4bab-4759-bc4c-7a0bfc320a75 | Open vSwitch agent | localhost.localdomain |                   | :-)   | True           | neutron-openvswitch-agent |
| 7fa11169-3a79-4e16-9476-1af112b56794 | Metadata agent     | localhost.localdomain |                   | :-)   | True           | neutron-metadata-agent    |
| 80a4e42a-9f70-452c-862e-67ad45f21fbf | DHCP agent         | localhost.localdomain | nova              | :-)   | True           | neutron-dhcp-agent        |
| bf61520c-493b-4232-be34-1f056a760ad4 | L3 agent           | localhost.localdomain | nova              | :-)   | True           | neutron-l3-agent          |
| ee9343d9-1383-4f05-8781-e2003254f322 | Metering agent     | localhost.localdomain |                   | :-)   | True           | neutron-metering-agent    |
+--------------------------------------+--------------------+-----------------------+-------------------+-------+----------------+---------------------------+
[root@localhost ~ keystone_admin]

The problem is:

 [root@localhost ~ keystone_admin] /usr/bin/neutron-bgp-dragent
Traceback (most recent call last):
  File "/usr/bin/neutron-bgp-dragent", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/neutron_dynamic_routing/cmd/eventlet/agents/bgp_dragent.py", line 20, in main
    bgp_dragent.main()
  File "/usr/lib/python2.7/site-packages/neutron_dynamic_routing/services/bgp/agent/entry.py", line 38, in main
    register_options()
  File "/usr/lib/python2.7/site-packages/neutron_dynamic_routing/services/bgp/agent/entry.py", line 34, in register_options
    config.register_external_process_opts(cfg.CONF)
AttributeError: 'module' object has no attribute 'register_external_process_opts'


[root@localhost ~ keystone_admin] neutron bgp-speaker-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-ec206aa8-ecea-4b3d-8d06-cc685472d552']

neutron==11.0.2 ryu==4.15 neutron-dynamic-routing==12.0.0.0b2 neutron-lib==1.11.0 python-neutronclient==6.5.0 neutron-dynamic-routing==12.0.0.0b2 oslo.cache==1.25.1 oslo.concurrency==3.21.1 oslo.config==5.1.0 oslo.context==2.17.1 oslo.db==4.31.0 oslo.i18n==3.17.1 oslo.log==3.30.1 oslo.messaging==5.30.1 oslo.middleware==3.30.1 oslo.policy==1.25.2 oslo.privsep==1.22.1 oslo.reports==1.22.1 oslo.rootwrap==5.9.1 oslo.serialization==2.20.1 oslo.service==1.25.1 oslo.utils==3.32.0 oslo.versionedobjects==1.26.1 oslo.vmware==2.23.1 oslosphinx==4.15.2 posix-ipc==0.9.8 six==1.10.0 alembic==0.8.10 SQLAlchemy==1.1.11 SQLAlchemy-Utils==0.31.3 netaddr==0.7.18 httplib2==0.9.2 eventlet==0.20.0 pbr==3.1.1 msgpack-python==0.4.8 MySQL-python==1.2.5 python-barbicanclient==4.5.2 python-ceilometerclient==2.9.0 python-cinderclient==3.1.0 python-dateutil==2.4.2 python-designateclient==2.7.0 python-editor==0.4 python-gflags==2.0 python-glanceclient==2.8.0 python-heatclient==1.11.1 python-json-logger==0.1.7 python-keystoneclient==3.13.0 python-ldap==2.4.15 python-linux-procfs==0.4.9 python-memcached==1.58 python-mimeparse==1.6.0 python-neutronclient==6.5.0 python-novaclient==9.1.1 python-openstackclient==3.12.0 python-swiftclient==3.4.0