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 5E24110F68 for ; Mon, 12 Aug 2013 21:24:11 +0000 (UTC) Received: (qmail 82232 invoked by uid 500); 12 Aug 2013 21:24:10 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 82121 invoked by uid 500); 12 Aug 2013 21:24:10 -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 82113 invoked by uid 99); 12 Aug 2013 21:24:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 21:24:10 +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 (athena.apache.org: domain of aemneina@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 21:24:05 +0000 Received: by mail-wi0-f170.google.com with SMTP id hi8so2307409wib.5 for ; Mon, 12 Aug 2013 14:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=GIhXXmxuuOj23rGNdfbnVXFyI0rpGxLifaFZPceqi1o=; b=BuI8CO5hoda4jZYM36dQe72wQPf2trnoVSZMwfk+85IY/Gi9auQZwC5c+xI9+O8sFp po0GJF1V2FcrTv4+B3/YGQwFfPidXpFDtlJnuoJ8Y4SV1QYCiY6RrQ2JL7Tn+Wm2yqDg yBBLnn85UdtAJUf6iTSelcDbwzcdoI8K2iy2qurlGj9WfScD4u9Kk85PIWtmOz5ngk8/ VCGm7SFMTuZGpyn7Df3srtyzLSJotmo6Rf4ZUwmgitmessNABz1BbvkNLDtjqC3wySLY i8yEIF4vHmlg16Ax0PfedVY6UsSGxDJw6uuq/kK5z+YKVHHw63jgQix/02h9BjdZK+z/ AA3Q== X-Received: by 10.180.77.163 with SMTP id t3mr546255wiw.24.1376342624383; Mon, 12 Aug 2013 14:23:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.85.74 with HTTP; Mon, 12 Aug 2013 14:23:24 -0700 (PDT) Reply-To: aemneina@gmail.com In-Reply-To: References: From: Ahmad Emneina Date: Mon, 12 Aug 2013 14:23:24 -0700 Message-ID: Subject: Re: Template Folder Path (KVM/Libvirt) To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=f46d043bdfde373c4704e3c6bd6a X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bdfde373c4704e3c6bd6a Content-Type: text/plain; charset=ISO-8859-1 just dawned on me, you might have to forget the storage pools (if no vm's are running) on the hosts. Then reconnect the kvm agents (by restarting the service on the hosts or from cloudstack-> force reconnect command). they should get programmed correctly! On Mon, Aug 12, 2013 at 2:16 PM, Marty Sweet wrote: > Hi all, > > I've hit a problem that I have been chewing on for the past few hours. A > few months ago I changed the local storage path naming convention (examples > below) and updated the corresponding records in the cloudstack database > manually. This works great until old templates are used. I understand I > could use symlinks to resolve this issue but I would prefer to have a sane > dataset and a cleaner setup :) > > --> My Physical Volumes <-- > /mount/msa0-enc0-vm0 (OLD /mount/enc0-vm) > /mount/msa0-enc0-vm1 > /mount/msa0-enc1-vm0 (OLD /mount/enc1-vm) > /mount/msa0-enc1-vm1 > /mount/msa0-enc2-vm0 > > In the database there is no mention of /mount/enc0-vm or /mount/enc1-vm, > from doing a global search on all content (and by dumping the database > and grepping the output). However, libvirt still manages > to receive commands to add these templates. > > virStorageBackendFileSystemRefresh:889 : internal error cannot probe > backing volume info: /mount/enc1-vm/a0932ff2-e97c-446a-85f2-42ad0fb2cab7 > virStorageBackendProbeTarget:118 : internal error cannot probe backing > volume format: /mount/enc0-vm/8dc8d179-ac43-4475-812a-3bcc3e5d7b43 > > These UUID Paths do correspond to templates within the '* > template_spool_ref' *table which then *presumably *are linked to > `storage_pool` to pick out the folder 'path'? although this should give the > correct, new mappings. I can rule out a storage pool issue within libvirt > as I resolved that issue when I changed the naming convention and have > rechecked it. > > Unlike VM `volumes`, templates don't seem to possess a folder 'path', the > only possible field I can assume is `vm_template.checksum`, which is > obviously questionable, but would explain why a plain text search for the > old volumes is returning no results. > > So my question is: How does CS compose template paths and from what parts > within the cloudstack database? If these are encrypted (as I am assuming > the folder path is somewhere, what is the best way to change these values). > > Thanks in advance, > Marty Sweet (Rapid2214) > --f46d043bdfde373c4704e3c6bd6a--