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 93525172E5 for ; Thu, 24 Sep 2015 14:01:36 +0000 (UTC) Received: (qmail 49644 invoked by uid 500); 24 Sep 2015 14:01:26 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 49588 invoked by uid 500); 24 Sep 2015 14:01:26 -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 49573 invoked by uid 99); 24 Sep 2015 14:01:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2015 14:01:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 51E83E10BB; Thu, 24 Sep 2015 14:01:26 +0000 (UTC) From: resmo To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org Message-ID: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-8848: ensure power state is up... Content-Type: text/plain Date: Thu, 24 Sep 2015 14:01:26 +0000 (UTC) GitHub user resmo opened a pull request: https://github.com/apache/cloudstack/pull/885 CLOUDSTACK-8848: ensure power state is up to date when handling missi… …ng VMs in powerReport There 2 things which has been changed. * We look on power_state_update_time instead of update_time. Didn't make sense to me to look at the update_time. * Due DB update optimisation, powerState will only be updated if < MAX_CONSECUTIVE_SAME_STATE_UPDATE_COUNT; so we can not really rely on these information if we can not make sure these are up to date. You can merge this pull request into a Git repository by running: $ git pull https://github.com/resmo/cloudstack fix/CLOUDSTACK-8848 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/885.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 #885 ---- commit d235255a55883745bac99d5640c965a5a4172a81 Author: Rene Moser Date: 2015-09-24T13:59:36Z CLOUDSTACK-8848: ensure power state is up to date when handling missing VMs in powerReport There 2 things which has been changed. * We look on power_state_update_time instead of update_time. Didn't make sense to me to look at the update_time. * Due DB update optimisation, powerState will only be updated if < MAX_CONSECUTIVE_SAME_STATE_UPDATE_COUNT; so we can not really rely on these information if we can not make sure these are up to date. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---