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 766E510C01 for ; Tue, 16 Jul 2013 00:16:49 +0000 (UTC) Received: (qmail 11542 invoked by uid 500); 16 Jul 2013 00:16:49 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 11528 invoked by uid 500); 16 Jul 2013 00:16:49 -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 11494 invoked by uid 500); 16 Jul 2013 00:16:49 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 11483 invoked by uid 99); 16 Jul 2013 00:16:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 00:16:49 +0000 Date: Tue, 16 Jul 2013 00:16:49 +0000 (UTC) From: "Venkata Siva Vijayendra Bhamidipati (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-3514) [Automation] Vmware - Failed to download default template for first zone 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-3514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709240#comment-13709240 ] Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-3514: ----------------------------------------------------------------- Tried reproducing this on my setup with master and 4.2, but wasn't able to. System VMs and guest VMs came up fine. I created two advanced zones and separately enabled both in quick succession. However, the code itself has an unprotected reference that leads to the NPE and that must be fixed. I'll put up a patch for review. Not sure what causes the above condition, but with the fix in place the mgmt server will proceed since it won't hit the above NPE. > [Automation] Vmware - Failed to download default template for first zone > ------------------------------------------------------------------------- > > Key: CLOUDSTACK-3514 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3514 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Template, VMware > Affects Versions: 4.2.0 > Environment: 4.2 branch build > VMware > Reporter: Rayees Namathponnan > Assignee: Venkata Siva Vijayendra Bhamidipati > Priority: Blocker > Fix For: 4.2.0 > > Attachments: CLOUDSTACK-3514.rar, CLOUDSTACK-3514.rar > > > Steps to reproduce > Create Vmware advanced zone with 2 zones > Result > 2 Zones created sucessfully but failed download default template for first zone > mysql> select name, data_center_name from template_view where hypervisor_type = 'VMware' and state = 'Ready'; > +-------------------------------------+------------------+ > | name | data_center_name | > +-------------------------------------+------------------+ > | SystemVM Template (vSphere) | Adv-VMware-Zone1 | > | SystemVM Template (vSphere) | Adv-VMware-Zone2 | > | CentOS 5.3(64-bit) no GUI (vSphere) | Adv-VMware-Zone2 | > +-------------------------------------+------------------+ > 3 rows in set (0.00 sec) > Please see the attached catalina.out, seems system vmware (ssv name : v9) created for the second zone (Adv-VMware-Zone2) first then (ssvm name : vm20) second zone (Adv-VMware-Zone1), > also observed below massage, to skip download template > INFO [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:) Secondary storage vm s-20-VM is started > INFO [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:) Primary secondary storage is not even started, wait until next turn > INFO [storage.secondary.SecondaryStorageListener] (AgentConnectTaskPool-19:) Received a host startup notification com.cloud.agent.api.StartupSecondaryStorageCommand > INFO [network.security.SecurityGroupListener] (AgentConnectTaskPool-19:) Received a host startup notification > INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-19:) Template Sync found routing-8 already in the image store > INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-19:) Template Sync found 203-14-8d8b9015-3688-3cd7-8970-15ad1b8a1e8a already in the image store > INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-19:) Template Sync found 211-82-e0654140-451e-3a67-bf52-0a4fe4e178ed already in the image store > ERROR [agent.manager.AgentManagerImpl] (AgentConnectTaskPool-19:) Monitor DownloadListener says there is an error in the connect process for 17 due to null > java.lang.NullPointerException > at com.cloud.resourcelimit.ResourceLimitManagerImpl.recalculateAccountResourceCount(ResourceLimitManagerImpl.java:814) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at com.cloud.resourcelimit.ResourceLimitManagerImpl.recalculateResourceCount(ResourceLimitManagerImpl.java:702) > at org.apache.cloudstack.storage.image.TemplateServiceImpl.handleTemplateSync(TemplateServiceImpl.java:342) > at com.cloud.storage.download.DownloadListener.processConnect(DownloadListener.java:307) > at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:586) > at com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1086) > at com.cloud.agent.manager.AgentManagerImpl.access$100(AgentManagerImpl.java:144) > at com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.run(AgentManagerImpl.java:1161) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > INFO [agent.manager.AgentManagerImpl] (AgentConnectTaskPool-19:) Host 17 is disconnecting with event AgentDisconnected > Pattern not found (press RETURN) > Attaching DB Dump for your reference -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira