You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "chris snow (JIRA)" <ji...@apache.org> on 2014/02/26 21:13:23 UTC

[jira] [Commented] (CLOUDSTACK-4742) Generate a useful error when using an invalid Compute Offering

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-4742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913440#comment-13913440 ] 

chris snow commented on CLOUDSTACK-4742:
----------------------------------------

I have run into the same exception running the script 'deployDataCenter.py -i devcloud.cfg'.

The error message and exception provide me with little information as to what the problem may be.  Even stepping through the code base with a debugger hasn't proven to be very useful.

> 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: Future
>
>
> 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.5#6160)