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 0E02410A21 for ; Sat, 25 Jan 2014 07:47:35 +0000 (UTC) Received: (qmail 32854 invoked by uid 500); 25 Jan 2014 07:47:34 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 32428 invoked by uid 500); 25 Jan 2014 07:47:32 -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 32420 invoked by uid 99); 25 Jan 2014 07:47:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jan 2014 07:47:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mike.tutkowski@solidfire.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jan 2014 07:47:24 +0000 Received: by mail-ob0-f169.google.com with SMTP id wo20so4634857obc.28 for ; Fri, 24 Jan 2014 23:47:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=RfkSsDtv6b158M5KaJfTyyMmTAGkDNulS701evkeees=; b=UBABK93M7M4qt3ut3MtVAiF/ETn+KXyEnts1ERxTfxZFMpk85utmNDVTrL2bRy8NbT RW3FTbU9RpH1DNZ+axeVEO2AgB2eoidaV4jAdnxp+iNoWE2k+KcNjlfmeQYaSM6GRmf7 EbeADvNADRIKF96g0huqSUy+PkR9eV7upXzd3cRlxFjZwKVvB4a31YFheH79FFjdM49J NmNtS2JWqRAoaNExL1byd/Wi3USJVdj/ED3KGEo7JsINp9/REb8IZJltC8eI4C112TUO /XGTucJJNtRKI2MD8LRikXc2Wcw6xNFSyjpV20xBftrYvrBDeEy0khax5frtEuqxOXZX Nfhg== X-Gm-Message-State: ALoCoQn/A29R7R6X+l9aVkDXXSkg+i+LL7kwLTUTcBfj1aBvsiHElNRkL9+at3i4OWkdQjN/tels MIME-Version: 1.0 X-Received: by 10.182.220.225 with SMTP id pz1mr22420obc.51.1390636023185; Fri, 24 Jan 2014 23:47:03 -0800 (PST) Received: by 10.182.114.164 with HTTP; Fri, 24 Jan 2014 23:47:03 -0800 (PST) In-Reply-To: References: Date: Sat, 25 Jan 2014 00:47:03 -0700 Message-ID: Subject: Re: Root-disk support for managed storage From: Mike Tutkowski To: "dev@cloudstack.apache.org" , Edison Su , Marcus Sorensen Content-Type: multipart/alternative; boundary=001a11c30fac2c996404f0c6ae6a X-Virus-Checked: Checked by ClamAV on apache.org --001a11c30fac2c996404f0c6ae6a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Just wanted to throw this out there before I went to bed: Since each root volume that belongs to managed storage will get its own copy of some template (assuming we're dealing with templates here and not an ISO), it is possible I may be able to circumvent a new table (or any existing table like template_spool_ref) entirely for managed storage. The purpose of a table like template_spool_ref appears to be mainly to make sure we're not downloading the sample template to an SR multiple times (and this doesn't apply in the case of managed storage since each root volume should have at most one template downloaded to it). Thoughts on that? Thanks! On Sat, Jan 25, 2014 at 12:39 AM, Mike Tutkowski < mike.tutkowski@solidfire.com> wrote: > Hi Edison and Marcus (and anyone else this may be of interest to), > > So, as of 4.3 I have added support for data disks for managed storage for > XenServer, VMware, and KVM (a 1:1 mapping between a CloudStack volume and= a > volume on a storage system). One of the most useful abilities this enable= s > is support for guaranteed storage quality of service in CloudStack. > > One of the areas I'm working on for CS 4.4 is root-disk support for > managed storage (both with templates and ISOs). > > I'd like to get your opinion about something. > > I noticed when we download a template to a XenServer SR that we leverage = a > table in the DB called template_spool_ref. > > This table keeps track of whether or not we've downloaded the template in > question to the SR in question already. > > The problem for managed storage is that the storage pool itself can be > associated with many SRs (not all necessarily in the same cluster even): > one SR per volume that belongs to the managed storage. > > What this means is every time a user wants to place a root disk (that use= s > a template) on managed storage, I will need to download a template to the > applicable SR (the template will never be there in advance). > > That is fine. The issue is that I cannot use the template_spool_ref table > because it is intended on mapping a template to a storage pool (1:1 mappi= ng > between the two) and managed storage can download the same template many > times. > > It seems I will need to add a new table to the DB to support this feature= . > > My table would allow a mapping between a template and a volume from > managed storage. > > Do you see an easier way around this or is this how you recommend I > proceed? > > Thanks! > > -- > *Mike Tutkowski* > *Senior CloudStack Developer, SolidFire Inc.* > e: mike.tutkowski@solidfire.com > o: 303.746.7302 > Advancing the way the world uses the cloud > *=99* > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=99* --001a11c30fac2c996404f0c6ae6a--