[openstack-dev] Stuck trying to add a V3 plugin
philip.day at hp.com
Fri Jul 26 14:30:33 UTC 2013
Yep - was missing the need to change setup.cfg - Thanks Chris
One to look out for when adding V3 extensions ;-)
From: Christopher Yeoh [mailto:cbkyeoh at gmail.com]
Sent: 26 July 2013 14:19
To: OpenStack Development Mailing List
Subject: Re: [openstack-dev] Stuck trying to add a V3 plugin
On Fri, Jul 26, 2013 at 8:58 PM, Day, Phil <philip.day at hp.com<mailto:philip.day at hp.com>> wrote:
I'm trying to add a v3 plugin as part of the scheduler hints API BP - but although I've created the file in plugins/v3 and it looks OK compared to all the others in there it doesn't even get turned into a .pyc in Devstack - so its as if the API loaded just doesn't see that file at all.
Can someone who understands the V3 api code take a look and tell me what dumb-ass mistake I've made this time please ?
I've responded on the review. I think its just a missing entry in setup.cfg as without the entry point stevedore won't find the plugin. It actually doesn't matter where the plugin lives as long it is in PYTHONPATH and was installed with an entrypoint (eg individual plugins can live in their own packages without nova knowing about them directly).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev