Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E941B10557 for ; Thu, 14 Nov 2013 18:45:23 +0000 (UTC) Received: (qmail 4639 invoked by uid 500); 14 Nov 2013 18:45:23 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 4010 invoked by uid 500); 14 Nov 2013 18:45:23 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 3878 invoked by uid 500); 14 Nov 2013 18:45:23 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 3874 invoked by uid 99); 14 Nov 2013 18:45:23 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 18:45:23 +0000 Date: Thu, 14 Nov 2013 18:45:22 +0000 (UTC) From: "edison su (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-4725) KVM agent fails to join if local pool is already registered MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13822748#comment-13822748 ] edison su commented on CLOUDSTACK-4725: --------------------------------------- The possible steps to reproduce: 1. installed 4.1.1, started a zone with local storage enabled, added a KVM host. 2. Upgraded to 4.2, agent won't connect, fails on the default storage plugin's initialize call for its local storage as mentioned in the initial post. The mgt server log should contain: "Another active pool with the same uuid already exists" But upgrade to 4.2.1, the agent should be able to connect to mgt server. > KVM agent fails to join if local pool is already registered > ----------------------------------------------------------- > > Key: CLOUDSTACK-4725 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4725 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: KVM > Affects Versions: 4.2.0 > Reporter: Marcus Sorensen > Assignee: edison su > Priority: Critical > Fix For: 4.2.1 > > > "Another active pool with the same uuid already exists" > This might be a regression, I believe we used to catch this case and/or check libvirt to see if pool was already established and just return if it is already there. Or maybe we only do that for non-local. > 2013-09-22 23:42:35,265 DEBUG [agent.manager.AgentManagerImpl] (AgentConnectTaskPool-396:null) Sending Connect to listener: LocalStoragePoolListener > 2013-09-22 23:42:35,266 DEBUG [datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl] (AgentConnectTaskPool-396:null) createPool Params @ scheme - Filesystem storageHost - 172.17.10.10 hostPath - /var/lib/libvirt/images port - -1 > 2013-09-22 23:42:35,267 DEBUG [datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl] (AgentConnectTaskPool-396:null) Another active pool with the same uuid already exists > 2013-09-22 23:42:35,267 WARN [cloud.storage.StorageManagerImpl] (AgentConnectTaskPool-396:null) Unable to setup the local storage pool for Host[-1-Routing] > com.cloud.utils.exception.CloudRuntimeException: Another active pool with the same uuid already exists > at org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.initialize(CloudStackPrimaryDataStoreLifeCycleImpl.java:319) > at com.cloud.storage.StorageManagerImpl.createLocalStorage(StorageManagerImpl.java:647) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at com.cloud.storage.LocalStoragePoolListener.processConnect(LocalStoragePoolListener.java:86) > at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587) > at com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1085) > at com.cloud.agent.manager.AgentManagerImpl.access$100(AgentManagerImpl.java:144) > at com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.run(AgentManagerImpl.java:1160) > 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:724) -- This message was sent by Atlassian JIRA (v6.1#6144)