You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by Apache Wiki <wi...@apache.org> on 2014/07/18 19:02:42 UTC
[Jclouds Wiki] Update of "Testing OpenStack" by EverettToews
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Jclouds Wiki" for change notification.
The "Testing OpenStack" page has been changed by EverettToews:
https://wiki.apache.org/jclouds/Testing%20OpenStack
New page:
<<TableOfContents(3)>>
== DevStack ==
Testing against OpenStack can be aided by running [[http://devstack.org/|DevStack]], a documented shell script to build complete OpenStack development environments. Once you have DevStack installed and configure you can run the jclouds' live tests against it.
One example of getting DevStack up and running easily is [[http://blog.phymata.com/2014/04/18/devstack-icehouse-on-the-rackspace-cloud/|DevStack Icehouse on the Rackspace Cloud]].
== Neutron ==
=== Configure ===
The following changes have to be made to the neutron policy.json (/opt/stack/neutron/etc/policy.json):
{{{
create_network:router:external
get_network:provider:network_type
create_network:provider:network_type
update_network:provider:network_type
}}}
should not be be rule:admin_only (leave empty instead).
=== Run ===
{{{
mvn -Plive clean install "-Dtest.openstack-neutron-legacy.endpoint=http://my.ip.v4.address:5000/v2.0" "-Dtest.openstack-neutron.endpoint=http://localhost:5000/v2.0" "-Dtest.openstack-neutron.identity=demo:demo" "-Dtest.openstack-neutron-
legacy.identity=demo:demo" "-Dtest.openstack-neutron.credential=devstack" "-Dtest.openstack-neutron-legacy.credential=devstack"
}}}
=== Clean Up ===
Run these commands inside the DevStack instance itself to clean up any resources left over from failed tests.
{{{
source openrc demo demo
neutron port-list | awk '{print $2}' | xargs -I{} neutron port-delete "{}"
neutron subnet-list | awk '{print $2}' | xargs -I{} neutron subnet-delete "{}"
neutron net-list | awk '{print $2}' | xargs -I{} neutron net-delete "{}”
}}}