Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1624052

Summary: neutron fails to start after setting up l2gw - server log reports ...L2gwRpcDriver is not unique across providers
Product: [Community] RDO Reporter: mike.oliveras
Component: openstack-neutronAssignee: Ricardo Noriega <rnoriega>
Status: CLOSED NOTABUG QA Contact: Ofer Blaut <oblaut>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: chrisw, srevivo
Target Milestone: ---   
Target Release: trunk   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-14 00:39:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
neutron server.log file
none
neutron.conf file
none
neutron.conf file
none
/etc/neutron/l2gw_plugin.ini
none
/etc/neutron/l2gateway_agent.ini none

Description mike.oliveras 2018-08-30 18:39:31 UTC
Created attachment 1479878 [details]
neutron server.log file

*** I am using openstack queens, which was not listed in the dropdown ***

Description of problem:
After configuring l2gw support on the openstack controller node, neutron-server fail to start.  I see the following message in the /var/log/nova/server/log file:

2018-08-30 09:59:32.605 21059 ERROR neutron Invalid: Driver networking_l2gw.services.l2gateway.service_drivers.rpc_l2gw.L2gwRpcDriver is not unique across providers


Version-Release number of selected component (if applicable):
[root@controller neutron]# rpm -qa | grep neutron
openstack-neutron-l2gw-agent-12.0.1-1.el7.noarch
openstack-neutron-12.0.3-1.el7.noarch
openstack-neutron-common-12.0.3-1.el7.noarch
openstack-neutron-ml2-12.0.3-1.el7.noarch
python2-neutron-lib-1.13.0-1.el7.noarch
python-neutron-12.0.3-1.el7.noarch
python2-neutronclient-6.7.0-1.el7.noarch
openstack-neutron-linuxbridge-12.0.3-1.el7.noarch



How reproducible:
This problem is happening consistently for me

Steps to Reproduce:
1. Install l2-gw support
 yum install openstack-neutron-l2gw-agent
================================================================================
 Package                              Arch           Version                 Repository                       Size
================================================================================
Installing:
 openstack-neutron-l2gw-agent         noarch         1:12.0.1-1.el7          centos-openstack-queens         9.3 k
Installing for dependencies:
 python2-networking-l2gw              noarch         1:12.0.1-1.el7          centos-openstack-queens         149 k

Transaction Summary
================================================================================

2. Enable the plugin in neutron.conf
add "networking_l2gw.services.l2gateway.plugin.L2GatewayPlugin" to service_plugins
i.e., 
service_plugins = router,networking_l2gw.services.l2gateway.plugin.L2GatewayPlugin

3. Point the l2gw plugin to my gateway node in /etc/neutron/l2gateway_agent.ini
ovsdb_hosts = 'ovsdb1:10.0.0.31:6632'

4. Update the neutron database
systemctl stop neutron-server
neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l2gw_plugin.ini  upgrade head
systemctl start neutron-server

5. Update Neutron startup script to load the L2GW plugin configuration file
sed -ri "s/(ExecStart=.*)/\1 --config-file \/etc\/neutron\/l2gw_plugin.ini /" /usr/lib/systemd/system/neutron-server.service

6. Restart the neutron-server service
systemctl daemon-reload
systemctl restart neutron-server.service



Actual results:
The neutron-server service fails to start

Expected results:
neutron-server should start sucessfully

Additional info:
/var/log/neutron/server.log reports:
2018-08-30 09:59:32.605 21059 ERROR neutron Invalid: Driver networking_l2gw.services.l2gateway.service_drivers.rpc_l2gw.L2gwRpcDriver is not unique across providers

I am attaching my neutron config files as well as a more complete server.log.

Comment 1 mike.oliveras 2018-08-30 18:40:57 UTC
Created attachment 1479879 [details]
neutron.conf file

Comment 2 mike.oliveras 2018-08-30 18:43:43 UTC
Created attachment 1479880 [details]
neutron.conf file

Comment 3 mike.oliveras 2018-08-30 18:45:04 UTC
Created attachment 1479881 [details]
/etc/neutron/l2gw_plugin.ini

Comment 4 mike.oliveras 2018-08-30 18:45:51 UTC
Created attachment 1479882 [details]
/etc/neutron/l2gateway_agent.ini

Comment 5 mike.oliveras 2018-09-06 14:30:10 UTC
Is any additional information needed from me here?  I really have a need for this feature and would love to get it working.

Comment 6 mike.oliveras 2018-09-12 21:49:05 UTC
I have tried with with openstack "PIKE" also deployed from tripleO.

For that case the provider line in l2_gw_plugin.ini is a bit differet however I am getting the exact same error.

It looks like this:
[service_providers]
service_provider=L2GW:l2gw:networking_l2gw.services.l2gateway.service_drivers.L2gwDriver:default

VS the line I had before:
service_provider=L2GW:l2gw:networking_l2gw.services.l2gateway.service_drivers.rpc_l2gw.L2gwRpcDriver:default


I have searched far and wide but have not seem what my problem is. Can I PLEASE get some assistance with this?  Certainly not trying to piss anyone off but I really just need some help here.

Best Regards,

Mike

Comment 7 mike.oliveras 2018-09-14 00:38:35 UTC
I think I figured it out.