Re: Unable to add host error ACS

2023-08-28 Thread Technology Mail
(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 
*Sent:* Sunday, August 27, 2023 13:33
*To:* Rohit Yadav ; 
users@cloudstack.apache.org ; 
d...@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

Re: Unable to add host error ACS

2023-08-27 Thread Rohit Yadav
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 
Sent: Sunday, August 27, 2023 13:33
To: Rohit Yadav ; users@cloudstack.apache.org 
; d...@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 
<mailto:technologyrss.m...@gmail.com>
Sent: Sunday, June 27, 2021 13:03
To: Wei ZHOU <mailto:ustcweiz...@gmail.com>; 
d...@cloudstack.apache.org<mailto:d...@cloudstack.apache.org> 
<mailto:d...@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 
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.IOExcepti

Re: Unable to add host error ACS

2023-08-27 Thread Technology Mail
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 
*Sent:* Sunday, June 27, 2021 13:03
*To:* Wei ZHOU ; d...@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 
 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.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 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.

___