← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1763627] [NEW] neutron service-provider-list return duplicated entries

 

Public bug reported:

After I add service_provider to neutron.conf with multiple
service_provider enabled plugins, 'neutron service-provider-list'
returned duplicated entries.


Here is neutron.conf snippet which makes problem and output of the command.

[DEFAULT]
service_plugins = l3_router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2

[service_providers]
service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default


openstack network service provider list
+----------------+-------------+---------+
| Service Type   | Name        | Default |
+----------------+-------------+---------+
| LOADBALANCERV2 | octavia     | True    |
| L3_ROUTER_NAT  | single_node | False   |
| L3_ROUTER_NAT  | ha          | False   |
| L3_ROUTER_NAT  | dvrha       | False   |
| L3_ROUTER_NAT  | dvr         | False   |
| LOADBALANCERV2 | netscaler   | False   |
| LOADBALANCERV2 | octavia     | True    |
| LOADBALANCERV2 | netscaler   | False   |
+----------------+-------------+---------+


As you can see there were duplicated LOADBALANCERV2 typed providers. After digging the related code, there is no filtering logic in ProviderConfiguration class at all using service type (named svc_module in __init__()). 

I think there should be filtering logic at ProviderConfiguration or
NeutronModule class.

** 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/1763627

Title:
  neutron service-provider-list return duplicated entries

Status in neutron:
  New

Bug description:
  After I add service_provider to neutron.conf with multiple
  service_provider enabled plugins, 'neutron service-provider-list'
  returned duplicated entries.

  
  Here is neutron.conf snippet which makes problem and output of the command.

  [DEFAULT]
  service_plugins = l3_router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2

  [service_providers]
  service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

  
  openstack network service provider list
  +----------------+-------------+---------+
  | Service Type   | Name        | Default |
  +----------------+-------------+---------+
  | LOADBALANCERV2 | octavia     | True    |
  | L3_ROUTER_NAT  | single_node | False   |
  | L3_ROUTER_NAT  | ha          | False   |
  | L3_ROUTER_NAT  | dvrha       | False   |
  | L3_ROUTER_NAT  | dvr         | False   |
  | LOADBALANCERV2 | netscaler   | False   |
  | LOADBALANCERV2 | octavia     | True    |
  | LOADBALANCERV2 | netscaler   | False   |
  +----------------+-------------+---------+

  
  As you can see there were duplicated LOADBALANCERV2 typed providers. After digging the related code, there is no filtering logic in ProviderConfiguration class at all using service type (named svc_module in __init__()). 

  I think there should be filtering logic at ProviderConfiguration or
  NeutronModule class.

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


Follow ups