Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 116BB106D2 for ; Tue, 11 Mar 2014 15:27:37 +0000 (UTC) Received: (qmail 33892 invoked by uid 500); 11 Mar 2014 15:27:36 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 33803 invoked by uid 500); 11 Mar 2014 15:27:35 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 33795 invoked by uid 99); 11 Mar 2014 15:27:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 15:27:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shadowsor@gmail.com designates 209.85.128.171 as permitted sender) Received: from [209.85.128.171] (HELO mail-ve0-f171.google.com) (209.85.128.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 15:27:29 +0000 Received: by mail-ve0-f171.google.com with SMTP id cz12so8947861veb.30 for ; Tue, 11 Mar 2014 08:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zQ7ZSFJYJQE34UzkDk6fbfuiRm593PN4K9ppwdtM4Dc=; b=Twi1bsjcaxX/B9QB8LPM/qH2ZouZx5SKCfc2JdfTlgDkj3RqkMaI7MI2MHcWgfO5NV ZTrhLKU079qzw8sljSz+JXVKGbg7v70lStaLliZCXX0yj3OGtkbLwUrIDMtciz/jBizc Eztm8CLZrvo+niUgrmhGVskscgW7N6D0YqhT4rnX73bgGvWFVHBtIhzw3/dZmHF1o/DV 9fMd1pqbJXNaFgFg1qlv+VN13Eebta8nw5M5EYqG3ZqmoOHFAqk2baBUKfX4GIf1TKEJ l03xe7USe5iDCRTgWYsSP6RG8gYZXSW3tykeYmk9wwhNb7etlpVhdURS1hjzyyRN9mv3 BFpA== MIME-Version: 1.0 X-Received: by 10.221.22.71 with SMTP id qv7mr539325vcb.34.1394551628148; Tue, 11 Mar 2014 08:27:08 -0700 (PDT) Received: by 10.52.118.103 with HTTP; Tue, 11 Mar 2014 08:27:08 -0700 (PDT) In-Reply-To: <531D9DA6.8050606@widodh.nl> References: <531B6863.5020809@widodh.nl> <531D9DA6.8050606@widodh.nl> Date: Tue, 11 Mar 2014 09:27:08 -0600 Message-ID: Subject: Re: master issue calling volume resize via libvirt - Was: libvirt-java upgrade From: Marcus To: "dev@cloudstack.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org The hard part is that there are so many libvirt versions and support for very fundamental elements varies wildly. I'd like the community to weigh in on it, I've felt for awhile that we should target a minimum libvirt version in addition to the specific platforms. In a sense we have, as in the past we've added features only as CentOS 6 got updates (it was behind Ubuntu, now it's ahead), but I think it's getting fairly common for people to ditch old, builtin libvirt versions simply because they lack so much functionality. For me the roadblock to saying something like "cloudstack 4.4 requires libvirt 1.0.0 or better" is making sure people have easy access to a newer libvirt on their platform, which sounds like it's not an issue for Ubuntu users. It sounds like there's a new issue with this that Lucian ran into, regarding the allocate flag passed in v.resize. See the last comments on this issue https://issues.apache.org/jira/browse/CLOUDSTACK-6181 On Mon, Mar 10, 2014 at 5:10 AM, Wido den Hollander wrote: > > > On 03/09/2014 01:19 AM, Marcus wrote: >> >> I imagine the new LTS will have it, but I'm not sure what our OS support >> policy is. > > > Well, I think we should also keep supporting 12.04 since it's not EOL until > 2017. > > But we can always say that we require the Ubuntu Cloud Archive to be used? > > wido > > >> On Mar 8, 2014 11:59 AM, "Wido den Hollander" wrote: >> >>> >>> >>> On 03/08/2014 12:32 AM, Marcus wrote: >>> >>>> On Fri, Mar 7, 2014 at 4:30 PM, Marcus wrote: >>>> >>>>> Hrm... sent instead of pasted. Commit >>>>> >>>>> commit 3989d6c48118f31464c87c71b6279a11eb13eb35 >>>>> Author: Wido den Hollander >>>>> Date: Mon Feb 3 17:04:11 2014 +0100 >>>>> >>>>> kvm: Resize volumes using libvirt >>>>> >>>>> virsh blockresize works on this system, so I can only assume that the >>>>> libvirt.so.0.9.8 that ships with Ubuntu 12.04 doesn't support >>>>> virStorageVolResize. >>>>> >>>>> # strings /usr/lib/libvirt.so.0.9.8 | grep virStorageVolR >>>>> virStorageVolRef >>>>> virStorageVolRef >>>>> virStorageVolRef >>>>> >>>> >>> Hmm, that's a good one. I'm not able to check this right now, but on all >>> my test systems I run libvirt 1.0.2 from the Ubuntu Cloud Archive, so >>> that >>> could be the problem. >>> >>> Wido >>> >>> >>>>> On Fri, Mar 7, 2014 at 4:28 PM, Marcus wrote: >>>>> >>>>>> Wido, >>>>>> I'm seeing this in Ubuntu 12.04 after commit >>>>>> >>>>>> >>>>>> >>>>>> 2014-02-10 01:19:16,793 DEBUG [kvm.resource.LibvirtComputingResource] >>>>>> (agentRequest-Handler-2:null) Volume >>>>>> /mnt/2fe9a944-505e-38cb-bf87-72623634be4a/e47e6501-c8ae- >>>>>> 41a7-9abc-0f7fdad5fb30 >>>>>> can be resized by libvirt. Asking libvirt to resize the volume. >>>>>> 2014-02-10 01:19:16,800 WARN [cloud.agent.Agent] >>>>>> (agentRequest-Handler-2:null) Caught: >>>>>> java.lang.UnsatisfiedLinkError: Error looking up function >>>>>> 'virStorageVolResize': /usr/lib/libvirt.so.0.9.8: undefined symbol: >>>>>> virStorageVolResize >>>>>> at com.sun.jna.Function.(Function.java:208) >>>>>> at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:536) >>>>>> at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:513) >>>>>> at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:499) >>>>>> at com.sun.jna.Library$Handler.invoke(Library.java:199) >>>>>> at com.sun.proxy.$Proxy0.virStorageVolResize(Unknown Source) >>>>>> at org.libvirt.StorageVol.resize(Unknown Source) >>>>>> at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute( >>>>>> LibvirtComputingResource.java:1808) >>>>>> at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource. >>>>>> executeRequest(LibvirtComputingResource.java:1331) >>>>>> at com.cloud.agent.Agent.processRequest(Agent.java:501) >>>>>> at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:808) >>>>>> at com.cloud.utils.nio.Task.run(Task.java:84) >>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker( >>>>>> ThreadPoolExecutor.java:1145) >>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run( >>>>>> ThreadPoolExecutor.java:615) >>>>>> at java.lang.Thread.run(Thread.java:744) >>>>>> >>>>> >> >