You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Gerard Lynch (JIRA)" <ji...@apache.org> on 2013/09/26 19:21:03 UTC

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

Gerard Lynch created CLOUDSTACK-4742:
----------------------------------------

             Summary: 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.2.0, Future, 4.2.1


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:
{code} 
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)
{code}

--
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