I wonder if that's still the case (this e-mail was from two weeks ago)? When I rebuilt my Ubuntu KVM host from scratch, everything seemed to work.
I'm not sure why I was getting those JNA issues with my old Ubuntu KVM install. On Wed, Oct 16, 2013 at 5:16 PM, Marcus Sorensen <[email protected]>wrote: > Yeah, master is really a bummer right now with the JNA issues. > > On Sun, Sep 29, 2013 at 12:13 PM, Mike Tutkowski > <[email protected]> wrote: > > Some progress (I think). > > > > Now I get this error message instead: > > > > 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 > > > > > > On Sun, Sep 29, 2013 at 4:23 AM, Wido den Hollander <[email protected]> > wrote: > > > >> > >> > >> On 09/29/2013 08:01 AM, Wei ZHOU wrote: > >> > >>> try backup and remove the jna.jar in /usr/share/java > >>> > >>> > >> I fixed the init scripts, it was still including the old JNA in the > >> classpath: > https://git-wip-us.apache.org/**repos/asf?p=cloudstack.git;a=** > >> commit;h=**e6fd794ca0b10a00f3fc93e5f3e81a**b342f5b860< > https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=commit;h=e6fd794ca0b10a00f3fc93e5f3e81ab342f5b860 > > > >> > >> That should fix it! > >> > >> Wido > >> > >> > >> 2013/9/29, Mike Tutkowski <[email protected]>**: > >>> > >>>> Hi Wei, > >>>> > >>>> So, re-installing cloudstack-common allowed cloudstack-agent to > install > >>>> successfuly. Thanks > >>>> > >>>> I'm still having what appears to be Libvirt-related issues on Ubuntu > >>>> 12.04 > >>>> with master. > >>>> > >>>> Any thoughts on this? > >>>> > >>>> 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< > 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:**4533) > >>>> at > >>>> com.cloud.hypervisor.kvm.**resource.**LibvirtComputingResource.** > >>>> configure(**LibvirtComputingResource.java:**747) > >>>> 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 > >>>> > >>>> > >>>> On Fri, Sep 27, 2013 at 1:45 PM, Mike Tutkowski < > >>>> [email protected]> wrote: > >>>> > >>>> Looks like listNetworks() is called a couple times in > >>>>> cloudstack-agent-upgrade: > >>>>> > >>>>> if __name__ == '__main__': > >>>>> netlib = networkConfig() > >>>>> bridges = netlib.listNetworks() > >>>>> bridges = filter(isOldStyleBridge, bridges) > >>>>> for br in bridges: > >>>>> enslavedDev = netlib.getEnslavedDev(br, 1) > >>>>> if enslavedDev is not None: > >>>>> upgradeBridgeName(br, enslavedDev) > >>>>> > >>>>> bridges = netlib.listNetworks() > >>>>> bridges = filter(isOldStyleBridge, bridges) > >>>>> if len(bridges) > 0: > >>>>> print("Warning: upgrade is not finished, still some bridges > have > >>>>> the old style name:" + str(bridges)) > >>>>> else: > >>>>> print("Upgrade succeed") > >>>>> > >>>>> > >>>>> On Fri, Sep 27, 2013 at 1:43 PM, Mike Tutkowski < > >>>>> [email protected]> wrote: > >>>>> > >>>>> Kind of made progress here. :) Looks like we have another problem. > Is > >>>>>> it > >>>>>> possible another item is missing from the scripts? > >>>>>> > >>>>>> mtutkowski@ubuntu:~$ sudo apt-get install cloudstack-agent > >>>>>> Reading package lists... Done > >>>>>> Building dependency tree > >>>>>> Reading state information... Done > >>>>>> The following NEW packages will be installed: > >>>>>> cloudstack-agent > >>>>>> 0 upgraded, 1 newly installed, 0 to remove and 468 not upgraded. > >>>>>> Need to get 39.1 MB of archives. > >>>>>> After this operation, 43.6 MB of additional disk space will be used. > >>>>>> WARNING: The following packages cannot be authenticated! > >>>>>> cloudstack-agent > >>>>>> Install these packages without verification [y/N]? y > >>>>>> Get:1 http://localhost/cloudstack/**repo/< > http://localhost/cloudstack/repo/>binary/ cloudstack-agent 4.3.0 > >>>>>> [39.1 MB] > >>>>>> Fetched 39.1 MB in 0s (50.5 MB/s) > >>>>>> Selecting previously unselected package cloudstack-agent. > >>>>>> (Reading database ... 168800 files and directories currently > >>>>>> installed.) > >>>>>> Unpacking cloudstack-agent (from > .../cloudstack-agent_4.3.0_**all.deb) > >>>>>> ... > >>>>>> Processing triggers for ureadahead ... > >>>>>> Setting up cloudstack-agent (4.3.0) ... > >>>>>> Traceback (most recent call last): > >>>>>> File "/usr/bin/cloudstack-agent-**upgrade", line 51, in <module> > >>>>>> bridges = netlib.listNetworks() > >>>>>> AttributeError: networkConfig instance has no attribute > 'listNetworks' > >>>>>> dpkg: error processing cloudstack-agent (--configure): > >>>>>> subprocess installed post-installation script returned error exit > >>>>>> status > >>>>>> 1 > >>>>>> Errors were encountered while processing: > >>>>>> cloudstack-agent > >>>>>> E: Sub-process /usr/bin/dpkg returned an error code (1) > >>>>>> > >>>>>> > >>>>>> On Fri, Sep 27, 2013 at 8:26 AM, Mike Tutkowski < > >>>>>> [email protected]> wrote: > >>>>>> > >>>>>> Great - thanks, Wei! > >>>>>>> > >>>>>>> > >>>>>>> On Fri, Sep 27, 2013 at 2:34 AM, Wei ZHOU <[email protected]> > >>>>>>> wrote: > >>>>>>> > >>>>>>> Mike, > >>>>>>>> cloudstack-agent-upgrade is missing in cloudstack-agent > installation. > >>>>>>>> I added it in commit a6bfd9602129d8ae308ba58f36623c**04826e15ca > >>>>>>>> > >>>>>>>> [root@weizhou-centos master(4.2)]# git show > >>>>>>>> a6bfd9602129d8ae308ba58f36623c**04826e15ca > >>>>>>>> commit a6bfd9602129d8ae308ba58f36623c**04826e15ca > >>>>>>>> Author: Wei Zhou <[email protected]> > >>>>>>>> Date: Fri Sep 27 10:31:54 2013 +0200 > >>>>>>>> add missing cloudstack-agent-upgrade in cloudstack-agent > debian > >>>>>>>> packages > >>>>>>>> diff --git a/debian/cloudstack-agent.**install > >>>>>>>> b/debian/cloudstack-agent.**install > >>>>>>>> index a3cc869..d708514 100644 > >>>>>>>> --- a/debian/cloudstack-agent.**install > >>>>>>>> +++ b/debian/cloudstack-agent.**install > >>>>>>>> @@ -21,6 +21,7 @@ > >>>>>>>> /etc/init.d/cloudstack-agent > >>>>>>>> /usr/bin/cloudstack-setup-**agent > >>>>>>>> /usr/bin/cloudstack-ssh > >>>>>>>> +/usr/bin/cloudstack-agent-**upgrade > >>>>>>>> /var/log/cloudstack/agent > >>>>>>>> /usr/share/cloudstack-agent/**lib/* > >>>>>>>> /usr/share/cloudstack-agent/**plugins > >>>>>>>> > >>>>>>>> > >>>>>>>> 2013/9/27 Mike Tutkowski <[email protected]> > >>>>>>>> > >>>>>>>> Thanks for investigating this! > >>>>>>>>> > >>>>>>>>> Talk to you soon! > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> On Fri, Sep 27, 2013 at 12:54 AM, Wei ZHOU < > [email protected]> > >>>>>>>>> > >>>>>>>> wrote: > >>>>>>>> > >>>>>>>>> > >>>>>>>>> good night > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> 2013/9/27 Mike Tutkowski <[email protected]> > >>>>>>>>>> > >>>>>>>>>> Sounds good > >>>>>>>>>>> > >>>>>>>>>>> Might have to get back to you tomorrow, though. I have to get > up > >>>>>>>>>>> > >>>>>>>>>> early. > >>>>>>>> > >>>>>>>>> :) > >>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> On Fri, Sep 27, 2013 at 12:43 AM, Wei ZHOU > >>>>>>>>>>> <[email protected] > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> wrote: > >>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> ok. Thanks for your reply! > >>>>>>>>>>>> The last question, could you try to download the > >>>>>>>>>>>> > >>>>>>>>>>> cloudstack-agent and > >>>>>>>> > >>>>>>>>> cloudstack-common deb packages, and "dpkg -i" to install it? > >>>>>>>>>>>> > >>>>>>>>>>>> I will test it on my local machine. > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> 2013/9/27 Mike Tutkowski <[email protected]> > >>>>>>>>>>>> > >>>>>>>>>>>> Before re-installing the DEBs I run the following: > >>>>>>>>>>>>> > >>>>>>>>>>>>> #sudo apt-get remove --purge cloudstack-agent > >>>>>>>>>>>>> > >>>>>>>>>>>>> #sudo apt-get clean > >>>>>>>>>>>>> Would that be sufficient with regards to what you were > >>>>>>>>>>>>> asking? > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> On Fri, Sep 27, 2013 at 12:36 AM, Wei ZHOU < > >>>>>>>>>>>>> > >>>>>>>>>>>> [email protected]> > >>>>>>>> > >>>>>>>>> wrote: > >>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> What if you apt-get remove and apt-get install again? > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> 2013/9/27 Mike Tutkowski <[email protected]> > >>>>>>>>>>>>>> > >>>>>>>>>>>>>> Yeah, I had cleaned, rebuilt the codebase, regenerated > >>>>>>>>>>>>>>> the > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>> DEBs, > >>>>>>>>> > >>>>>>>>>> then > >>>>>>>>>>> > >>>>>>>>>>>> apt-get update and apt-get install cloudstack-agent. > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> I can try it again and see what happens. I thought I > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>> tried the > >>>>>>>> > >>>>>>>>> process > >>>>>>>>>>>> > >>>>>>>>>>>>> twice and got the same results. > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> I did a search for cloudstack-agent-upgrade on my file > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>> system > >>>>>>>> > >>>>>>>>> and > >>>>>>>>> > >>>>>>>>>> only > >>>>>>>>>>>> > >>>>>>>>>>>>> found references in the source directory. > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> On Fri, Sep 27, 2013 at 12:30 AM, Wei ZHOU < > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>> [email protected]> > >>>>>>>>>> > >>>>>>>>>>> wrote: > >>>>>>>>>>>>>> > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> It is correct. > >>>>>>>>>>>>>>>> Have you re-created the cloudstack-agent deb files and > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> uploaded > >>>>>>>>> > >>>>>>>>>> to > >>>>>>>>>>> > >>>>>>>>>>>> your > >>>>>>>>>>>>> > >>>>>>>>>>>>>> local apt repository? > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> 2013/9/27 Mike Tutkowski > >>>>>>>>>>>>>>>> <[email protected]> > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> Here you go: > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> mtutkowski@ubuntu:~/**cloudstack$ grep > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> cloudstack-agent-upgrade > >>>>>>>>>> > >>>>>>>>>>> debian/rules > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> install -D > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> agent/target/transformed/**cloudstack-agent-upgrade > >>>>>>>>> > >>>>>>>>>> $(DESTDIR)/usr/bin/cloudstack-**agent-upgrade > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> On Fri, Sep 27, 2013 at 12:20 AM, Wei ZHOU < > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> [email protected]> > >>>>>>>>>>>> > >>>>>>>>>>>>> wrote: > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> Did you build the latest source? > >>>>>>>>>>>>>>>>>> Could you paste the result of the following > >>>>>>>>>>>>>>>>>> command > >>>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> in > >>>>>>>> > >>>>>>>>> your > >>>>>>>>> > >>>>>>>>>> source > >>>>>>>>>>>>> > >>>>>>>>>>>>>> directory? > >>>>>>>>>>>>>>>>>> "grep cloudstack-agent-upgrade debian/rules" > >>>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> -- > >>>>>>>>>>>>>>>>> *Mike Tutkowski* > >>>>>>>>>>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>>>>>>>>>>>>> e: [email protected] > >>>>>>>>>>>>>>>>> o: 303.746.7302 > >>>>>>>>>>>>>>>>> Advancing the way the world uses the > >>>>>>>>>>>>>>>>> cloud< > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> http://solidfire.com/solution/**overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>>>>> > > >>>>>>>> > >>>>>>>>> *™* > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> -- > >>>>>>>>>>>>>>> *Mike Tutkowski* > >>>>>>>>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>>>>>>>>>>> e: [email protected] > >>>>>>>>>>>>>>> o: 303.746.7302 > >>>>>>>>>>>>>>> Advancing the way the world uses the > >>>>>>>>>>>>>>> cloud<http://solidfire.com/**solution/overview/?video=play > <http://solidfire.com/solution/overview/?video=play> > >>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>> *™* > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>>> > >>>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> -- > >>>>>>>>>>>>> *Mike Tutkowski* > >>>>>>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>>>>>>>>> e: [email protected] > >>>>>>>>>>>>> o: 303.746.7302 > >>>>>>>>>>>>> Advancing the way the world uses the > >>>>>>>>>>>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>>>>>>>>>> > > >>>>>>>>>>>>> *™* > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> -- > >>>>>>>>>>> *Mike Tutkowski* > >>>>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>>>>>>> e: [email protected] > >>>>>>>>>>> o: 303.746.7302 > >>>>>>>>>>> Advancing the way the world uses the > >>>>>>>>>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>>>>>>>> > > >>>>>>>>>>> *™* > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> -- > >>>>>>>>> *Mike Tutkowski* > >>>>>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>>>>> e: [email protected] > >>>>>>>>> o: 303.746.7302 > >>>>>>>>> Advancing the way the world uses the > >>>>>>>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>>>>>> > > >>>>>>>>> *™* > >>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> *Mike Tutkowski* > >>>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>>> e: [email protected] > >>>>>>> o: 303.746.7302 > >>>>>>> Advancing the way the world uses the > >>>>>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>>>> > > >>>>>>> *™* > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> *Mike Tutkowski* > >>>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>>> e: [email protected] > >>>>>> o: 303.746.7302 > >>>>>> Advancing the way the world uses the > >>>>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>>> > > >>>>>> *™* > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> *Mike Tutkowski* > >>>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>>> e: [email protected] > >>>>> o: 303.746.7302 > >>>>> Advancing the way the world uses the > >>>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>>> > > >>>>> *™* > >>>>> > >>>>> > >>>> > >>>> > >>>> -- > >>>> *Mike Tutkowski* > >>>> *Senior CloudStack Developer, SolidFire Inc.* > >>>> e: [email protected] > >>>> o: 303.746.7302 > >>>> Advancing the way the world uses the > >>>> cloud<http://solidfire.com/**solution/overview/?video=play< > http://solidfire.com/solution/overview/?video=play> > >>>> > > >>>> *™* > >>>> > >>>> > > > > > > -- > > *Mike Tutkowski* > > *Senior CloudStack Developer, SolidFire Inc.* > > e: [email protected] > > o: 303.746.7302 > > Advancing the way the world uses the > > cloud<http://solidfire.com/solution/overview/?video=play> > > *™* > -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: [email protected] o: 303.746.7302 Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play> *™*
