bragonznx edited a comment on issue #5051:
URL: https://github.com/apache/cloudstack/issues/5051#issuecomment-850792217


   Hi @weizhouapache
   Thanks for helping me with that.
   On the manager side I get an error 530 when I want to add this host
   
   Inside the manager log I get in loop something like that : 
   
   2021-05-29 08:01:34,205 DEBUG [c.c.a.t.Request] 
(AgentConnectTaskPool-3817:ctx-50ed930d) (logid:f2ed1564) Seq 0-0: Processing 
the first command  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1, 
[{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":"2","cpus":"32","speed":"3499","memory":"269075460096","dom0MinMemory":"1073741824","poolSync":"false","supportsClonedVolumes":"false","caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDetails":{"Host.OS.Kernel.Version":"5.4.0-73-generic","com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Host.OS.Version":"20.04","secured":"false","Host.OS":"Ubuntu"},"hostTags":[],"groupDetails":{},"type":"Routing","dataCenter":"85b30a41-6416-4ad2-8ceb-2c6a52bf9de5","pod":"632d2e63-e32e-4777-a8b1-9979c7cc1d71","cluster":"c6234b13-41f3-4cf0-ad38-5e2ea8c6e7c6","guid":"97851bbc-2e94-4ec0-972f-2ba927ad560f-LibvirtComputingResource","name":"hyper15","id":"0","version":"4.15.0.0","iqn":"iqn.1993-08.org.debian:01:4efdaa48c143",
 
"publicIpAddress":"192.168.70.206","publicNetmask":"255.255.255.0","publicMacAddress":"f4:03:43:a3:a2:d0","privateIpAddress":"192.168.70.206","privateMacAddress":"f4:03:43:a3:a2:d0","privateNetmask":"255.255.255.0","storageIpAddress":"192.168.70.206","storageNetmask":"255.255.255.0","storageMacAddress":"f4:03:43:a3:a2:d0","resourceName":"LibvirtComputingResource","gatewayIpAddress":"192.168.70.1","msHostList":"192.168.70.114","wait":"0"}},{"com.cloud.agent.api.StartupStorageCommand":{"totalSize":"(0
 bytes) 
0","poolInfo":{"uuid":"a2e605c9-b2ac-4dd9-9442-a666debbfc35","host":"192.168.70.206","localPath":"/var/lib/libvirt/images","hostPath":"/var/lib/libvirt/images","poolType":"Filesystem","capacityBytes":"(39.12
 GB) 42007232512","availableBytes":"(37.00 GB) 
39725334528"},"resourceType":"STORAGE_POOL","hostDetails":{},"type":"Storage","dataCenter":"85b30a41-6416-4ad2-8ceb-2c6a52bf9de5","pod":"632d2e63-e32e-4777-a8b1-9979c7cc1d71","guid":"97851bbc-2e94-4ec0-972f-2ba927ad560f-LibvirtComp
 
utingResource","name":"hyper15","id":"0","version":"4.15.0.0","resourceName":"LibvirtComputingResource","msHostList":"192.168.70.114","wait":"0"}}]
 }
   2021-05-29 08:01:34,208 DEBUG [c.c.r.ResourceManagerImpl] 
(AgentConnectTaskPool-3817:ctx-50ed930d) (logid:f2ed1564) Cannot parse 
85b30a41-6416-4ad2-8ceb-2c6a52bf9de5 into Long.
   2021-05-29 08:01:34,208 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentConnectTaskPool-3817:ctx-50ed930d) (logid:f2ed1564) Failed to handle host 
connection: 
   java.lang.IllegalArgumentException: Host 192.168.70.206 sent incorrect data 
center: 85b30a41-6416-4ad2-8ceb-2c6a52bf9de5
           at 
com.cloud.resource.ResourceManagerImpl.createHostVO(ResourceManagerImpl.java:1865)
           at 
com.cloud.resource.ResourceManagerImpl.createHostVOForConnectedAgent(ResourceManagerImpl.java:2278)
           at jdk.internal.reflect.GeneratedMethodAccessor90.invoke(Unknown 
Source)
           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 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
           at com.sun.proxy.$Proxy188.createHostVOForConnectedAgent(Unknown 
Source)
           at 
com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1097)
           at 
com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.runInContext(AgentManagerImpl.java:1194)
           at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
           at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
           at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.base/java.lang.Thread.run(Thread.java:829)
   2021-05-29 08:01:34,211 WARN  [c.c.a.m.AgentManagerImpl] 
(AgentConnectTaskPool-3817:ctx-50ed930d) (logid:f2ed1564) Unable to create 
attache for agent: Seq 0-0:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1, 
[{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":"2","cpus":"32","speed":"3499","memory":"269075460096","dom0MinMemory":"1073741824","poolSync":"false","supportsClonedVolumes":"false","caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDetails":{"Host.OS.Kernel.Version":"5.4.0-73-generic","com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Host.OS.Version":"20.04","secured":"false","Host.OS":"Ubuntu"},"hostTags":[],"groupDetails":{},"type":"Routing","dataCenter":"85b30a41-6416-4ad2-8ceb-2c6a52bf9de5","pod":"632d2e63-e32e-4777-a8b1-9979c7cc1d71","cluster":"c6234b13-41f3-4cf0-ad38-5e2ea8c6e7c6","guid":"97851bbc-2e94-4ec0-972f-2ba927ad560f-LibvirtComputingResource","name":"hyper15","id":"0","version":"4.15.0.0","iqn":"iqn.1993-08.org.debian:0
 
1:4efdaa48c143","publicIpAddress":"192.168.70.206","publicNetmask":"255.255.255.0","publicMacAddress":"f4:03:43:a3:a2:d0","privateIpAddress":"192.168.70.206","privateMacAddress":"f4:03:43:a3:a2:d0","privateNetmask":"255.255.255.0","storageIpAddress":"192.168.70.206","storageNetmask":"255.255.255.0","storageMacAddress":"f4:03:43:a3:a2:d0","resourceName":"LibvirtComputingResource","gatewayIpAddress":"192.168.70.1","msHostList":"192.168.70.114","wait":"0"}},{"com.cloud.agent.api.StartupStorageCommand":{"totalSize":"(0
 bytes) 
0","poolInfo":{"uuid":"a2e605c9-b2ac-4dd9-9442-a666debbfc35","host":"192.168.70.206","localPath":"/var/lib/libvirt/images","hostPath":"/var/lib/libvirt/images","poolType":"Filesystem","capacityBytes":"(39.12
 GB) 42007232512","availableBytes":"(37.00 GB) 
39725334528"},"resourceType":"STORAGE_POOL","hostDetails":{},"type":"Storage","dataCenter":"85b30a41-6416-4ad2-8ceb-2c6a52bf9de5","pod":"632d2e63-e32e-4777-a8b1-9979c7cc1d71","guid":"97851bbc-2e94-4ec0-972f-2ba927ad
 
560f-LibvirtComputingResource","name":"hyper15","id":"0","version":"4.15.0.0","resourceName":"LibvirtComputingResource","msHostList":"192.168.70.114","wait":"0"}}]
 }
   2021-05-29 08:01:34,254 WARN  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-2:null) (logid:) Throwing away a request because it came 
through as the first command on a connect: Seq 0--1:  { Cmd , MgmtId: -1, via: 
0, Ver: v1, Flags: 111, 
[{"com.cloud.agent.api.ShutdownCommand":{"reason":"sig.kill","removeHost":"false","wait":"0"}}]
 }
   2021-05-29 08:01:34,293 WARN  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-3:null) (logid:) Throwing away a request because it came 
through as the first command on a connect: Seq 0-1:  { Cmd , MgmtId: -1, via: 
0, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.PingRoutingWithNwGroupsCommand":{"newGroupStates":{},"_hostVmStateReport":{},"_gatewayAccessible":"true","_vnetAccessible":"true","hostType":"Routing","hostId":"0","wait":"0"}}]
 }
   2021-05-29 08:01:35,113 INFO  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-4:null) (logid:) Connection from /192.168.70.120 closed 
but no cleanup was done.
   2021-05-29 08:01:35,267 INFO  [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-5:null) (logid:) Connection from /192.168.70.206 closed 
but no cleanup was do


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

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


Reply via email to