Bug 1048419

Summary: [RFE][neutron]: Config extension plugin by names
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-neutronAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Ofer Blaut <oblaut>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aberezin, chrisw, lpeer, markmc, mlopes, nyechiel, yeylon
Target Milestone: Upstream M3Keywords: FutureFeature, Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/neutron/+spec/config-plugin-by-name
Whiteboard: upstream_milestone_icehouse-3 upstream_status_implemented upstream_definition_discussion
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1058221 1082450 (view as bug list) Environment:
Last Closed: 2014-06-08 11:47:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1003878, 1058221, 1082450, 1083800    
Attachments:
Description Flags
server log , with extension_plugins and without (last) none

Description RHOS Integration 2014-01-04 05:03:07 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/neutron/+spec/config-plugin-by-name.

Description:

It is convenient to config extension plugins by names rather than python classes. Currently `service_plugins` contains a list of python class names of plugins:

service_plugins = neutron.services.l3_router.l3_router_plugin:L3RouterPlugin,neutron.services.firewall.fwaas_plugin:FirewallPlugin,neutron.services.loadbalancer.plugin:LoadBalancerPlugin

I suggest add a new option to load plugins, instead of use class names, simpler names can be used:

extension_plugins = l3-router, firewall, lbaas


Specification URL (additional information):

None

Comment 5 Ofer Blaut 2014-06-01 10:47:51 UTC
When using 

extension_plugins = l3-router, firewall in neutron.conf instead of 


service_plugins =neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron.services.firewall.fwaas_plugin.FirewallPlugin

Neutron server doesn't load drivers and FWaaS doesn't work
To reproduce:

1. Change config in neutron.conf
2. restart neutron-server
3. check server.log 
4. try to configure fwaas policy 

- neutron firewall-policy-create  test1
Created a new firewall_policy:
+----------------+--------------------------------------+


When using service_plugins  it works !!!

python-neutron-2014.1-22.el7ost.noarch

Comment 6 Ofer Blaut 2014-06-01 10:49:57 UTC
Created attachment 901201 [details]
server log , with extension_plugins  and without (last)

Comment 7 Nir Yechiel 2014-06-08 11:47:08 UTC

*** This bug has been marked as a duplicate of bug 1058221 ***