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 5D04BCF9C for ; Thu, 4 Jul 2013 11:11:48 +0000 (UTC) Received: (qmail 99228 invoked by uid 500); 4 Jul 2013 11:11:48 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 99198 invoked by uid 500); 4 Jul 2013 11:11:48 -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 99077 invoked by uid 500); 4 Jul 2013 11:11:47 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 99055 invoked by uid 99); 4 Jul 2013 11:11:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jul 2013 11:11:47 +0000 Date: Thu, 4 Jul 2013 11:11:47 +0000 (UTC) From: "prashant kumar mishra (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CLOUDSTACK-3187) cluster.(cpu/memory).allocated.capacity.disablethreshold in not considering overcommit factor;cluster is getting disable based on actual use 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-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] prashant kumar mishra closed CLOUDSTACK-3187. --------------------------------------------- tested on master stable branch passed > cluster.(cpu/memory).allocated.capacity.disablethreshold in not considering overcommit factor;cluster is getting disable based on actual use > --------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-3187 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3187 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: 4.2.0 > Reporter: prashant kumar mishra > Assignee: Harikrishna Patnala > Priority: Critical > Fix For: 4.2.0 > > Attachments: DB_Logs.rar > > > Steps to reproduce > --------------------------- > 1-set "cluster.(cpu/mem).allocated.capacity.disablethreshold" to 0.75 > 2-set (memory/cpu) overcommit ratio to 2 > 3-Try to use capacity(cpu/ram) more than what actual available by deploying some vms > Actual > --------- > Cluster is getting disabled after actual usage crosses(0.75) disable threshold > Expected > -------------- > cluster should get disabled based on over committed use not actual use > Logs > -------- > 2013-06-25 10:11:49,573 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-19) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 1 > 2013-06-25 10:11:49,593 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-19) Cannot allocate cluster list [1] for vm creation since their allocated percentage crosses the disable capacity threshold defined at each cluster/ at global value for capacity Type : 0, skipping these clusters > 2013-06-25 10:11:49,594 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-19) No clusters found after removing disabled clusters and clusters in avoid list, returning. > 2013-06-25 10:11:49,601 DEBUG [cloud.vm.UserVmManagerImpl] (Job-Executor-7:job-19) Destroying vm VM[User|mm4] as it failed to create on Host with Id:null > 2013-06-25 10:11:49,630 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-19) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null > 2013-06-25 10:11:49,654 WARN [apache.cloudstack.alerts] (Job-Executor-7:job-19) alertType:: 8 // dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to deploy Vm with Id: 8, on Host with Id: null > 2013-06-25 10:11:49,726 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-19) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|mm4]Scope=interface com.cloud.dc.DataCenter; id=1 > 2013-06-25 10:11:49,727 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-19) Unable to create a deployment for VM[User|mm4] > com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|mm4]Scope=interface com.cloud.dc.DataCenter; id=1 > at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:212) > at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3312) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2851) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2837) > at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) > at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 2013-06-25 10:11:49,729 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-7:job-19) Complete async job-19, jobStatus: 2, resultCode: 530, result: Error Code: 533 Error text: Unable to create a deployment for VM[User|mm4] > 2013-06-25 10:11:51,073 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-2:null) Ping from 3 -- 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