Hi,

I've been having a difficult time getting the KVM agent on master to start
on Ubuntu 12.04.

The trouble seems to have begun after the Libvirt upgrade.

Any thoughts on this:

Thanks!

log4j:WARN No appenders could be found for logger
(org.apache.commons.httpclient.params.DefaultHttpParams).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
Caused by: java.lang.NoSuchMethodError: com.sun.jna.Native.free(J)V
at org.libvirt.Library.free(Unknown Source)
at org.libvirt.Connect.getCapabilities(Unknown Source)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.IsHVMEnabled(LibvirtComputingResource.java:4524)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:753)
at com.cloud.agent.Agent.<init>(Agent.java:168)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:439)
at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:386)
at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:361)
at com.cloud.agent.AgentShell.start(AgentShell.java:473)
... 5 more
Cannot start daemon
Service exit with a return value of 5


On Wed, Sep 25, 2013 at 6:03 PM, Yoshikazu Nojima <m...@ynojima.net> wrote:

> Hi Wei,
>
> Thank you for fix it!
>
> 2013/9/25 Wei ZHOU <ustcweiz...@gmail.com>:
> > fixed by commit 3dc4284
> >
> >
> > commit 3dc4284a34a1c79970b30288c245a26e8425e811
> > Author: Wei Zhou <w.z...@leaseweb.com>
> > Date:   Wed Sep 25 11:08:57 2013 +0200
> >     add missing jna-4.0.0.jar to cloudstack-agent library by changing
> scope
> > from provided to default runtime
> > diff --git a/plugins/hypervisors/kvm/pom.xml
> > b/plugins/hypervisors/kvm/pom.xml
> > index 4c0ec98..024cafe 100644
> > --- a/plugins/hypervisors/kvm/pom.xml
> > +++ b/plugins/hypervisors/kvm/pom.xml
> > @@ -51,7 +51,6 @@
> >      <dependency>
> >        <groupId>net.java.dev.jna</groupId>
> >         <artifactId>jna</artifactId>
> > -       <scope>provided</scope>
> >         <version>${cs.jna.version}</version>
> >      </dependency>
> >    </dependencies>
> >
> >
> > 2013/9/25 Wei ZHOU <ustcweiz...@gmail.com>
> >
> >> I tried both java 6 and java 7.
> >> build and install successfully
> >> agent can not restart.
> >> I will try after jna.version change .
> >>
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Reply via email to