You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Technology Mail <te...@gmail.com> on 2023/08/27 08:03:48 UTC
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 <te...@gmail.com>
> *Sent:* Sunday, June 27, 2021 13:03
> *To:* Wei ZHOU <us...@gmail.com>; dev@cloudstack.apache.org
> <de...@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
>> <te...@gmail.com> wrote:
>>
>> From MGMT error log
>>
>> From KVM error log
>>
>> ---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.mail@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 athttp://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 to10.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 athttp://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<te...@gmail.com> <ma...@gmail.com>
>>>>> Sent: Saturday, June 26, 2021 04:52
>>>>> To:dev@cloudstack.apache.org <de...@cloudstack.apache.org> <ma...@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.admin@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.admin@technologyrss.com
*Web :* www.technologyrss.com
Re: Unable to add host error ACS
Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi again,
You may try to re-add the host and tail the /var/log/cloudstack/agent/* (usually there is a setup.log) to watchout for errors.
Is this a test/virtualised environment? You may want to run kvm-ok and ensure that /dev/kvm exists and works. It's possible the KVM host doesn't have /dev/kvm or missing any packages or libvirt isn't setup properly.
Regards.
________________________________
From: Wei ZHOU <us...@gmail.com>
Sent: Monday, August 28, 2023 12:31
To: dev@cloudstack.apache.org <de...@cloudstack.apache.org>
Subject: Re: Unable to add host error ACS
Hi,
If libvirtd does not work, please fix it before adding the host to
cloudstack.
You can check the output of `systemctl status libvirtd` or `journalctl -xeu
libvirtd`
-Wei
On Mon, 28 Aug 2023 at 08:56, Technology Mail <te...@gmail.com>
wrote:
> Thank you so much!,
> I followed your mansion step but error is same, Please see my MGMT
> server error like below:
>
>
Re: Unable to add host error ACS
Posted by Wei ZHOU <us...@gmail.com>.
Hi,
If libvirtd does not work, please fix it before adding the host to
cloudstack.
You can check the output of `systemctl status libvirtd` or `journalctl -xeu
libvirtd`
-Wei
On Mon, 28 Aug 2023 at 08:56, Technology Mail <te...@gmail.com>
wrote:
> Thank you so much!,
> I followed your mansion step but error is same, Please see my MGMT
> server error like below:
>
>
Re: Unable to add host error ACS
Posted by Technology Mail <te...@gmail.com>.
Thank you so much!,
I followed your mansion step but error is same, Please see my MGMT
server error like below:
+++++++++++++++++++++++++++++++++++++++++++++++++++++2023-08-28
06:44:08,771 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Timeout,
to wait for the host connecting to mgt svr, assuming it is failed
2023-08-28 06:44:08,787 WARN [c.c.r.ResourceManagerImpl]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Cannot
find the server resources at http://10.66.10.20
2023-08-28 06:44:08,792 INFO [c.c.u.e.CSExceptionErrorCode]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Could not
find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
2023-08-28 06:44:08,803 WARN [o.a.c.a.c.a.h.AddHostCmd]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host: Cannot
find the server resources at http://10.66.10.20
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:880)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:644)
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
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.$Proxy199.discoverHosts(Unknown Source)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:777)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:601)
at
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:347)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:154)
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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:151)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at
org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
at
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
at
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.base/java.lang.Thread.run(Thread.java:829)
2023-08-28 06:44:08,816 INFO [c.c.a.ApiServer]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Unable to
add the host: Cannot find the server resources at http://10.66.10.20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please help me 🙏
On 8/28/2023 11:26 AM, Rohit Yadav wrote:
> 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 <te...@gmail.com>
> *Sent:* Sunday, August 27, 2023 13:33
> *To:* Rohit Yadav <ro...@shapeblue.com>;
> users@cloudstack.apache.org <us...@cloudstack.apache.org>;
> dev@cloudstack.apache.org <de...@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 <te...@gmail.com>
>> <ma...@gmail.com>
>> *Sent:* Sunday, June 27, 2021 13:03
>> *To:* Wei ZHOU <us...@gmail.com>
>> <ma...@gmail.com>; dev@cloudstack.apache.org
>> <ma...@cloudstack.apache.org> <de...@cloudstack.apache.org>
>> <ma...@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
>>> <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.mail@gmail.com <ma...@gmail.com>>
>>> wrote:
>>>
>>> From MGMT error log
>>>
>>> From KVM error log
>>>
>>> ---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.mail@gmail.com <ma...@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 athttp://10.66.100.50 <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 to10.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 athttp://10.66.100.50 <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<te...@gmail.com> <ma...@gmail.com>
>>>>>> Sent: Saturday, June 26, 2021 04:52
>>>>>> To:dev@cloudstack.apache.org <ma...@cloudstack.apache.org> <de...@cloudstack.apache.org> <ma...@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 <https://technologyrss.com>>
>>>>>> 116/1 West Malibagh, D. I. T Road
>>>>>>
>>>>>> Dhaka-1217, Bangladesh
>>>>>>
>>>>>> *Mob :* +088 01716915504
>>>>>>
>>>>>> *Email :*support.admin@technologyrss.com <ma...@technologyrss.com>
>>>>>>
>>>>>> *Web :*www.technologyrss.com <http://www.technologyrss.com><http://www.technologyrss.com> <http://www.technologyrss.com> <
>>>>> https://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.admin@technologyrss.com
> <ma...@technologyrss.com>
>
> *Web :* www.technologyrss.com <http://www.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.admin@technologyrss.com
*Web :* www.technologyrss.com
Re: Unable to add host error ACS
Posted by Technology Mail <te...@gmail.com>.
Thank you so much!,
I followed your mansion step but error is same, Please see my MGMT
server error like below:
+++++++++++++++++++++++++++++++++++++++++++++++++++++2023-08-28
06:44:08,771 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Timeout,
to wait for the host connecting to mgt svr, assuming it is failed
2023-08-28 06:44:08,787 WARN [c.c.r.ResourceManagerImpl]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Cannot
find the server resources at http://10.66.10.20
2023-08-28 06:44:08,792 INFO [c.c.u.e.CSExceptionErrorCode]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Could not
find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
2023-08-28 06:44:08,803 WARN [o.a.c.a.c.a.h.AddHostCmd]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host: Cannot
find the server resources at http://10.66.10.20
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:880)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:644)
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
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.$Proxy199.discoverHosts(Unknown Source)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:777)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:601)
at
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:347)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:154)
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 com.cloud.api.ApiServlet.processRequest(ApiServlet.java:151)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:110)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at
org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
at
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
at
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
at
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.base/java.lang.Thread.run(Thread.java:829)
2023-08-28 06:44:08,816 INFO [c.c.a.ApiServer]
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Unable to
add the host: Cannot find the server resources at http://10.66.10.20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please help me 🙏
On 8/28/2023 11:26 AM, Rohit Yadav wrote:
> 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 <te...@gmail.com>
> *Sent:* Sunday, August 27, 2023 13:33
> *To:* Rohit Yadav <ro...@shapeblue.com>;
> users@cloudstack.apache.org <us...@cloudstack.apache.org>;
> dev@cloudstack.apache.org <de...@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 <te...@gmail.com>
>> <ma...@gmail.com>
>> *Sent:* Sunday, June 27, 2021 13:03
>> *To:* Wei ZHOU <us...@gmail.com>
>> <ma...@gmail.com>; dev@cloudstack.apache.org
>> <ma...@cloudstack.apache.org> <de...@cloudstack.apache.org>
>> <ma...@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
>>> <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.mail@gmail.com <ma...@gmail.com>>
>>> wrote:
>>>
>>> From MGMT error log
>>>
>>> From KVM error log
>>>
>>> ---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.mail@gmail.com <ma...@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 athttp://10.66.100.50 <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 to10.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 athttp://10.66.100.50 <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<te...@gmail.com> <ma...@gmail.com>
>>>>>> Sent: Saturday, June 26, 2021 04:52
>>>>>> To:dev@cloudstack.apache.org <ma...@cloudstack.apache.org> <de...@cloudstack.apache.org> <ma...@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 <https://technologyrss.com>>
>>>>>> 116/1 West Malibagh, D. I. T Road
>>>>>>
>>>>>> Dhaka-1217, Bangladesh
>>>>>>
>>>>>> *Mob :* +088 01716915504
>>>>>>
>>>>>> *Email :*support.admin@technologyrss.com <ma...@technologyrss.com>
>>>>>>
>>>>>> *Web :*www.technologyrss.com <http://www.technologyrss.com><http://www.technologyrss.com> <http://www.technologyrss.com> <
>>>>> https://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.admin@technologyrss.com
> <ma...@technologyrss.com>
>
> *Web :* www.technologyrss.com <http://www.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.admin@technologyrss.com
*Web :* www.technologyrss.com
Re: Unable to add host error ACS
Posted by Rohit Yadav <ro...@shapeblue.com>.
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 <te...@gmail.com>
Sent: Sunday, August 27, 2023 13:33
To: Rohit Yadav <ro...@shapeblue.com>; users@cloudstack.apache.org <us...@cloudstack.apache.org>; dev@cloudstack.apache.org <de...@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 <te...@gmail.com>
Sent: Sunday, June 27, 2021 13:03
To: Wei ZHOU <us...@gmail.com>; dev@cloudstack.apache.org<ma...@cloudstack.apache.org> <de...@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 <te...@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.mail@gmail.com<ma...@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 <te...@gmail.com>
Sent: Saturday, June 26, 2021 04:52
To: dev@cloudstack.apache.org<ma...@cloudstack.apache.org> <de...@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.admin@technologyrss.com<ma...@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.admin@technologyrss.com<ma...@technologyrss.com>
Web : www.technologyrss.com<http://www.technologyrss.com>
Re: Unable to add host error ACS
Posted by Rohit Yadav <ro...@shapeblue.com>.
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 <te...@gmail.com>
Sent: Sunday, August 27, 2023 13:33
To: Rohit Yadav <ro...@shapeblue.com>; users@cloudstack.apache.org <us...@cloudstack.apache.org>; dev@cloudstack.apache.org <de...@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 <te...@gmail.com>
Sent: Sunday, June 27, 2021 13:03
To: Wei ZHOU <us...@gmail.com>; dev@cloudstack.apache.org<ma...@cloudstack.apache.org> <de...@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 <te...@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.mail@gmail.com<ma...@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 <te...@gmail.com>
Sent: Saturday, June 26, 2021 04:52
To: dev@cloudstack.apache.org<ma...@cloudstack.apache.org> <de...@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.admin@technologyrss.com<ma...@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.admin@technologyrss.com<ma...@technologyrss.com>
Web : www.technologyrss.com<http://www.technologyrss.com>