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 3302010AF7 for ; Thu, 13 Mar 2014 07:31:51 +0000 (UTC) Received: (qmail 27692 invoked by uid 500); 13 Mar 2014 07:31:50 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 27233 invoked by uid 500); 13 Mar 2014 07:31:48 -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 27218 invoked by uid 99); 13 Mar 2014 07:31:47 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 07:31:47 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 2A23B1D427C; Thu, 13 Mar 2014 07:31:45 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============2653158134206618342==" MIME-Version: 1.0 Subject: Re: Review Request 17736: CLOUDSTACK-5999: Virtual Router does not start if Guest VM is rebooted from CloudStack From: "Saksham Srivastava" To: "Murali Reddy" , "John Burwell" Cc: "Saksham Srivastava" , "cloudstack" Date: Thu, 13 Mar 2014 07:31:45 -0000 Message-ID: <20140313073145.32376.24574@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Saksham Srivastava" X-ReviewGroup: cloudstack X-ReviewRequest-URL: https://reviews.apache.org/r/17736/ X-Sender: "Saksham Srivastava" References: <20140313070209.32376.43970@reviews.apache.org> In-Reply-To: <20140313070209.32376.43970@reviews.apache.org> Reply-To: "Saksham Srivastava" X-ReviewRequest-Repository: cloudstack-git --===============2653158134206618342== 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/17736/ ----------------------------------------------------------- (Updated March 13, 2014, 7:31 a.m.) Review request for cloudstack, John Burwell and Murali Reddy. Bugs: CLOUDSTACK-5999 https://issues.apache.org/jira/browse/CLOUDSTACK-5999 Repository: cloudstack-git Description ------- When a guest is rebooted from CloudStack, if the virtual router managing the guest network of that guest is down, CloudStack will not start the virtual router. However the router is started in case the guest vm is stopped and then started. To mantain similarity between the 2 process it is necessary to start the VR in case it is not running. The fix will address the same. Diffs ----- server/src/com/cloud/vm/UserVmManagerImpl.java be00aa8 Diff: https://reviews.apache.org/r/17736/diff/ Testing ------- Testing: 1) vm in a single guest network : vm Reboot : If the VR is stopped: VR is first started and then the VM reboots. vm Reboot : If the VR is running, VM reboots as it used to. vm Stop/Start continue to work the same. 2) vm having nics in multi networks : vm Reboot : If VR in any/all network is stopped: VRs are first started and then the VM reboots. vm Reboot : If the VRs are running, VM reboots as it used to. vm Stop/Start continue to work the same. 3) vpc : Tested the above scenarios for vpc also, works fine. Patch applies cleanly. Build passes succesfully. FindBug is passed. Rebased against latest master. Thanks, Saksham Srivastava --===============2653158134206618342==--