[openstack-dev] Problems with new Neutron service plugin

Maciej Nabożny mn at mnabozny.pl
Tue Jul 29 12:00:45 UTC 2014


Thank you very much! The constants list was the problem. I've also added 
empty list as result for get_floatingports and it works perfectly :)

Maciek

W dniu 29.07.2014, 12:09, Jaume Devesa pisze:
> 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_infoyou 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
> theneutron.plugins.common.constants.COMMON_PREFIXESdictionary.
>
> 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
> <mailto: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
>     <mailto:OpenStack-dev at lists.openstack.org>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
> --
> Jaume Devesa
> Software Engineer at Midokura
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



More information about the OpenStack-dev mailing list