While talking on building and errors, I get this when trying to build noredist:
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ cloud-core --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 394 source files to /var/lib/jenkins/workspace/cloudstack-package-rpm-master-noredist/dist/rpmbuild/BUILD/cloudstack-4.6.0-SNAPSHOT/core/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /var/lib/jenkins/workspace/cloudstack-package-rpm-master-noredist/dist/rpmbuild/BUILD/cloudstack-4.6.0-SNAPSHOT/core/src/com/cloud/agent/resource/virtualnetwork/ConfigHelper.java:[622,50] error: incompatible types [INFO] 1 error Any idea what that could be? -- Erik On Mon, Jun 1, 2015 at 10:27 AM, Erik Weber <terbol...@gmail.com> wrote: > Thanks Rafael, > > Don't know what libraries that would be, the only thing installed I could > see is libvirt-client (which is needed by puppet). > > I'll try your fix :-) > > -- > Erik > > > On Mon, Jun 1, 2015 at 10:17 AM, Rafael Fonseca <rsafons...@gmail.com> > wrote: > >> Hi Eric, >> >> I've stumbled into the same issue, already reported it to Wilder, who is >> having a look at fixing this the proper way :) >> It happens because you have some native KVM libraries installed. >> You can either skiptests to get the packaging built or you can change what >> the test expects if you want to run the other tests as well. >> To fix it for now, just run >> sed -i -e 's/(expected = UnsatisfiedLinkError.class)//' >> >> ./plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java >> >> :) >> >> On Mon, Jun 1, 2015 at 9:18 AM, Erik Weber <terbol...@gmail.com> wrote: >> >> > I keep getting this when trying to build the latest master, anyone know >> of >> > a fix? >> > >> > ------------------------------------------------------- >> > T E S T S >> > ------------------------------------------------------- >> > Running org.apache.cloudstack.utils.linux.MemStatTest >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 >> > sec - in org.apache.cloudstack.utils.linux.MemStatTest >> > Running com.cloud.hypervisor.kvm.resource.LibvirtVifDriverTest >> > log4j:WARN No appenders could be found for logger >> > (com.cloud.hypervisor.kvm.resource.LibvirtComputingResource). >> > log4j:WARN Please initialize the log4j system properly. >> > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig >> > for more info. >> > Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.478 >> > sec - in com.cloud.hypervisor.kvm.resource.LibvirtVifDriverTest >> > Running com.cloud.hypervisor.kvm.resource.LibvirtSecretDefTest >> > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 >> > sec - in com.cloud.hypervisor.kvm.resource.LibvirtSecretDefTest >> > Running com.cloud.hypervisor.kvm.resource.LibvirtVMDefTest >> > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 >> > sec - in com.cloud.hypervisor.kvm.resource.LibvirtVMDefTest >> > Running com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest >> > libvirt: XML-RPC error : unable to connect to server at >> > '127.0.0.100:16509': Connection refused >> > Tests run: 143, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: >> > 2.664 sec <<< FAILURE! - in >> > com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest >> > >> > >> testMigrateCommand(com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest) >> > Time elapsed: 0.27 sec <<< FAILURE! >> > java.lang.AssertionError: Expected exception: >> > java.lang.UnsatisfiedLinkError >> > at >> > >> org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:32) >> > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) >> > at >> > >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) >> > at >> > >> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) >> > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) >> > at >> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) >> > at >> > org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) >> > at >> org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) >> > at >> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) >> > at org.junit.runners.ParentRunner.run(ParentRunner.java:309) >> > at >> > >> org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) >> > at >> > org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) >> > at >> > >> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) >> > at >> > >> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) >> > at >> > >> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) >> > at >> > >> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) >> > at >> > >> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) >> > at >> > >> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) >> > at >> > >> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) >> > >> > Running com.cloud.hypervisor.kvm.resource.LibvirtDomainXMLParserTest >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 >> > sec - in com.cloud.hypervisor.kvm.resource.LibvirtDomainXMLParserTest >> > Running com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolDefTest >> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 >> > sec - in com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolDefTest >> > Running com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest >> > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec >> > - in com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest >> > >> > Results : >> > >> > Failed tests: >> > LibvirtComputingResourceTest.testMigrateCommand Expected exception: >> > java.lang.UnsatisfiedLinkError >> > >> > >> > -- >> > >> > Erik >> > >> > >