Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14A6911A09 for ; Thu, 28 Aug 2014 18:30:36 +0000 (UTC) Received: (qmail 55618 invoked by uid 500); 28 Aug 2014 18:30:35 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 55584 invoked by uid 500); 28 Aug 2014 18:30:35 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 55572 invoked by uid 99); 28 Aug 2014 18:30:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 18:30:34 +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 kirkkosinski@gmail.com designates 209.85.220.42 as permitted sender) Received: from [209.85.220.42] (HELO mail-pa0-f42.google.com) (209.85.220.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 18:30:06 +0000 Received: by mail-pa0-f42.google.com with SMTP id lf10so3591751pab.1 for ; Thu, 28 Aug 2014 11:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=trJKtFTMmXKEJgP8QsxVQqrAwxbiA86mtece0xzqK90=; b=b0LOaqC79sNGCiX9kqUmp/HtbZnb3Q9Egy2gUCgLv/NryvrCMWL3PdmXpwbl0Df8yR y8EzM4Dv69vbqNmkiaOdmH+guenfl5fgrrL7AH2RWLMv6PFtVU9EKK/C+P4u02JjdyHi jtHaD81QKbdEYuiOrIliOfLOC4egr5ZBr1SzRn0uElBe4L3hmtdqEumxPOb7q39/6TUr I0FYlCm2FyJZ/fGdhX8HGy/De4M793VV84KHyf3w49q19Q45j97UfFniFRuvXp9+AvpE agh1Y9hgqps5WJpVrFL0N5ZIMMm9NnWvUej8ZQA19S9pR0xPqb737MuSBZW5uD7VZ1Cf 0h3Q== X-Received: by 10.68.253.34 with SMTP id zx2mr8497225pbc.152.1409250602260; Thu, 28 Aug 2014 11:30:02 -0700 (PDT) Received: from [172.20.0.56] (cpe-75-82-86-141.socal.res.rr.com. [75.82.86.141]) by mx.google.com with ESMTPSA id ix8sm15162834pac.32.2014.08.28.11.30.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 11:30:01 -0700 (PDT) Message-ID: <53FF7526.9070208@gmail.com> Date: Thu, 28 Aug 2014 11:29:58 -0700 From: Kirk Kosinski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: users@cloudstack.apache.org Subject: Re: Stale datastores in database? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, what CS version is this, and can you upload more of the log? It seems likely to be a bug since the storage with removed != NULL in the database should be ignored. Best regards, Kirk On 08/28/2014 09:19 AM, Martin Emrich wrote: > Hi! > > I had to remove a XenServer host (the only one) from Cloudstack, removed it via GUI, worked well. > > Now I added the replacement machine, and tried to fire up an instance. But I got the message "Unable to locate datastore with id 1". > In the database, the storage_pool table contained two entries, the old id 1 and the current id 2. > I removed the host (and then replaced the EXT storage with a LVM storage because I misconfigured it), and added it again. Now I have three entries in the database, and creating an instance still fails. > > The database now looks like this: > > mysql> select * from storage_pool; > +----+-----------------------------+--------------------------------------+-----------+------+----------------+--------+------------+------------+----------------+--------------+-----------+------+---------------------+---------------------+-------------+-------------+-----------------------+-------+------------+---------+---------------+ > | id | name | uuid | pool_type | port | data_center_id | pod_id | cluster_id | used_bytes | capacity_bytes | host_address | user_info | path | created | removed | update_time | status | storage_provider_name | scope | hypervisor | managed | capacity_iops | > +----+-----------------------------+--------------------------------------+-----------+------+----------------+--------+------------+------------+----------------+--------------+-----------+------+---------------------+---------------------+-------------+-------------+-----------------------+-------+------------+---------+---------------+ > | 1 | esc-compute01 Local Storage | NULL | LVM | 0 | 1 | 1 | NULL | 4194304 | 1190452527104 | 10.8.0.65 | NULL | lvm | 2014-08-08 14:37:25 | 2014-08-18 08:33:43 | NULL | Maintenance | DefaultPrimary | HOST | NULL | 0 | NULL | > | 2 | esc-compute01 Local Storage | NULL | EXT | 0 | 1 | 1 | NULL | 6161043456 | 1171772600320 | 10.8.0.66 | NULL | ext | 2014-08-27 15:53:58 | 2014-08-28 15:50:41 | NULL | Maintenance | DefaultPrimary | HOST | NULL | 0 | NULL | > | 3 | esc-compute01 Local Storage | c38b4fa3-4bd4-05a3-4a11-e5e0f15fb9f5 | LVM | 0 | 1 | 1 | 1 | 4194304 | 1190452527104 | 10.8.0.66 | NULL | lvm | 2014-08-28 15:52:14 | NULL | NULL | Up | DefaultPrimary | HOST | NULL | 0 | NULL | > +----+-----------------------------+--------------------------------------+-----------+------+----------------+--------+------------+------------+----------------+--------------+-----------+------+---------------------+---------------------+-------------+-------------+-----------------------+-------+------------+---------+---------------+ > 3 rows in set (0.00 sec) > > In the GUI, I can only see one Primary Storage (the current "real" one, obviously ID 3). > > How can I fix my Cloudstack? As there are no instances yet, I could reinstall, but I'd like to understand what's going on... > > Thanks > > Martin Emrich >