[openstack-dev] [devstack] how to use a devstack external plugin in gate testing

Kyle Mestery mestery at mestery.com
Fri Feb 6 21:54:55 UTC 2015


On Fri, Feb 6, 2015 at 1:36 PM, Sean Dague <sean at dague.net> wrote:

> For those that didn't notice, on the Devstack team we've started to push
> back on new in-tree support for all the features. That's intentional.
> We've got an external plugin interface now -
>
> http://docs.openstack.org/developer/devstack/plugins.html#externally-hosted-plugins
> ,
> and have a few projects like the ec2api and glusterfs that are
> successfully using it. Our Future direction is to do more of this -
> https://review.openstack.org/#/c/150789/
>
> The question people ask a lot is 'but, how do I do a gate job with the
> external plugin?'.
>
> Starting with the stackforge/ec2api we have an example up on how to do
> that: https://review.openstack.org/#/c/153659/
>
> The important bits are as follows:
>
> 1. the git repo that you have your external plugin in *must* be in
> gerrit. stackforge is fine, but it has to be hosted in the OpenStack
> infrastructure.
>
> 2. The job needs to add your PROJECT to the projects list, i.e.:
>
>     export PROJECTS="stackforge/ec2-api $PROJECTS"
>
> 3. The job needs to add a DEVSTACK_LOCAL_CONFIG line for the plugin
> enablement:
>
>     export DEVSTACK_LOCAL_CONFIG="enable_plugin ec2-api
> git://git.openstack.org/stackforge/ec2-api"
>
> Beyond that you can define your devstack job however you like. It can
> test with Tempest. It can instead use a post_test_hook for functional
> testing. Whatever is appropriate for your project.
>
> This is awesome Sean! Thanks for the inspiration here. In fact, I just
pushed a series of patches [1] [2] which do the same for the networking-odl
stackforge project.

Thanks,
Kyle

[1] https://review.openstack.org/#/c/153704/
[2] https://review.openstack.org/#/c/153705/

        -Sean
>
> --
> Sean Dague
> http://dague.net
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150206/d1a52420/attachment.html>


More information about the OpenStack-dev mailing list