You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Jeff Hair <je...@greenqloud.com> on 2016/08/02 15:18:09 UTC
KVM Plugin Test JNA Failure on Master
Hi,
Was there an upgrade or change to JNA on the master branch? If I run the
unit tests on the KVM plugin (/plugins/hypervisors/kvm/), it fails unless I
specify -Djna.nosys=true. This does not happen on the 4.8 branch.
Tests run: 146, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.22 sec
<<< FAILURE! - in
com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest
testMemoryFreeInKBsDomainReturningOfSomeMemoryStatistics(com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest)
Time elapsed: 0.019 sec <<< ERROR!
java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for
class com.sun.jna.Native
at com.sun.jna.Native.initIDs(Native Method)
at com.sun.jna.Native.<clinit>(Native.java:139)
at com.sun.jna.Pointer.<clinit>(Pointer.java:42)
at com.sun.jna.Structure.<clinit>(Structure.java:1933)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.createMemoryStatisticFreeMemory100(LibvirtComputingResourceTest.java:5063)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.testMemoryFreeInKBsDomainReturningOfSomeMemoryStatistics(LibvirtComputingResourceTest.java:5045)
Re: KVM Plugin Test JNA Failure on Master
Posted by Jeff Hair <je...@greenqloud.com>.
Yeah. I'm on Ubuntu 14.04 at the moment.
*Jeff Hair*
Technical Lead and Software Developer
Tel: (+354) 415 0200
jeff@greenqloud.com
www.greenqloud.com
On Tue, Aug 2, 2016 at 4:03 PM, Rohit Yadav <ro...@shapeblue.com>
wrote:
> Hi Jeff,
>
>
> It depends on what base distro/OS you're using to build CloudStack. I'm
> using Ubuntu 16.04 and CentOS7 (latest) and I did not get errors while
> building latest master. Though, I see Travis related failures around few
> unit tests in cloud-server.
>
>
> If you're using Ubuntu 12.04/14.04 or old versions of any Linux distro,
> you may have to use -Djna.nosys=true to avoid using the distro provided jna
> jar/library.
>
>
> Regards.
>
> ________________________________
> From: Jeff Hair <je...@greenqloud.com>
> Sent: 02 August 2016 20:48:09
> To: dev@cloudstack.apache.org
> Subject: KVM Plugin Test JNA Failure on Master
>
> Hi,
>
> Was there an upgrade or change to JNA on the master branch? If I run the
> unit tests on the KVM plugin (/plugins/hypervisors/kvm/), it fails unless I
> specify -Djna.nosys=true. This does not happen on the 4.8 branch.
>
> Tests run: 146, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.22 sec
> <<< FAILURE! - in
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest
>
> testMemoryFreeInKBsDomainReturningOfSomeMemoryStatistics(com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest)
> Time elapsed: 0.019 sec <<< ERROR!
> java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for
> class com.sun.jna.Native
> at com.sun.jna.Native.initIDs(Native Method)
> at com.sun.jna.Native.<clinit>(Native.java:139)
> at com.sun.jna.Pointer.<clinit>(Pointer.java:42)
> at com.sun.jna.Structure.<clinit>(Structure.java:1933)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.createMemoryStatisticFreeMemory100(LibvirtComputingResourceTest.java:5063)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.testMemoryFreeInKBsDomainReturningOfSomeMemoryStatistics(LibvirtComputingResourceTest.java:5045)
>
> rohit.yadav@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London WC2N 4HSUK
> @shapeblue
>
>
>
>
Re: KVM Plugin Test JNA Failure on Master
Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi Jeff,
It depends on what base distro/OS you're using to build CloudStack. I'm using Ubuntu 16.04 and CentOS7 (latest) and I did not get errors while building latest master. Though, I see Travis related failures around few unit tests in cloud-server.
If you're using Ubuntu 12.04/14.04 or old versions of any Linux distro, you may have to use -Djna.nosys=true to avoid using the distro provided jna jar/library.
Regards.
________________________________
From: Jeff Hair <je...@greenqloud.com>
Sent: 02 August 2016 20:48:09
To: dev@cloudstack.apache.org
Subject: KVM Plugin Test JNA Failure on Master
Hi,
Was there an upgrade or change to JNA on the master branch? If I run the
unit tests on the KVM plugin (/plugins/hypervisors/kvm/), it fails unless I
specify -Djna.nosys=true. This does not happen on the 4.8 branch.
Tests run: 146, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.22 sec
<<< FAILURE! - in
com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest
testMemoryFreeInKBsDomainReturningOfSomeMemoryStatistics(com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest)
Time elapsed: 0.019 sec <<< ERROR!
java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for
class com.sun.jna.Native
at com.sun.jna.Native.initIDs(Native Method)
at com.sun.jna.Native.<clinit>(Native.java:139)
at com.sun.jna.Pointer.<clinit>(Pointer.java:42)
at com.sun.jna.Structure.<clinit>(Structure.java:1933)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.createMemoryStatisticFreeMemory100(LibvirtComputingResourceTest.java:5063)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResourceTest.testMemoryFreeInKBsDomainReturningOfSomeMemoryStatistics(LibvirtComputingResourceTest.java:5045)
rohit.yadav@shapeblue.comĀ
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK
@shapeblue