Prachi Damle created CLOUDSTACK-4561:
----------------------------------------
Summary: DeployVm failed after upgrading from earlier version
having a private zone to 4.2
Key: CLOUDSTACK-4561
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4561
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: Prachi Damle
Assignee: Prachi Damle
Priority: Blocker
Fix For: 4.2.0
1. Upgraded from earlier CS version having a private zone to 4.2
2. After upgrade deploy VM failed.
3. Observed the below exception: Failed to deploy VM, Zone zone1 not available
for the user domain Acct[2-admin]
2013-08-29 14:15:16,480 DEBUG [cloud.network.NetworkModelImpl]
(catalina-exec-15:null) Service SecurityGroup is not supported in the network
id=204
2013-08-29 14:15:16,524 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-15:null) submit async job-12 = [
558412e7-bfdc-4c76-b775-2298bf4d383f ], details: AsyncJobVO {id:12, userId: 2,
accountId: 2, sessionKey: null, instanceType: VirtualMachine, instanceId: 5,
cmd: org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdOriginator:
null, cmdInfo:
{"sessionkey":"f2rCMyZ44a8fKjicWTJywoaSp/4\u003d","cmdEventType":"VM.CREATE","ctxUserId":"2","serviceOfferingId":"e28329c9-4ab8-419a-9699-131e8d703844","httpmethod":"GET","zoneId":"5dfdd7e0-c312-49eb-9fb6-b09d09def631","templateId":"4","response":"json","id":"5","networkIds":"caed3f96-c465-4e99-a67a-ca528a396dcc","hypervisor":"KVM","name":"v242","_":"1377765915488","ctxAccountId":"2","ctxStartEventId":"51","displayname":"v242"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 7672187322550,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-08-29 14:15:16,528 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null)
===END=== 10.252.192.18 -- GET
command=deployVirtualMachine&zoneId=5dfdd7e0-c312-49eb-9fb6-b09d09def631&templateId=4&hypervisor=KVM&serviceOfferingId=e28329c9-4ab8-419a-9699-131e8d703844&networkIds=caed3f96-c465-4e99-a67a-ca528a396dcc&displayname=v242&name=v242&response=json&sessionkey=f2rCMyZ44a8fKjicWTJywoaSp%2F4%3D&_=1377765915488
2013-08-29 14:15:16,534 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-1:job-12 = [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) Executing
org.apache.cloudstack.api.command.user.vm.DeployVMCmd for job-12 = [
558412e7-bfdc-4c76-b775-2298bf4d383f ]
2013-08-29 14:15:16,556 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-1:job-12
= [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) InfrastructureEntity name
is:com.cloud.offering.ServiceOffering
2013-08-29 14:15:16,556 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-1:job-12
= [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) ControlledEntity name
is:com.cloud.template.VirtualMachineTemplate
2013-08-29 14:15:16,564 DEBUG [cloud.api.ApiDispatcher] (Job-Executor-1:job-12
= [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) ControlledEntity name
is:com.cloud.network.Network
2013-08-29 14:15:16,638 DEBUG [cloud.network.NetworkModelImpl]
(Job-Executor-1:job-12 = [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) Service
SecurityGroup is not supported in the network id=204
2013-08-29 14:15:16,657 DEBUG [cloud.network.NetworkModelImpl]
(Job-Executor-1:job-12 = [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) Service
SecurityGroup is not supported in the network id=204
2013-08-29 14:15:16,713 DEBUG [cloud.vm.UserVmManagerImpl]
(Job-Executor-1:job-12 = [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) Destroying
vm VM[User|v242] as it failed to create on Host with Id:null
2013-08-29 14:15:16,730 DEBUG [cloud.capacity.CapacityManagerImpl]
(Job-Executor-1:job-12 = [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) 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-08-29 14:15:16,760 WARN [apache.cloudstack.alerts] (Job-Executor-1:job-12
= [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) alertType:: 8 // dataCenterId:: 1
// podId:: null // clusterId:: null // message:: Failed to deploy Vm with Id:
5, on Host with Id: null
2013-08-29 14:15:16,824 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-1:job-12 = [ 558412e7-bfdc-4c76-b775-2298bf4d383f ]) Unexpected
exception while executing org.apache.cloudstack.api.command.user.vm.DeployVMCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to deploy VM, Zone
zone1 not available for the user domain Acct[2-admin]
at
com.cloud.deploy.DeploymentPlanningManagerImpl.checkForNonDedicatedResources(DeploymentPlanningManagerImpl.java:479)
at
com.cloud.deploy.DeploymentPlanningManagerImpl.planDeployment(DeploymentPlanningManagerImpl.java:223)
at
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:187)
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:2
--
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