DaanHoogland commented on pull request #4362:
URL: https://github.com/apache/cloudstack/pull/4362#issuecomment-921729221


   I created a template with no tag
   I have two hosts
   one host as no tags
   the other one has a tag "none"
   I deploy a VM
   result: 
   
![image](https://user-images.githubusercontent.com/2486961/133775287-a6abf492-9f70-4ea5-813c-f33ebff0fb52.png)
   ```
   2021-09-17 11:26:32,657 DEBUG [c.c.a.ApiServlet] 
(qtp769798433-15:ctx-9d0ad7da) (logid:30c456f4) ===START===  172.16.250.3 -- 
GET  
jobId=f29d9a58-fd07-4186-bc85-ea2cc60ac1f3&command=queryAsyncJobResult&response=json
   2021-09-17 11:26:32,661 DEBUG [c.c.a.ApiServer] 
(qtp769798433-15:ctx-9d0ad7da ctx-89672168) (logid:30c456f4) CIDRs from which 
account 'Acct[e423f3e7-16f6-11ec-a2d3-1e00b900043d-admin] -- Account {"id": 2, 
"name": "admin", "uuid": "e423f3e7-16f6-11ec-a2d3-1e00b900043d"}' is allowed to 
perform API calls: 0.0.0.0/0,::/0
   2021-09-17 11:26:32,669 DEBUG [c.c.a.ApiServlet] 
(qtp769798433-15:ctx-9d0ad7da ctx-89672168) (logid:30c456f4) ===END===  
172.16.250.3 -- GET  
jobId=f29d9a58-fd07-4186-bc85-ea2cc60ac1f3&command=queryAsyncJobResult&response=json
   2021-09-17 11:26:32,670 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) 
Updating resource Type = volume count for Account = 2 Operation = decreasing 
Amount = 1
   2021-09-17 11:26:32,673 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) 
Updating resource Type = primary_storage count for Account = 2 Operation = 
decreasing Amount = (50.00 MB) 52428800
   2021-09-17 11:26:32,680 WARN  [c.c.a.AlertManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) 
alertType=[8] dataCenterId=[1] podId=[null] clusterId=[null] message=[Failed to 
deploy Vm with Id: 7, on Host with Id: null].
   2021-09-17 11:26:32,683 WARN  [c.c.a.AlertManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) No 
recipients set in 'alert.email.addresses', skipping sending alert with subject: 
Failed to deploy Vm with Id: 7, on Host with Id: null and content: Failed to 
deploy Vm with Id: 7, on Host with Id: null
   2021-09-17 11:26:32,685 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) 
Updating resource Type = user_vm count for Account = 2 Operation = decreasing 
Amount = 1
   2021-09-17 11:26:32,689 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) 
Updating resource Type = cpu count for Account = 2 Operation = decreasing 
Amount = 1
   2021-09-17 11:26:32,692 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(API-Job-Executor-47:ctx-5239873f job-69 ctx-448d1fc4) (logid:f29d9a58) 
Updating resource Type = memory count for Account = 2 Operation = decreasing 
Amount = 512
   2021-09-17 11:26:32,699 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-47:ctx-5239873f job-69) (logid:f29d9a58) Unexpected exception 
while executing org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin
   com.cloud.utils.exception.CloudRuntimeException: No suitable host found for 
follow compute offering tags: 
           at 
com.cloud.host.dao.HostDaoImpl.findHostByComputeOfferings(HostDaoImpl.java:1255)
           at com.cloud.host.dao.HostDaoImpl.listByHostTag(HostDaoImpl.java:770)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at 
com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at com.sun.proxy.$Proxy46.listByHostTag(Unknown Source)
           at 
com.cloud.agent.manager.allocator.impl.FirstFitAllocator.allocateTo(FirstFitAllocator.java:177)
           at 
com.cloud.agent.manager.allocator.impl.FirstFitAllocator.allocateTo(FirstFitAllocator.java:106)
           at 
com.cloud.agent.manager.allocator.impl.FirstFitRoutingAllocator.allocateTo(FirstFitRoutingAllocator.java:41)
           at 
com.cloud.deploy.DeploymentPlanningManagerImpl.findSuitableHosts(DeploymentPlanningManagerImpl.java:1541)
           at 
com.cloud.deploy.DeploymentPlanningManagerImpl.checkClustersforDestination(DeploymentPlanningManagerImpl.java:1212)
           at 
com.cloud.deploy.DeploymentPlanningManagerImpl.planDeployment(DeploymentPlanningManagerImpl.java:539)
           at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:203)
           at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:202)
           at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:5090)
           at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:4617)
           at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:4606)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   ```
   not sure if these are new, but I see a number of 
   ```
   021-09-17 11:24:09,054 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-43:ctx-e44070b0 job-65) (logid:97bfaefa) Complete async 
job-65, jobStatus: FAILED, resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"431","errortext":"Invalid
 resource type: Host"}
   ```
   as well
   
   i'll update with more logs if i find out more.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to