cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "frank zhang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-3512) Baremetal - Unable to deploy second VM that points to Baremetal host, without host tag, or with same or different host tag than first VM
Date Mon, 22 Jul 2013 18:14:49 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-3512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

frank zhang resolved CLOUDSTACK-3512.
-------------------------------------

    Resolution: Won't Fix

>From the log, the failure was caused by PXE server not reachable, it has nothing to do
with host tag.
It cannot reproduce on my side. If you still have your setup, I can check PXE server network
connectivity.
                
> Baremetal - Unable to deploy second VM that points to Baremetal host, without host tag,
or with same or different host tag than first VM 
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3512
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3512
>             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
>         Environment: MS    10.223.195.117    build   CloudPlatform-4.2-180-rhel6.3.tar.gz
> host   baremetal      10.223.51.3        10.223.51.4
>            Reporter: angeline shen
>            Assignee: frank zhang
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: management-server.log.gz
>
>
> MS    10.223.195.117    build   CloudPlatform-4.2-180-rhel6.3.tar.gz
> host   baremetal      10.223.51.3        10.223.51.4
> 1. create basic zone baremetal network type. Add DHCP PXE server.
>  Add baremetal host with host tag: large.  Add template centos 6.2. 
>  create service offering with host tag: large  
>  Deploy VM with baremetal template centos 6.2 using this service offering  SUCCEED
> 2. Add second baremetal host with host tag: large1.  Add template centos 6.3. 
>  create service offering with host tag: large1  
>  Deploy VM with baremetal template centos 6.3 using this service offering  FAIL
> 3. Modify second baremetal host with host tag: large.  Add template centos 6.3. 
>  create service offering with host tag: large  
>  Deploy VM with baremetal template centos 6.3 using this service offering  FAIL
> 4. Modify second baremetal host without host tag.  Add template centos 6.3. 
>  create service offering without host tag.  
>  Deploy VM with baremetal template centos 6.3 using this service offering  FAIL
> MS log:
> 2013-07-12 17:50:36,513 WARN  [agent.manager.AgentManagerImpl] (StatsCollector-3:null)
Unsupported Command: Unsupported command issued:com.cloud.agent.api.GetVmStatsCommand.  Are
you sure you got the right ty
> pe of server?
> 2013-07-12 17:50:36,513 DEBUG [agent.manager.AgentManagerImpl] (StatsCollector-3:null)
Details from executing class com.cloud.agent.api.GetVmStatsCommand: Unsupported command issued:com.cloud.agent.api.GetVmS
> tatsCommand.  Are you sure you got the right type of server?
> 2013-07-12 17:50:36,513 WARN  [cloud.vm.UserVmManagerImpl] (StatsCollector-3:null) Unable
to obtain VM statistics.
> 2013-07-12 17:50:38,068 DEBUG [agent.manager.AgentAttache] (Job-Executor-8:job-30) Seq
1-765199742: Waited too long.
> 2013-07-12 17:50:38,068 INFO  [utils.exception.CSExceptionErrorCode] (Job-Executor-8:job-30)
Could not find exception: com.cloud.exception.OperationTimedoutException in error code list
for exceptions
> 2013-07-12 17:50:38,069 WARN  [agent.manager.AgentAttache] (Job-Executor-8:job-30) Seq
1-765199742: Timed out on Seq 1-765199742:  { Cmd , MgmtId: 7662288766739, via: 1, Ver: v1,
Flags: 100111, [{"com.cloud.a
> gent.api.baremetal.IpmISetBootDevCommand":{"bootDev":"pxe","wait":0}}] }
> 2013-07-12 17:50:38,069 DEBUG [agent.manager.AgentAttache] (Job-Executor-8:job-30) Seq
1-765199742: Cancelling.
> 2013-07-12 17:50:38,069 WARN  [baremetal.networkservice.BaremetalKickStartServiceImpl]
(Job-Executor-8:job-30) Cannot prepare PXE server
> com.cloud.exception.OperationTimedoutException: Commands 765199742 to Host 1 timed out
after 1800
>         at com.cloud.agent.manager.AgentAttache.send(AgentAttache.java:421)
>         at com.cloud.agent.manager.AgentManagerImpl.send(AgentManagerImpl.java:486)
>         at com.cloud.agent.manager.AgentManagerImpl.send(AgentManagerImpl.java:439)
>         at com.cloud.baremetal.networkservice.BaremetalKickStartServiceImpl.prepare(BaremetalKickStartServiceImpl.java:140)
>         at com.cloud.baremetal.networkservice.BaremetalPxeManagerImpl.prepare(BaremetalPxeManagerImpl.java:128)
>         at com.cloud.baremetal.networkservice.BaremetalPxeElement.prepare(BaremetalPxeElement.java:132)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at com.cloud.network.NetworkManagerImpl.prepareElement(NetworkManagerImpl.java:1987)
>         at com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2108)
>         at com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2049)
>         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:849)
>         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:557)
>         at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:243)
>         at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3323)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2883)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2869)
>         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:513)
>         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)
> 2013-07-12 17:50:38,070 ERROR [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-8:job-30)
Failed to start instance VM[User|z1vmlargeV43]
> com.cloud.utils.exception.CloudRuntimeException: Cannot prepare pxe server
>         at com.cloud.baremetal.networkservice.BaremetalPxeElement.prepare(BaremetalPxeElement.java:133)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at com.cloud.network.NetworkManagerImpl.prepareElement(NetworkManagerImpl.java:1987)
>         at com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2108)
>         at com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2049)
>         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:849)
>         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:557)
>         at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:243)
>         at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3323)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2883)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2869)
>         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:513)
>         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)
> 2013-07-12 17:50:38,077 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-8:job-30)
Cleaning up resources for the vm VM[User|z1vmlargeV43] in Starting state
> 2013-07-12 17:50:38,079 DEBUG [agent.transport.Request] (Job-Executor-8:job-30) Seq 1-765199773:
Sending  { Cmd , MgmtId: 7662288766739, via: 1, Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-2-9-VM","wait":0}}]
}
> 2013-07-12 17:50:38,079 DEBUG [agent.transport.Request] (Job-Executor-8:job-30) Seq 1-765199773:
Executing:  { Cmd , MgmtId: 7662288766739, via: 1, Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":false,"vmName":"i-2-9-VM","wait":0}}]
}
> ...........................
> 2013-07-12 17:50:39,329 DEBUG [cloud.vm.UserVmManagerImpl] (Job-Executor-8:job-30) Destroying
vm VM[User|z1vmlargeV43] as it failed to create on Host with Id:null
> 2013-07-12 17:50:39,343 DEBUG [baremetal.manager.BaremetalManagerImpl] (Job-Executor-8:job-30)
Skip oldState Stopped to newState Error transimtion
> 2013-07-12 17:50:39,343 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-8:job-30)
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-07-12 17:50:39,350 WARN  [apache.cloudstack.alerts] (Job-Executor-8:job-30)  alertType::
8 // dataCenterId:: 1 // podId:: 1 // clusterId:: null // message:: Failed to deploy Vm with
Id: 9, on Host with Id: null
> 2013-07-12 17:50:39,386 WARN  [user.vm.DeployVMCmd] (Job-Executor-8:job-30) Exception:

> com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host
1: Unable to start instance due to Cannot prepare pxe server
>         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:944)
>         at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:557)
>         at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:243)
>         at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3323)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2883)
>         at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2869)
>         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:513)
>         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)
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Cannot prepare pxe server
>         at com.cloud.baremetal.networkservice.BaremetalPxeElement.prepare(BaremetalPxeElement.java:133)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at com.cloud.network.NetworkManagerImpl.prepareElement(NetworkManagerImpl.java:1987)
>         at com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2108)
>         at com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2049)
>         at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:849)
>         ... 20 more
> 2013-07-12 17:50:39,387 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-8:job-30)
Complete async job-30, jobStatus: 2, resultCode: 530, result: Error Code: 534 Error text:
Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Cannot prepare pxe
server
> 2013-07-12 17:50:50,096 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
No hypervisor host added  in zone 1, wait until it is ready to launch secondary storage vm

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

Mime
View raw message