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 4786F188A6 for ; Wed, 16 Dec 2015 12:34:47 +0000 (UTC) Received: (qmail 48169 invoked by uid 500); 16 Dec 2015 12:34:47 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 48147 invoked by uid 500); 16 Dec 2015 12:34:46 -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 48137 invoked by uid 500); 16 Dec 2015 12:34:46 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 48134 invoked by uid 99); 16 Dec 2015 12:34:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2015 12:34:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A13EA2C1F6C for ; Wed, 16 Dec 2015 12:34:46 +0000 (UTC) Date: Wed, 16 Dec 2015 12:34:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9182) Some running VMs turned off on manual migration when auto migration failed while host preparing for maintenance 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-9182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059927#comment-15059927 ] ASF GitHub Bot commented on CLOUDSTACK-9182: -------------------------------------------- GitHub user sureshanaparti opened a pull request: https://github.com/apache/cloudstack/pull/1252 CLOUDSTACK-9182: Some running VMs turned off on manual migration when auto migration failed while host preparing for maintenance. CLOUDSTACK-9182: Some running VMs turned off on manual migration when auto migration failed while host preparing for maintenance. Fix: Block VMOperations if Host in PrepareForMaintenance mode. VM operations (Stop, Reboot, Destroy, Migrate to host) are not allowed when Host in PrepareForMaintenance mode. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sureshanaparti/cloudstack CLOUDSTACK-9182 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/1252.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1252 ---- commit 98186f9e6a3f659ac294a30b2243070961c167fe Author: Suresh Kumar Anaparti Date: 2015-12-16T12:31:30Z CLOUDSTACK-9182: Some running VMs turned off on manual migration when auto migration failed while host preparing for maintenance. Fix: Block VMOperations if Host in PrepareForMaintenance mode. VM operations (Stop, Reboot, Destroy, Migrate to host) are not allowed when Host in PrepareForMaintenance mode. ---- > Some running VMs turned off on manual migration when auto migration failed while host preparing for maintenance > --------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-9182 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9182 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server, VMware > Affects Versions: 4.5.2 > Environment: vCenter 5.0 > Reporter: Suresh Kumar Anaparti > Assignee: Suresh Kumar Anaparti > > When a host is put into maintenance, CloudStack schedules migration for all the running VMs present on the host. This scheduling is managed by High Availability worker thread. And every time a migration fails, CloudStack re-schedules the migration to be executed after 10 minutes. > In this case, CloudStack fails to migrate some VMs automatically while host is preparing for maintenance and admin tried to migrate them manually. All these VMs are turned off after manual migration. > Steps: > - Put a host into maintenance > - Scheduled migration failed for a VM and CloudStack re-scheduled it. > - Before the next scheduled migration, manually migrate the VM to a different host. > When the next scheduled migration was started by the HA work, it failed because there was a mismatch between the source host saved in the HA work job and the actual source host. If VM migration fails due to mismatch then the VM is stopped on the host it resides on. -- This message was sent by Atlassian JIRA (v6.3.4#6332)