cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Battala <rajesh.batt...@citrix.com>
Subject Re: 4.2 build error...
Date Mon, 19 Aug 2013 03:41:48 GMT
Issue is with the test file.

Work around is
1. Use -DskipTestd=true with mvn
2. Open plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java

2.      Comment out these lines +

“

vmStr += "<cputune>\n";

vmStr += "<shares>" + (cpus * speed) + "</shares>\n";

vmStr += "</cputune>\n";

“

Which are present in the file in line 102 and another location 178.

Meanwhile I will submit a patch for the same.



Thanks
Rajesh Battala

Thomas O'Dowd <tpodowd@cloudian.com> wrote:


Hi all,

I'm getting a build error on 4.2 :-(

Using: mvn -P developer,systemvm clean install

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
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.323 sec
Running com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec <<< FAILURE!
testCreateVMFromSpecLegacy(com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest)
 Time elapsed: 0.00
7 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<...t dev='hd'/>
</os>
<[cputune>
<shares>7168</shares>
</cputune>
<]on_reboot>restart</o...> but was:<...t dev='hd'/>
</os>
<[]on_reboot>restart</o...>
        at org.junit.Assert.assertEquals(Assert.java:125)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.testCreateVMFromSpecLegacy(LibvirtCo
mputingResourceTest.java:113)

testCreateVMFromSpec(com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest)  Time
elapsed: 0 sec  <<<
 FAILURE!
org.junit.ComparisonFailure: expected:<...t dev='hd'/>
</os>
<[cputune>
<shares>2048</shares>
</cputune>
<]on_reboot>restart</o...> but was:<...t dev='hd'/>
</os>
<[]on_reboot>restart</o...>
        at org.junit.Assert.assertEquals(Assert.java:125)
        at org.junit.Assert.assertEquals(Assert.java:147)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.testCreateVMFromSpec(LibvirtComputin
gResourceTest.java:189)

Running com.cloud.hypervisor.kvm.resource.LibvirtVMDefTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE!
testCloneVolumeFromBaseTemplate(com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest)
 Time elapsed: 0.022 sec  <<< ERROR!
javax.naming.ConfigurationException: Unable to find the call_firewall.sh
        at com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.configure(VirtualRoutingResource.java:1129)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:537)
        at com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest.setUp(KVMStorageProcessorTest.java:35)

testCopyVolumeFromImageCacheToPrimary(com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest)
 Time elapsed: 0.003 sec  <<< ERROR!
javax.naming.ConfigurationException: Unable to find the call_firewall.sh
        at com.cloud.agent.resource.virtualnetwork.VirtualRoutingResource.configure(VirtualRoutingResource.java:1129)
        at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:537)
        at com.cloud.hypervisor.kvm.storage.KVMStorageProcessorTest.setUp(KVMStorageProcessorTest.java:35)


Results :

Failed tests:
  LibvirtComputingResourceTest.testCreateVMFromSpecLegacy:113 expected:<...t dev='hd'/>
</os>
<[cputune>
<shares>7168</shares>
</cputune>
<]on_reboot>restart</o...> but was:<...t dev='hd'/>
</os>
<[]on_reboot>restart</o...>
  LibvirtComputingResourceTest.testCreateVMFromSpec:189 expected:<...t dev='hd'/>
</os>
<[cputune>
<shares>2048</shares>
</cputune>
<]on_reboot>restart</o...> but was:<...t dev='hd'/>
</os>
<[]on_reboot>restart</o...>

Tests in error:
  KVMStorageProcessorTest.setUp:35 » Configuration Unable to find the call_firew...
  KVMStorageProcessorTest.setUp:35 » Configuration Unable to find the call_firew...

Tests run: 15, Failures: 2, Errors: 2, Skipped: 0


--
Cloudian KK - http://www.cloudian.com/get-started.html
Fancy 100TB of full featured S3 Storage?
Checkout the Cloudian® Community Edition!


Mime
View raw message