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 2E37D18EBC for ; Sat, 19 Dec 2015 11:29:04 +0000 (UTC) Received: (qmail 34567 invoked by uid 500); 19 Dec 2015 11:28:58 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 34510 invoked by uid 500); 19 Dec 2015 11:28:58 -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 34498 invoked by uid 99); 19 Dec 2015 11:28:58 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Dec 2015 11:28:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A7D331A146F for ; Sat, 19 Dec 2015 11:28:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.4 X-Spam-Level: X-Spam-Status: No, score=0.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_EU=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=li.nux.ro Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fT7YOgR02UNh for ; Sat, 19 Dec 2015 11:28:42 +0000 (UTC) Received: from mailserver.lastdot.org (mailserver.lastdot.org [31.193.175.196]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id BAFFA42A6A for ; Sat, 19 Dec 2015 11:28:41 +0000 (UTC) Received: from localhost (localhost [IPv6:::1]) by mailserver.lastdot.org (Postfix) with ESMTP id 6DEC3EE62 for ; Sat, 19 Dec 2015 11:28:34 +0000 (GMT) Received: from mailserver.lastdot.org ([IPv6:::1]) by localhost (mailserver.lastdot.org [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 1sbacCGPw1Bh for ; Sat, 19 Dec 2015 11:28:32 +0000 (GMT) Received: from localhost (localhost [IPv6:::1]) by mailserver.lastdot.org (Postfix) with ESMTP id 764EDEE63 for ; Sat, 19 Dec 2015 11:28:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.9.2 mailserver.lastdot.org 764EDEE63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=li.nux.ro; s=C605E3A6-F3C6-11E3-AEB0-DFF9218DCAC4; t=1450524512; bh=uPK0Nwuldw8HyhHlYAS1Rr9YLdDp76XtJJ7asyiIOG4=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=wwfYCdF4eg0koCUpOV5EVbgjfBHsRXEhKHTuT4iMfb6FkhwDx0mu59TGi+Nrc4HQd eAle+p5ppGJ9BG/lK8dLaRVZcGu+plhvWGuNF+YRjvHWUmLYBVS4hp6MDR1RJj8bsr Xu4L0QSs4eM/tn+mS9e+wcYUkExthDCZGFMxBM5U= X-Virus-Scanned: amavisd-new at mailserver.lastdot.org Received: from mailserver.lastdot.org ([IPv6:::1]) by localhost (mailserver.lastdot.org [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id t-1PTGYVlUiP for ; Sat, 19 Dec 2015 11:28:32 +0000 (GMT) Received: from mailserver.lastdot.org (mailserver.lastdot.org [31.193.175.196]) by mailserver.lastdot.org (Postfix) with ESMTP id 4CA9FEE62 for ; Sat, 19 Dec 2015 11:28:32 +0000 (GMT) Date: Sat, 19 Dec 2015 11:28:31 +0000 (GMT) From: Nux! To: dev@cloudstack.apache.org Message-ID: <1723867696.96961.1450524511991.JavaMail.zimbra@li.nux.ro> In-Reply-To: <567522DC.8000803@widodh.nl> References: <567522DC.8000803@widodh.nl> Subject: Re: [BRAINDUMP][KVM] ISO attachment via HTTP to Instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.6.0_GA_1182 (ZimbraWebClient - FF38 (Linux)/8.6.0_GA_1182) Thread-Topic: ISO attachment via HTTP to Instance Thread-Index: NYiuwC579gIYHZinpeh97RKvCfNe1A== IMHO the idea is nice, but not sure if it's worth the effort. So we'll have primary storage, secondary storage and HTTP ISO library, might be a little bit confusing to users and the gain doesn't seem that big. If your NFS store is not working properly, then you already have other problems as well and you need to fix it. Now if we could have the whole secondary storage in HTTP/Webdav, that'd be early Xmas indeed. :-) Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ----- Original Message ----- > From: "Wido den Hollander" > To: dev@cloudstack.apache.org > Sent: Saturday, 19 December, 2015 09:26:52 > Subject: [BRAINDUMP][KVM] ISO attachment via HTTP to Instance > Hi, > > So I just ran into a issue (again) where a NFS mount was hanging and a > ISO could not be attached. Long story short, NFS goes through kernel > space and causes timeouts, hanging kernels, processes in status D, etc, etc. > > Qemu already supports attaching a CD-Rom via HTTP to a VM, I just tried: > http://widodh.o.auroraobjects.eu/qemu_cdrom_iso.png > > Thought about this for 30 minutes and figured I write it down here and > maybe work on this later. > > Idea would be to implement a HTTP storage pool in libvirt which could talk: > - S3 > - WebDAV > > It requires the HV to have direct access to the HTTP store, but we do > not need a staging NFS in between. > > Since the HTTP talks happen in userspace (Qemu) we can properly timeout > on hanging HTTP requests, get back a status-code if stuff doesn't work > instead of just waiting for ever. > > cURL is just a great HTTP library which can do this for us. > > With a pre-signed URL you can attach a S3 URL directly to Qemu and via > WebDAV you only need to give in the username+password (if required). > > On S3 you can also set the ACL of the ISO objects to Public, that would > rule out the need for a pre-signed URL. > > I would love to get rid of NFS here! > > This e-mail doesn't mean I'm about to implement it though :) The first > work would be libvirt. > > I still have some pending RBD work for libvirt, so maybe I'll take a > look at this. > > Wido