Hi, please upload the whole log (agent.log) to some external service, so that we can download it. Before that, it would be good to activate DEBUG logging in the agent for any further attempt to add host - but for now, just share the agent.log as you have it.\ ALSO, attach the management-server.log
Please pay attention that older logs are gzipped, - share the correct date. Regards, On Wed, 10 Mar 2021 at 01:07, [email protected] <[email protected]> wrote: > Hello everyone, > > so I am taking a few more looks into CloudStack but facing some > problems where i would be thankfull for some advice / thought / > informations. > > As said above, i have a management-server up and running and now want > to go on with my first zone. > For the host I am currently working with Ubuntu Server 20.04 LTS. > I perform the basic configuration and then install the > cloudstack-agent. As of now i faced several problems (firewall not > properly configured after agent installation - or not running, some > bogus SSL certificate problems which i was able to solve with the > suggestions form here https://www.talkend.net/post/52285.html#r66143 ) > which i was able to figure out. > But now i have some trouble with joining the host to the zone. > > Here is the "last" log from the join to of the host. > > 2021-03-10 00:29:38,217 DEBUG [c.c.a.t.Request] > (AgentConnectTaskPool-8:ctx-544f3de1) (logid:3e10059e) Seq 0-0: > Processing the first command { Cmd , MgmtId: -1, via: 0, Ver: v1, > Flags: 1, > [{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":"2","cpus":"2","speed":"2112","memory":"3024039936","dom0MinMemory":"1073741824","poolSync":"false","supportsClonedVolumes":"false","caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDetails":{"Host.OS.Kernel.Version":"5.4.0-66-generic","com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Host.OS.Version":"20.04","secured":"false","Host.OS":"Ubuntu"},"hostTags":[],"groupDetails":{},"type":"Routing","dataCenter":"default","pod":"default","cluster":"default","guid":"-LibvirtComputingResource","name":"compute2.cloud.priv","id":"0","version":"4.15.0.0","iqn":"iqn.1993-08.org.debian:01:4efdaa48c143","privateIpAddress":"172.16.1.4","privateMacAddress":"00:0c:29:80:04:9e","privateNetmask":"255.255.255.0","storageIpAddress":"172.16.1.4","storageNetmask":"255.255.255.0","storageMacAddress":"00:0c:29:80:04:9e","resourceName":"LibvirtComputingResource","gatewayIpAddress":"172.16.1.3","msHostList":"172.16.1.1","wait":"0"}}] > } > 2021-03-10 00:29:38,221 DEBUG [c.c.r.ResourceManagerImpl] > (AgentConnectTaskPool-8:ctx-544f3de1) (logid:3e10059e) Cannot parse > default into Long. > 2021-03-10 00:29:38,222 DEBUG [c.c.a.m.AgentManagerImpl] > (AgentConnectTaskPool-8:ctx-544f3de1) (logid:3e10059e) Failed to > handle host connection: > java.lang.IllegalArgumentException: Host 172.16.1.4 sent incorrect > data center: default > > As far as i understand the logs, the good thing is that there are > several informations of the host transfered - so actually a basic > connectivity seems to be there. > What i don't get at the moment is the following: > > "dataCenter":"default","pod":"default","cluster":"default","guid":"- > > If my understanding is correct, the host sends his default values to > the management server (which are stored in the agent.properties if i > am correct). > It is completely understandable, that this host-join wont work, cause > the default values aren't matching with the values of the inital zone > on the management server. > > So my questions are: > Of cause how to solve this issue? > How is the process of joining a new host to the cluster? ( short > guess: Management-server connects to agent -> provides the agent with > needed parameters -> Agent tries to establish connection to > management-server --> provides data of the host machine and > status-messages) > Do i have to configure the values manualy in the actual host? > > Thanks in advance > -- Andrija Panić
