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 E0547E122 for ; Wed, 29 May 2013 08:51:25 +0000 (UTC) Received: (qmail 52736 invoked by uid 500); 29 May 2013 08:51:25 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 52647 invoked by uid 500); 29 May 2013 08:51:25 -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 52630 invoked by uid 500); 29 May 2013 08:51:25 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 52613 invoked by uid 99); 29 May 2013 08:51:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2013 08:51:25 +0000 Date: Wed, 29 May 2013 08:51:19 +0000 (UTC) From: "Rajesh Battala (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-2666) Host is getting dedicated to a Account even when preferred implicit dedication is used. 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-2666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajesh Battala updated CLOUDSTACK-2666: --------------------------------------- Description: https://issues.apache.org/jira/browse/CLOUDSTACK-26661)Created a Xen Advanced Zone setup with one cluster and hosts. 2)The host1 has the system VM's deployed and a VM with the root domain. 3)Then created two accounts kiran and kiran2 respectively. 4)Deployed VM using the preferred implicit dedication for the Account kiran. 5)Then tried to deploy a VM fro the account kiran2 using the preferred implicit service offering. 6)The VM deployment fails saying insufficient resources The error message is as below "2013-05-24 17:49:33,285 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-26) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|prefacc2]Scope=interface com.cloud.dc.DataCenter; id=1 2013-05-24 17:49:33,287 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-26) Unable to create a deployment for VM[User|prefacc2] com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|prefacc2]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:3206) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2745) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2731) 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)" Ideally saying the host should not be dedicated to the account kiran but this is getting dedicated which is causing the vm creation failure for the account kiran2. The db shows the host in dedicated state. "mysql> select * from op_host_planner_reservation; +----+----------------+--------+------------+---------+----------------+ | id | data_center_id | pod_id | cluster_id | host_id | resource_usage | +----+----------------+--------+------------+---------+----------------+ | 1 | 1 | 1 | 1 | 1 | Shared | | 2 | 1 | 1 | 1 | 5 | Dedicated | +----+----------------+--------+------------+---------+----------------+ 2 rows in set (0.00 sec)" was: 1)Created a Xen Advanced Zone setup with one cluster and hosts. 2)The host1 has the system VM's deployed and a VM with the root domain. 3)Then created two accounts kiran and kiran2 respectively. 4)Deployed VM using the preferred implicit dedication for the Account kiran. 5)Then tried to deploy a VM fro the account kiran2 using the preferred implicit service offering. 6)The VM deployment fails saying insufficient resources The error message is as below "2013-05-24 17:49:33,285 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-26) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|prefacc2]Scope=interface com.cloud.dc.DataCenter; id=1 2013-05-24 17:49:33,287 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-26) Unable to create a deployment for VM[User|prefacc2] com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|prefacc2]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:3206) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2745) at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2731) 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)" Ideally saying the host should not be dedicated to the account kiran but this is getting dedicated which is causing the vm creation failure for the account kiran2. The db shows the host in dedicated state. "mysql> select * from op_host_planner_reservation; +----+----------------+--------+------------+---------+----------------+ | id | data_center_id | pod_id | cluster_id | host_id | resource_usage | +----+----------------+--------+------------+---------+----------------+ | 1 | 1 | 1 | 1 | 1 | Shared | | 2 | 1 | 1 | 1 | 5 | Dedicated | +----+----------------+--------+------------+---------+----------------+ 2 rows in set (0.00 sec)" > Host is getting dedicated to a Account even when preferred implicit dedication is used. > --------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-2666 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2666 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Kiran Koneti > Assignee: Devdeep Singh > Priority: Blocker > > https://issues.apache.org/jira/browse/CLOUDSTACK-26661)Created a Xen Advanced Zone setup with one cluster and hosts. > 2)The host1 has the system VM's deployed and a VM with the root domain. > 3)Then created two accounts kiran and kiran2 respectively. > 4)Deployed VM using the preferred implicit dedication for the Account kiran. > 5)Then tried to deploy a VM fro the account kiran2 using the preferred implicit service offering. > 6)The VM deployment fails saying insufficient resources > The error message is as below > "2013-05-24 17:49:33,285 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-26) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|prefacc2]Scope=interface com.cloud.dc.DataCenter; id=1 > 2013-05-24 17:49:33,287 INFO [user.vm.DeployVMCmd] (Job-Executor-7:job-26) Unable to create a deployment for VM[User|prefacc2] > com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|prefacc2]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:3206) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2745) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2731) > 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)" > Ideally saying the host should not be dedicated to the account kiran but this is getting dedicated which is causing the vm creation failure for the account kiran2. > The db shows the host in dedicated state. > "mysql> select * from op_host_planner_reservation; > +----+----------------+--------+------------+---------+----------------+ > | id | data_center_id | pod_id | cluster_id | host_id | resource_usage | > +----+----------------+--------+------------+---------+----------------+ > | 1 | 1 | 1 | 1 | 1 | Shared | > | 2 | 1 | 1 | 1 | 5 | Dedicated | > +----+----------------+--------+------------+---------+----------------+ > 2 rows in set (0.00 sec)" -- 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