[openstack-dev] Problems with new Neutron service plugin

Jaume Devesa devvesa at gmail.com
Tue Jul 29 10:09:51 UTC 2014


Maciej: have you loaded the service plugin in the neutron.conf?

service_plugins =
neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,neutron.services.loadbalancer.plugin.LoadBalancerPlugin,neutron.services.floatingports.FloatingPort

Neutron needs to know what plugins to load at start up time to expose the
extensions...

RESOURCE_ATTRIBUTE_MAP key is called 'redirections', it should be called
'floatingports'. And when you call
resource_helper.build_resource_info you are using constants.FIREWALL.
Should be 'floatingport' (the plugin
type or the plugin name you defined in 'FloatingPortPluginBase', not sure
which one. In your case it does not matter
because is the same value).

You have to add also the value 'floatingport' in the
neutron.plugins.common.constants.COMMON_PREFIXES dictionary.

The definition of the method get_floatingports should use the 'filters'
attribute instead of the 'id' one:

def get_floatingports(self, context, filters=None, fields=None)

And the rest is up to you! Hope this helps.


On 29 July 2014 11:51, Kashyap Chamarthy <kchamart at redhat.com> wrote:

> On Tue, Jul 29, 2014 at 11:15:45AM +0200, Maciej Nabożny wrote:
>
> [Just a generic comment, not related to the extension code in question.]
>
> > Yes, here is extension code:
> > http://pastebin.com/btYQjwnr
> > service plugin code:
> > http://pastebin.com/ikKf80Fr
>
> Pastebins expire, it's useful to provide URLs that are accessible for
> much longer times, so that anyone who refers to this email months later
> will still be able to access the code in question.
>
> --
> /kashyap
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
Jaume Devesa
Software Engineer at Midokura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140729/a072fdf1/attachment.html>


More information about the OpenStack-dev mailing list