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 51CB81165B for ; Thu, 31 Jul 2014 11:53:44 +0000 (UTC) Received: (qmail 61715 invoked by uid 500); 31 Jul 2014 11:53:43 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 61670 invoked by uid 500); 31 Jul 2014 11:53:43 -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 61656 invoked by uid 99); 31 Jul 2014 11:53:43 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2014 11:53:43 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 2099C1D9A67; Thu, 31 Jul 2014 11:53:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3461081121805924151==" MIME-Version: 1.0 Subject: Review Request 24152: CLOUDSTACK-7182: NPE while trying to deploy VMs in parallel in isolated network From: "Koushik Das" To: "Alena Prokharchyk" , "Sheng Yang" Cc: "Koushik Das" , "cloudstack" Date: Thu, 31 Jul 2014 11:53:30 -0000 Message-ID: <20140731115330.18793.75042@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Koushik Das" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/24152/ X-Sender: "Koushik Das" Reply-To: "Koushik Das" X-ReviewRequest-Repository: cloudstack-git --===============3461081121805924151== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/24152/ ----------------------------------------------------------- Review request for cloudstack, Alena Prokharchyk and Sheng Yang. Bugs: CLOUDSTACK-7182 https://issues.apache.org/jira/browse/CLOUDSTACK-7182 Repository: cloudstack-git Description ------- - Check to see if network is implemented changed from 'state == Implementing||Implemented' to 'state == Implemented'. The earlier check was a hack to prevent the issue described next. - At the time of implementing network (using implementNetwork() method), if the VR needs to be deployed then it follows the same path of regular VM deployment. This leads to a nested call to implementNetwork() while preparing VR nics. This flow creates issues in dealing with network state transitions. The original call puts network in "Implementing" state and then the nested call again tries to put it into same state resulting in issues. In order to avoid it, implementNetwork() call for VR is replaced with below code. Diffs ----- engine/orchestration/src/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java 64a1f3a Diff: https://reviews.apache.org/r/24152/diff/ Testing ------- Ran isolated network tests using simulator. Also ran the following VPC test using simulator: 1. created vpc, VR gets started as part of this 2. created network in the vpc 3. deployed vm in network created in step#2 Thanks, Koushik Das --===============3461081121805924151==--