Hi, It appears there's something wrong in your /etc/cloudstack/agent/agent.properties, it can't find the passphrase to use cloud.jks as per:
2023-03-27 18:17:45,259 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Failed to find passphrase for keystore: cloud.jks You may re-add the host, or try this workaround: 1. backup and then delete the cloud.* files from /etc/cloudstack/agent/ directory 2. change auth strictness global setting to false (ca.plugin.root.auth.strictness) in cloudstack temporarily 3. restart cloudstack agent on the KVM host, and once it's connected, in CloudStack go to the UI-> infra ->host -> select the specific host -> click button to re-provision certficates (this will resetup the cloud.jks and certificates on the kvm host) 4. finally, reset the ca.plugin.root.auth.strictness back to true Regards. ________________________________ From: Technology Mail <technologyrss.m...@gmail.com> Sent: Sunday, August 27, 2023 13:33 To: Rohit Yadav <rohit.ya...@shapeblue.com>; us...@cloudstack.apache.org <us...@cloudstack.apache.org>; dev@cloudstack.apache.org <dev@cloudstack.apache.org> Subject: Re: Unable to add host error ACS Now I am using 4.18, Ubuntu 20.04 server. KVM server cloud and libvirt agent service not start. see error below: Error: ++++++++++++++++++ root@kvm:~# tail -f /var/log/cloudstack/agent/agent.log 2023-03-27 18:17:43,962 INFO [cloud.agent.AgentShell] (main:null) (logid:) Implementation Version is 4.18.0.0 2023-03-27 18:17:43,979 INFO [cloud.agent.AgentShell] (main:null) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties 2023-03-27 18:17:44,210 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to using properties file for storage 2023-03-27 18:17:44,223 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to the constant time backoff algorithm 2023-03-27 18:17:44,440 INFO [cloud.utils.LogUtils] (main:null) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml 2023-03-27 18:17:44,441 INFO [cloud.agent.AgentShell] (main:null) (logid:) Using default Java settings for IPv6 preference for agent connection 2023-03-27 18:17:44,951 INFO [cloud.agent.Agent] (main:null) (logid:) id is 2023-03-27 18:17:45,018 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) uefi properties file not found due to: Unable to find file uefi.properties. 2023-03-27 18:17:45,259 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Failed to find passphrase for keystore: cloud.jks 2023-03-27 18:17:45,280 INFO [kvm.resource.LibvirtConnection] (main:null) (logid:) No existing libvirtd connection found. Opening a new one +++++++++++++++++++++++++ Thanks. On 6/27/2021 6:45 PM, Rohit Yadav wrote: Thanks for sharing, glad the issue is resolved. The specific issue only affects 4.15.0.0 and older releases, this issue is however fixed in 4.15.1.0. After adding hosts you may actually revert the original sshd configuration. Regards. ________________________________ From: Technologyrss Mail <technologyrss.m...@gmail.com><mailto:technologyrss.m...@gmail.com> Sent: Sunday, June 27, 2021 13:03 To: Wei ZHOU <ustcweiz...@gmail.com><mailto:ustcweiz...@gmail.com>; dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org> <dev@cloudstack.apache.org><mailto:dev@cloudstack.apache.org> Subject: Re: Unable to add host error ACS Thank you so much! This 3 lines add into sshd_config file and restart sshd service then solved! PubkeyAcceptedKeyTypes=+ssh-dss HostKeyAlgorithms=+ssh-dss KexAlgorithms=+diffie-hellman-group1-sha1 I am always try to find out ACS properly working with latest OS with latest version. I have Tech blog with YouTube channel. Always I am appropriate your help & working as previous. --- Alamin On 6/27/2021 1:15 PM, Wei ZHOU wrote: Hi, Have you tried with http://docs.cloudstack.apache.org/en/4.15.0.0/releasenotes/about.html#workaround-for-adding-newer-kvm-hosts ? -Wei On Sun, 27 Jun 2021 at 02:18, Technologyrss Mail <technologyrss.m...@gmail.com<mailto:technologyrss.m...@gmail.com>> wrote: >From MGMT error log [cid:part3.64E24953.345219EA@gmail.com] >From KVM error log [cid:part4.5B07A141.1406078A@gmail.com] ---Alamin On 6/27/2021 12:24 AM, Wei ZHOU wrote: Are you able to ssh into host using username/password ? -Wei On Sat, 26 Jun 2021 at 20:02, Technologyrss Mail < technologyrss.m...@gmail.com<mailto:technologyrss.m...@gmail.com>> wrote: Please see below error, This is from ACS MGMT log error. 2021-06-25 18:29:23,782 WARN [c.c.a.d.ParamGenericValidationWorker] (qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Received unknown parameters for command addHost. Unknown parameters : clustertype 2021-06-25 18:29:23,812 INFO [c.c.r.ResourceManagerImpl] (qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Trying to add a new host at http://10.66.100.50 in data center 1 2021-06-25 18:29:24,034 WARN [c.c.h.k.d.LibvirtServerDiscoverer] (qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) can't setup agent, due to java.io.IOException: There was a problem while connecting to 10.66.100.50:22<http://10.66.100.50:22> - There was a problem while connecting to 10.66.100.50:22<http://10.66.100.50:22> 2021-06-25 18:29:24,037 WARN [c.c.r.ResourceManagerImpl] (qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Unable to find the server resources at http://10.66.100.50 2021-06-25 18:29:24,049 INFO [c.c.u.e.CSExceptionErrorCode] (qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions 2021-06-25 18:29:24,050 WARN [o.a.c.a.c.a.h.AddHostCmd] (qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Exception: com.cloud.exception.DiscoveryException: Unable to add the host --- Alamin On 6/26/2021 10:18 PM, Rohit Yadav wrote: Can you share logs, or the specific exceptions you're seeing if any? In case you've attached them to your mail, the ML may not allow large attachments. Are you using ACS with basic zone on Ubuntu 20.04, both as mgmt server and KVM host? In which case you may want to tail/investigate the logs on both the management server and the KVM agent(s). Regards. ________________________________ From: Technologyrss Mail <technologyrss.m...@gmail.com><mailto:technologyrss.m...@gmail.com> Sent: Saturday, June 26, 2021 04:52 To: dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org> <dev@cloudstack.apache.org><mailto:dev@cloudstack.apache.org> Subject: Unable to add host error ACS *Hi,* I am try to setup ACS basic zone but unable to add host. If possible please see my ACS log. My all server is Ubuntu 20.04. and all service are running properly. Please help me.... -- *Thanks & Regards.* Support Admin Facebook <htps://facebook.com/technologyrss<http://facebook.com/technologyrss>> | Twitter <https://twitter.com/technologyrss1><https://twitter.com/technologyrss1> | Website < https://technologyrss.com> 116/1 West Malibagh, D. I. T Road Dhaka-1217, Bangladesh *Mob :* +088 01716915504 *Email :* support.ad...@technologyrss.com<mailto:support.ad...@technologyrss.com> *Web :* www.technologyrss.com<http://www.technologyrss.com><http://www.technologyrss.com><http://www.technologyrss.com> < https://technologyrss.com> -- Thanks & Regards. Support Admin ________________________________ Facebook<https://www.facebook.com/TechnologyRSS> | Twitter<https://twitter.com/technologyrss1> | YouTube<https://www.youtube.com/channel/UCBq7qGqFEUe6ObVHMuxudTw> | LinkedIn<https://www.linkedin.com/company/technologyrss/> Address : 116/1 West Malibagh, D. I. T Road Dhaka-1217, Bangladesh Mob : +88 01716915504 Email : support.ad...@technologyrss.com<mailto:support.ad...@technologyrss.com> Web : www.technologyrss.com<http://www.technologyrss.com>