Ronan Oliveira de Andrade created CLOUDSTACK-5007:
-----------------------------------------------------
Summary: create a VM instance through a new allocation algorithm
hosts
Key: CLOUDSTACK-5007
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5007
Project: CloudStack
Issue Type: New Feature
Security Level: Public (Anyone can view this level - this is the default.)
Components: DevCloud
Affects Versions: 4.2.0
Reporter: Ronan Oliveira de Andrade
I create a new algorithm of allocations hosts, I copied the classes
FirstFitAllocator, FirstFitPlanner and FirstFitRoutingAllocator move to
LastFitAllocator, LastFitPlanner and FastFitRoutingAllocator . I update the
propriedade vm.deployment.planner to LastFitPlanner and vm.allocation.algorithm
to lastfit and restart the serve. In moment to create a instance below the
error.
I need to create others class ? I have that update some table in database ?
What is the table ? How to fix this problem.
INFO [network.security.SecurityGroupListener] (AgentConnectTaskPool-2:)
Received a host startup notification
INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-2:) Template
Sync found routing-1 already in the image store
INFO [storage.image.TemplateServiceImpl] (AgentConnectTaskPool-2:) Template
Sync found tiny Linux already in the image store
INFO [factory.annotation.AutowiredAnnotationBeanPostProcessor]
(25416810@qtp-12299469-2:) JSR-330 'javax.inject.Inject' annotation found and
supported for autowiring
WARN [apache.cloudstack.alerts] (Job-Executor-2:job-40) alertType:: 8 //
dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to
deploy Vm with Id: 19, on Host with Id: null
INFO [user.vm.DeployVMCmd] (Job-Executor-2:job-40)
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM[User|29fbac44-4057-4db5-acf3-ccaf7bb6b032]Scope=interface
com.cloud.dc.DataCenter; id=1
INFO [user.vm.DeployVMCmd] (Job-Executor-2:job-40) Unable to create a
deployment for VM[User|29fbac44-4057-4db5-acf3-ccaf7bb6b032]
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM[User|29fbac44-4057-4db5-acf3-ccaf7bb6b032]Scope=interface
com.cloud.dc.DataCenter; id=1
at
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:212)
at
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3307)
at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2868)
at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2854)
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:437)
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)
WARN [xen.resource.CitrixResourceBase] (DirectAgent-6:) Host 192.168.56.10
cannot do bridge firewalling
INFO [cloud.vm.UserVmManagerImpl] (UserVm-Scavenger-3:) Found 1 vms to expunge.
ERROR [network.element.SspElement] (UserVm-Scavenger-3:) ReservationContext was
null for NicProfile[26-19-null-10.0.3.104-null Ntwk[203|Guest|6]
INFO [network.security.SecurityGroupManagerImpl] (UserVm-Scavenger-3:)
Disassociated 1 network groups from uservm 19
INFO [cloud.ha.HighAvailabilityManagerImpl] (HA-Worker-2:work-19) Processing
HAWork[19-HA-4-Stopped-Scheduled]
INFO [cloud.ha.HighAvailabilityManagerImpl] (HA-Worker-2:work-19) HA on
VM[DomainRouter|r-4-VM]
INFO [cloud.ha.HighAvailabilityManagerImpl] (HA-Worker-2:work-19) VM
VM[DomainRouter|r-4-VM] has been changed. Current State = Running Previous
State = Stopped last updated = 38 previous updated = 35
INFO [cloud.ha.HighAvailabilityManagerImpl] (HA-Worker-2:work-19) Completed
HAWork[19-HA-4-Stopped-Scheduled]
--
This message was sent by Atlassian JIRA
(v6.1#6144)