stop cloudstack-agent and re-add the host?
在 2024年1月23日星期二,Francisco Arencibia Quesada <arencibia.franci...@gmail.com> 写道: > It fails, because cloudstack-agent is restarting continuously > > On Tue, 23 Jan 2024, 20:22 Wei ZHOU, <ustcweiz...@gmail.com> wrote: > > > Have you added that host to cloudstack? > > > > -Wei > > > > 在 2024年1月23日星期二,Francisco Arencibia Quesada < > arencibia.franci...@gmail.com > > > > > 写道: > > > > > I had to install cloudstack-agent, and that error disappeared. I'm > using > > > ubuntu 22.04, > > > now I have a new error about cloudstack-agent configuration: > > > > > > root@enc-iaas-03-mad3-c:/etc/cloudstack/agent# tail -f /var/log/syslog > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: log4j:WARN Please > > > initialize the log4j system properly. > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: log4j:WARN See > > > http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: INFO > > > [cloud.agent.AgentShell] (main:) (logid:) Agent started > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: INFO > > > [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is > > > 4.18.1.0 > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: INFO > > > [cloud.agent.AgentShell] (main:) (logid:) agent.properties found at > > > /etc/cloudstack/agent/agent.properties > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: SLF4J: Failed to load > > class > > > "org.slf4j.impl.StaticLoggerBinder". > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: SLF4J: Defaulting to > > > no-operation (NOP) logger implementation > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: SLF4J: See > > > http://www.slf4j.org/codes.html#StaticLoggerBinder for further > details. > > > Jan 23 19:07:19 enc-iaas-03-mad3-c java[11042]: Unable to find the guid > > > Jan 23 19:07:19 enc-iaas-03-mad3-c systemd[1]: > cloudstack-agent.service: > > > Deactivated successfully. > > > Jan 23 19:07:29 enc-iaas-03-mad3-c systemd[1]: > cloudstack-agent.service: > > > Scheduled restart job, restart counter is at 110. > > > Jan 23 19:07:29 enc-iaas-03-mad3-c systemd[1]: Stopped CloudStack > Agent. > > > Jan 23 19:07:29 enc-iaas-03-mad3-c systemd[1]: Started CloudStack > Agent. > > > Jan 23 19:07:29 enc-iaas-03-mad3-c java[11073]: log4j:WARN No appenders > > > could be found for logger (com.cloud.agent.AgentShell). > > > Jan 23 19:07:29 enc-iaas-03-mad3-c java[11073]: log4j:WARN Please > > > initialize the log4j system properly. > > > Jan 23 19:07:29 enc-iaas-03-mad3-c java[11073]: log4j:WARN See > > > http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: INFO > > > [cloud.agent.AgentShell] (main:) (logid:) Agent started > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: INFO > > > [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is > > > 4.18.1.0 > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: INFO > > > [cloud.agent.AgentShell] (main:) (logid:) agent.properties found at > > > /etc/cloudstack/agent/agent.properties > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: SLF4J: Failed to load > > class > > > "org.slf4j.impl.StaticLoggerBinder". > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: SLF4J: Defaulting to > > > no-operation (NOP) logger implementation > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: SLF4J: See > > > http://www.slf4j.org/codes.html#StaticLoggerBinder for further > details. > > > Jan 23 19:07:30 enc-iaas-03-mad3-c java[11073]: Unable to find the guid > > > Jan 23 19:07:30 enc-iaas-03-mad3-c systemd[1]: > cloudstack-agent.service: > > > Deactivated successfully. > > > > > > Regards > > > > > > On Tue, Jan 23, 2024 at 2:01 PM Brian Fossmeyer > > > <bfossme...@answersingenesis.org.invalid> wrote: > > > > > > > Francisco, > > > > > > > > Have you looked at this git hub and Rohit’s Ubuntu install guide also > > > > listed in the git hub article? > > > > > > > > https://github.com/apache/cloudstack/issues/6716 > > > > > > > > Are you using the root user to add the host? > > > > > > > > Thanks, > > > > > > > > Brian > > > > > > > > From: Francisco Arencibia Quesada <arencibia.franci...@gmail.com> > > > > Date: Tuesday, January 23, 2024 at 7:48 AM > > > > To: users@cloudstack.apache.org <users@cloudstack.apache.org> > > > > Subject: Re: Cannot add kvm hosts > > > > It didn't work Gary any other idea? > > > > > > > > On Tue, Jan 2, 2024 at 5:35 PM Gary Dixon <gary.di...@quadris.co.uk > > > > .invalid> > > > > wrote: > > > > > > > > > Hi Fransisco > > > > > > > > > > Try setting the global setting "ca.plugin.root.auth.strictness" to > > > false > > > > > and then try adding the host - if it adds the host successfully > then > > > set > > > > > the "ca.plugin.root.auth.strictness" back to 'true' > > > > > > > > > > > > > > > BR > > > > > > > > > > Gary > > > > > > > > > > > > > > > Gary Dixon > > > > > Senior Technical Consultant > > > > > 0161 537 4980 <0161%20537%204980> > > > > > +44 7989717661 <+44%207989717661> > > > > > gary.di...@quadris.co.uk > > > > > www.quadris.com<http://www.quadris.com> > > > > > Innovation House, 12‑13 Bredbury Business Park > > > > > Bredbury Park Way, Bredbury, Stockport, SK6 2SN > > > > > -----Original Message----- > > > > > From: Francisco Arencibia Quesada <arencibia.franci...@gmail.com> > > > > > Sent: Tuesday, January 2, 2024 2:43 PM > > > > > To: users@cloudstack.apache.org > > > > > Subject: Cannot add kvm hosts > > > > > > > > > > Good morning guys, > > > > > > > > > > My KVM host has ubuntu 22.04.3 LTS, I have created the zone, but it > > > fails > > > > > when adding the hosts, I run cloudstack 4.18.1.0 and this is the > > error > > > > I'm > > > > > getting: > > > > > > > > > > Could not add host at [http://10.35.2.22] with zone [8], pod [8] > and > > > > > cluster [10] due to: [ can't setup agent, due to > > > > > com.cloud.utils.exception.CloudRuntimeException: Failed to setup > > > keystore > > > > > on the KVM host: 10.35.2.22 - Failed to setup keystore on the KVM > > host: > > > > > 10.35.2.22]. > > > > > > > > > > Can you suggest anything guys? > > > > > > > > > > Thank you all in advance. > > > > > > > > > > Regards > > > > > > > > > > -- > > > > > *Francisco Arencibia Quesada.* > > > > > *DevOps Engineer* > > > > > > > > > > > > > > > > > -- > > > > *Francisco Arencibia Quesada.* > > > > *DevOps Engineer* > > > > > > > > > > > > > -- > > > *Francisco Arencibia Quesada.* > > > *DevOps Engineer* > > > > > >