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 AB6CAC77B for ; Tue, 2 Jul 2013 13:00:24 +0000 (UTC) Received: (qmail 5077 invoked by uid 500); 2 Jul 2013 13:00:24 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 5010 invoked by uid 500); 2 Jul 2013 13:00: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 4961 invoked by uid 500); 2 Jul 2013 13:00:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 4951 invoked by uid 99); 2 Jul 2013 13:00:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 13:00:21 +0000 Date: Tue, 2 Jul 2013 13:00:20 +0000 (UTC) From: "Sateesh Chodapuneedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-3152) addVmwareDc API call fails if called more than once to add same VMware DC to same cloudstack 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-3152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sateesh Chodapuneedi resolved CLOUDSTACK-3152. ---------------------------------------------- Resolution: Fixed Fix Version/s: 4.2.0 > addVmwareDc API call fails if called more than once to add same VMware DC to same cloudstack zone. > -------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3152 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3152 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: VMware > Affects Versions: 4.2.0 > Reporter: Sateesh Chodapuneedi > Assignee: Sateesh Chodapuneedi > Fix For: 4.2.0 > > > This can be fixed by making addVmwareDC API return success if it is detected that VMware DC and Cloudstack zone specified in paramters are already associated with each other. > Add cluster page of zone wizard calls 2 APIs. > 1) addVmwareDc > 2) addCluster > If call to addVmwareDc succeeds then UI proceeds to make a call to addCluster. If this call fails then "Fix errors" takes user to addCluster page of zone wizard again. > Again UI calls both the APIs. But this time addVmwareDc returns failure saying > "Something went wrong; please correct the following: Zone 1 is already associated with a VMware datacenter.". If we goto "Fix errors" the process continues and user will be stuck in infinite loop. -- 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