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 20E3C1073B for ; Mon, 21 Oct 2013 21:59:33 +0000 (UTC) Received: (qmail 60621 invoked by uid 500); 21 Oct 2013 21:50:39 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 59539 invoked by uid 500); 21 Oct 2013 21:49:01 -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 59383 invoked by uid 500); 21 Oct 2013 21:48:45 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 58469 invoked by uid 99); 21 Oct 2013 21:47:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 21:47:13 +0000 Date: Mon, 21 Oct 2013 21:47:12 +0000 (UTC) From: "Animesh Chaturvedi (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-4742) Generate a useful error when using an invalid Compute Offering 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-4742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Animesh Chaturvedi updated CLOUDSTACK-4742: ------------------------------------------- ACS 4.3 feature freeze date is November 8th. Please provide update on your items as a comment. > Generate a useful error when using an invalid Compute Offering > --------------------------------------------------------------- > > Key: CLOUDSTACK-4742 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4742 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Affects Versions: 4.2.0 > Environment: Cloudstack 4.2, Advanced Zone with Security Groups, XenServer 6.2. > Reporter: Gerard Lynch > Fix For: 4.3.0 > > > Set up an Advanced Zone with Security Groups on XenServer 6.2. > Identify your hosts's phsyical CPU max speed - e.g. 2GHz. > Create a service offering that specifies higher e.g. : > - name: cpu_to_high > display_text: the cpu speed is too high > cpu_number: 1 > cpu_speed: 3750 > limit_cpu_use: 'false' > memory: 4096 > offer_ha: 'false' > storage_type: shared > Try and create an instance using it. > *Expected Result:* > A useful error message - e.g. not able to match the service offering. > *Actual Result:* > In the Gui: > Unable to create a deployment for VM[User|test] > In the Logs: > WARN [apache.cloudstack.alerts] (Job-Executor-1:job-26 = [ 30199e84-95d1-4c9f-a779-c1eec9603879 ]) alertType:: 8 // dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to deploy Vm with Id: 18, on Host with Id: null > INFO [user.vm.DeployVMCmd] (Job-Executor-1:job-26 = [ 30199e84-95d1-4c9f-a779-c1eec9603879 ]) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|web1]Scope=interface com.cloud.dc.DataCenter; id=1 > INFO [user.vm.DeployVMCmd] (Job-Executor-1:job-26 = [ 30199e84-95d1-4c9f-a779-c1eec9603879 ]) Unable to create a deployment for VM[User|web1] > com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|web1]Scope=interface com.cloud.dc.DataCenter; id=1 > at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:209) > at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3405) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966) > at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952) > 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:158) > at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531) > 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:1146) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:679) -- This message was sent by Atlassian JIRA (v6.1#6144)