I ran the tests on an Ubuntu 12.04 Rackspace Cloud Server setup as follows:
apt-get install -y git openjdk-7-jdk maven
git clone https://github.com/openstack-dev/devstack.git -b stable/grizzly
devstack/
cd devstack/
vim localrc
# copy localrc from above
./stack.sh
git clone https://github.com/jclouds/jclouds-labs-openstack.git
cd jclouds-labs-openstack/
git fetch https://github.com/KrisSterckx/jclouds-labs-openstack.git master
git cherry-pick 6243d71
cd
git clone https://github.com/jclouds/jclouds.git
cd jclouds/apis
mv ~/jclouds-labs-openstack/openstack-neutron/ .
cd openstack-neutron/
vim pom.xml
# added <relativePath>../../project/pom.xml</relativePath> to
<project><parent>
mvn clean install
mvn -Plive clean install
I got the following failure on the live tests:
Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.738 sec
<<< FAILURE!
testGetAndListNetworks(org.jclouds.openstack.neutron.v2_0.features.NetworkApiLiveTest)
Time elapsed: 0.241 sec <<< FAILURE!
java.lang.AssertionError: expected
[Network{id=ce8584e5-b920-4a5b-9109-8841d9278917,
tenantId=2e91767869ad47c2afd984e56c9d4daa, name=JClouds-Live-Network,
state=ACTIVE, subnets=[], adminStateUp=true, shared=false, external=false,
networkType=LOCAL, physicalNetworkName=null, segmentationId=null}] but found
[Network{id=ce8584e5-b920-4a5b-9109-8841d9278917,
tenantId=2e91767869ad47c2afd984e56c9d4daa, name=JClouds-Live-Network,
state=ACTIVE, subnets=[20bdd2ef-2fc0-4fb9-ab97-6f5f187d5c3d],
adminStateUp=true, shared=false, external=false, networkType=LOCAL,
physicalNetworkName=null, segmentationId=null}]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)
at org.testng.Assert.assertEquals(Assert.java:165)
at
org.jclouds.openstack.neutron.v2_0.features.NetworkApiLiveTest.testGetAndListNetworks(NetworkApiLiveTest.java:57)
Looks like there's an unexpected subnet kicking around.
I then immediately reran the live tests and got the following failure:
Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.66 sec
<<< FAILURE!
testGetAndListNetworks(org.jclouds.openstack.neutron.v2_0.features.NetworkApiLiveTest)
Time elapsed: 0.129 sec <<< FAILURE!
java.lang.AssertionError: expected [3] but found [2]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)
at org.testng.Assert.assertEquals(Assert.java:370)
at org.testng.Assert.assertEquals(Assert.java:380)
at
org.jclouds.openstack.neutron.v2_0.features.NetworkApiLiveTest.testGetAndListNetworks(NetworkApiLiveTest.java:50)
Which probably means the tests don't clean up after themselves quite correctly
after a fail.
@KrisSterckx Can you please look into the failures?
Can you also include the commands to manually delete all Neutron resources
after a test run?
For example, I do the following with Swift to delete all containers:
swift list | xargs -n 1 swift delete
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/23#issuecomment-23358707