cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Tutkowski (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-4812) Can't run KVM agent on Ubuntu 12.04
Date Wed, 09 Oct 2013 19:22:43 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-4812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Tutkowski closed CLOUDSTACK-4812.
--------------------------------------


> Can't run KVM agent on Ubuntu 12.04
> -----------------------------------
>
>                 Key: CLOUDSTACK-4812
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4812
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: Future
>         Environment: Ubuntu 12.04
>            Reporter: Mike Tutkowski
>             Fix For: Future
>
>
> From an e-mail thread:
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> Mike,
>  
> Does CloudStack master bracnh sill not work on your machines for jna related issues?
>  
> If so, could you try backup and remove jna.jar in /usr/share/java directory? There could
be more than one jna.jar on your managament server, the correct jna-4.0.0.jar is in /usr/share/cloudstack-agent/lib/
directory, and Java is supposed to search the jar in /usr/share/java at first.
>  
> I will fix it today.
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> In cloudstack 4.1, the jna-3.2.4.jar was deployed to /usr/share/java.
> It is not removed in cloudstack 4.2 installation.
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> sorry, jna-3.2.4.jar was deployed by jna-3.2.4-2.el6.x86_64
>  
> # rpm -qf /usr/share/java/
> jna-3.2.4-2.el6.x86_64
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> [root@da-upgr-01-mgmt ~]# rpm -qf /usr/share/java/
> jpackage-utils-1.7.5-3.12.el6.noarch
> libgcj-4.4.7-3.el6.x86_64
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> on Ubuntu
>  
> root@cs-kvm004:~# apt-file search /usr/share/java/jna-3.2.7.jar
> libjna-java: /usr/share/java/jna-3.2.7.jar
>  
> It could be OK after removing jna.jar from /usr/share/java/:
>  
> [root@weizhou-centos master(master)]# ls -l /usr/share/java/jna*.jar
> -rw-r--r--. 1 root root 133615 Sep 30 10:32 /usr/share/java/jna-3.2.7.jar
> [root@weizhou-centos master(master)]# ls -l /usr/share/cloudstack-agent/lib/jna*.jar
> -rw-r--r--. 1 root root 914639 Sep 25 10:59 /usr/share/cloudstack-agent/lib/jna-4.0.0.jar
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> Mike,
>  
> Sorry to distrub you.
>  
> I just noticed Wido fixed the issue in commit e6fd794ca0b10a00f3fc93e5f3e81ab342f5b860
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=e6fd794ca0b10a00f3fc93e5f3e81ab342f5b860
>  
> so, please try latest source codes. 
> Mike Tutkowski <mike.tutkowski@solidfire.com>
> Sep 30 (3 days ago)
> to Wei 
> Hi Wei,
> Thanks for the messages.
> Yeah, I actually updated after Wido's changes, cleaned, rebuilt, redeployed the DEBs,
then saw a different JNA error:
> 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.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 org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
> 	at org.libvirt.Library.<clinit>(Unknown Source)
> 	at org.libvirt.Connect.<init>(Unknown Source)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtConnection.getConnection(LibvirtConnection.java:44)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtConnection.getConnection(LibvirtConnection.java:37)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:733)
> 	at com.cloud.agent.Agent.<init>(Agent.java:161)
> 	at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:421)
> 	at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:376)
> 	at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:357)
> 	at com.cloud.agent.AgentShell.start(AgentShell.java:454)
> 	... 5 more
> Cannot start daemon
> Service exit with a return value of 5
> Wei ZHOU
> Sep 30 (3 days ago)
> to me 
> Mike,
> Could you check the jna*.jar  in /usr/share/java and /usr/share/cloudstack-agent/lib?
>  
> I installed on Ubuntu 13.04, and cloudstack-agent started successfully. It is strange.
> Mike Tutkowski <mike.tutkowski@solidfire.com>
> Sep 30 (3 days ago)
> to Wei 
> Hi Wei,
> jna*.jar in /usr/share/java:
> -rw-r--r-- 1 root root   133615 Jun  6  2011 jna-3.2.7.jar
> lrwxrwxrwx 1 root root       13 Jun  6  2011 jna.jar -> jna-3.2.7.jar
> -rw-r--r-- 1 root root   319903 Jun  6  2011 jna-platform-3.2.7.jar
> lrwxrwxrwx 1 root root       22 Jun  6  2011 jna-platform.jar -> jna-platform-3.2.7.jar
> jna*.jar in /usr/share/cloudstack-agent/lib:
> -rwxr-xr-x 1 root root  914639 Sep 29 11:48 jna-4.0.0.jar
> Mike Tutkowski <mike.tutkowski@solidfire.com>
> Sep 30 (3 days ago)
> to Wei 
> I figured I'd try this process over again (update, clean, rebuilt, redeploy) just in
case I made a mistake last time.
> Unfortunately, I get the same error message (JNA related):
> 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.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 org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
> 	at org.libvirt.Library.<clinit>(Unknown Source)
> 	at org.libvirt.Connect.<init>(Unknown Source)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtConnection.getConnection(LibvirtConnection.java:44)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtConnection.getConnection(LibvirtConnection.java:37)
> 	at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:733)
> 	at com.cloud.agent.Agent.<init>(Agent.java:161)
> 	at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:421)
> 	at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:376)
> 	at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:357)
> 	at com.cloud.agent.AgentShell.start(AgentShell.java:454)
> 	... 5 more
> Cannot start daemon
> Service exit with a return value of 5



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message