You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Nazmul Parvej <na...@bol-online.com> on 2021/10/27 10:53:29 UTC
Unable to add host
Hi There,
Please see my WARNING log, I can't understand why not added host on my
Advanced
zone. All servers are Ubuntu 20.04 LTS
Management Server:
In Web Portal Global Settings
|ca.plugin.root.auth.strictness|is set to|false
for ssh setting below config
PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1
In Host Server:
Host as KVM Server Installation
==========================
apt-get install qemu-kvm cloudstack-agent
sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
/etc/libvirt/qemu.conf
sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
/etc/default/libvirtd
echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
systemctl restart libvirtd
apt-get install uuid
UUID=$(uuid)
echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
systemctl restart libvirtd
vi /etc/ssh/sshd_config
PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1
systemctl restart ssh
systemctl restart sshd
Please see my log error from ACS mgmt server
021-10-27 15:59:16,063 WARN [c.c.u.n.Link]
(AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
forced to close inbound due to end of stream.
2021-10-27 15:59:16,959 WARN [c.c.a.d.ParamGenericValidationWorker]
(qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
unknown parameters for command addHost. Unknown parameters : clustertype
2021-10-27 15:59:30,870 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) can't setup
agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
the KVM host: 10.10.9.51
2021-10-27 15:59:30,871 WARN [c.c.r.ResourceManagerImpl]
(qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable to
find the server resources at http://10.10.9.51
2021-10-27 15:59:30,872 WARN [o.a.c.a.c.a.h.AddHostCmd]
(qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Exception:
2021-10-27 16:00:09,415 WARN [c.c.a.d.ParamGenericValidationWorker]
(qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
unknown parameters for command addHost. Unknown parameters : clustertype
2021-10-27 16:00:23,404 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) can't setup
agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
the KVM host: 10.10.9.51
2021-10-27 16:00:23,405 WARN [c.c.r.ResourceManagerImpl]
(qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable to
find the server resources at http://10.10.9.51
2021-10-27 16:00:23,408 WARN [o.a.c.a.c.a.h.AddHostCmd]
(qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Exception:
2021-10-27 16:00:27,313 WARN [c.c.u.n.Link]
(AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
forced to close inbound due to end of stream.
Yours sincerely,
Nazmul Parvej
Re: Unable to add host
Posted by James Steele <js...@gmail.com>.
Have you allowed root ssh access?
vim /etc/ssh/sshd_config
# and set:
PermitRootLogin=yes
Re: Unable to add host
Posted by "Vash_X@gmx.de" <Va...@gmx.de>.
Hi Nazmul,
okay sounds good.
Any Error-Logs from the host / agent.log availeable?
regards
Am Do., 28. Okt. 2021 um 14:59 Uhr schrieb Nazmul Parvej <
nazmul.parvej@bol-online.com>:
> I am using the root account for adding host.
>
>
> Yours sincerely,
>
>
> Nazmul Parvej
>
>
> On Wed, Oct 27, 2021 at 5:30 PM Vash_X@gmx.de <Va...@gmx.de> wrote:
>
> > which kind of useraccount are you using to add the host?
> >
> > had similar problems adding a host with an "sudo"- enabled account as the
> > commands performed while performing the generation of an keystore-file
> > weren't working correctly.
> >
> > Am Mi., 27. Okt. 2021 um 12:53 Uhr schrieb Nazmul Parvej <
> > nazmul.parvej@bol-online.com>:
> >
> > > Hi There,
> > >
> > > Please see my WARNING log, I can't understand why not added host on my
> > > Advanced
> > > zone. All servers are Ubuntu 20.04 LTS
> > >
> > > Management Server:
> > > In Web Portal Global Settings
> > >
> > > |ca.plugin.root.auth.strictness|is set to|false
> > >
> > >
> > > for ssh setting below config
> > >
> > > PubkeyAcceptedKeyTypes=+ssh-dss
> > > HostKeyAlgorithms=+ssh-dss
> > > KexAlgorithms=+diffie-hellman-group1-sha1
> > >
> > >
> > > In Host Server:
> > > Host as KVM Server Installation
> > > ==========================
> > >
> > > apt-get install qemu-kvm cloudstack-agent
> > > sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
> > > /etc/libvirt/qemu.conf
> > > sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
> > > /etc/default/libvirtd
> > > echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
> > > echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
> > > echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
> > > echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
> > > echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
> > >
> > > systemctl restart libvirtd
> > >
> > > apt-get install uuid
> > > UUID=$(uuid)
> > > echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
> > > systemctl restart libvirtd
> > >
> > > vi /etc/ssh/sshd_config
> > > PubkeyAcceptedKeyTypes=+ssh-dss
> > > HostKeyAlgorithms=+ssh-dss
> > > KexAlgorithms=+diffie-hellman-group1-sha1
> > >
> > > systemctl restart ssh
> > > systemctl restart sshd
> > >
> > >
> > >
> > >
> > > Please see my log error from ACS mgmt server
> > >
> > >
> > >
> > > 021-10-27 15:59:16,063 WARN [c.c.u.n.Link]
> > > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > > forced to close inbound due to end of stream.
> > > 2021-10-27 15:59:16,959 WARN [c.c.a.d.ParamGenericValidationWorker]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
> > > unknown parameters for command addHost. Unknown parameters :
> clustertype
> > > 2021-10-27 15:59:30,870 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) can't
> > setup
> > > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed
> to
> > > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore
> on
> > > the KVM host: 10.10.9.51
> > > 2021-10-27 15:59:30,871 WARN [c.c.r.ResourceManagerImpl]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable
> to
> > > find the server resources at http://10.10.9.51
> > > 2021-10-27 15:59:30,872 WARN [o.a.c.a.c.a.h.AddHostCmd]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47)
> Exception:
> > > 2021-10-27 16:00:09,415 WARN [c.c.a.d.ParamGenericValidationWorker]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
> > > unknown parameters for command addHost. Unknown parameters :
> clustertype
> > > 2021-10-27 16:00:23,404 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) can't
> > setup
> > > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed
> to
> > > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore
> on
> > > the KVM host: 10.10.9.51
> > > 2021-10-27 16:00:23,405 WARN [c.c.r.ResourceManagerImpl]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable
> to
> > > find the server resources at http://10.10.9.51
> > > 2021-10-27 16:00:23,408 WARN [o.a.c.a.c.a.h.AddHostCmd]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee)
> Exception:
> > > 2021-10-27 16:00:27,313 WARN [c.c.u.n.Link]
> > > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > > forced to close inbound due to end of stream.
> > >
> > >
> > >
> > > Yours sincerely,
> > >
> > > Nazmul Parvej
> > >
> >
>
Re: Unable to add host
Posted by Nazmul Parvej <na...@bol-online.com>.
I am using the root account for adding host.
Yours sincerely,
Nazmul Parvej
On Wed, Oct 27, 2021 at 5:30 PM Vash_X@gmx.de <Va...@gmx.de> wrote:
> which kind of useraccount are you using to add the host?
>
> had similar problems adding a host with an "sudo"- enabled account as the
> commands performed while performing the generation of an keystore-file
> weren't working correctly.
>
> Am Mi., 27. Okt. 2021 um 12:53 Uhr schrieb Nazmul Parvej <
> nazmul.parvej@bol-online.com>:
>
> > Hi There,
> >
> > Please see my WARNING log, I can't understand why not added host on my
> > Advanced
> > zone. All servers are Ubuntu 20.04 LTS
> >
> > Management Server:
> > In Web Portal Global Settings
> >
> > |ca.plugin.root.auth.strictness|is set to|false
> >
> >
> > for ssh setting below config
> >
> > PubkeyAcceptedKeyTypes=+ssh-dss
> > HostKeyAlgorithms=+ssh-dss
> > KexAlgorithms=+diffie-hellman-group1-sha1
> >
> >
> > In Host Server:
> > Host as KVM Server Installation
> > ==========================
> >
> > apt-get install qemu-kvm cloudstack-agent
> > sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
> > /etc/libvirt/qemu.conf
> > sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
> > /etc/default/libvirtd
> > echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
> > echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
> > echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
> > echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
> > echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
> >
> > systemctl restart libvirtd
> >
> > apt-get install uuid
> > UUID=$(uuid)
> > echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
> > systemctl restart libvirtd
> >
> > vi /etc/ssh/sshd_config
> > PubkeyAcceptedKeyTypes=+ssh-dss
> > HostKeyAlgorithms=+ssh-dss
> > KexAlgorithms=+diffie-hellman-group1-sha1
> >
> > systemctl restart ssh
> > systemctl restart sshd
> >
> >
> >
> >
> > Please see my log error from ACS mgmt server
> >
> >
> >
> > 021-10-27 15:59:16,063 WARN [c.c.u.n.Link]
> > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > forced to close inbound due to end of stream.
> > 2021-10-27 15:59:16,959 WARN [c.c.a.d.ParamGenericValidationWorker]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
> > unknown parameters for command addHost. Unknown parameters : clustertype
> > 2021-10-27 15:59:30,870 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) can't
> setup
> > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> > the KVM host: 10.10.9.51
> > 2021-10-27 15:59:30,871 WARN [c.c.r.ResourceManagerImpl]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable to
> > find the server resources at http://10.10.9.51
> > 2021-10-27 15:59:30,872 WARN [o.a.c.a.c.a.h.AddHostCmd]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Exception:
> > 2021-10-27 16:00:09,415 WARN [c.c.a.d.ParamGenericValidationWorker]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
> > unknown parameters for command addHost. Unknown parameters : clustertype
> > 2021-10-27 16:00:23,404 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) can't
> setup
> > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> > the KVM host: 10.10.9.51
> > 2021-10-27 16:00:23,405 WARN [c.c.r.ResourceManagerImpl]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable to
> > find the server resources at http://10.10.9.51
> > 2021-10-27 16:00:23,408 WARN [o.a.c.a.c.a.h.AddHostCmd]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Exception:
> > 2021-10-27 16:00:27,313 WARN [c.c.u.n.Link]
> > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > forced to close inbound due to end of stream.
> >
> >
> >
> > Yours sincerely,
> >
> > Nazmul Parvej
> >
>
Re: Unable to add host
Posted by "Vash_X@gmx.de" <Va...@gmx.de>.
which kind of useraccount are you using to add the host?
had similar problems adding a host with an "sudo"- enabled account as the
commands performed while performing the generation of an keystore-file
weren't working correctly.
Am Mi., 27. Okt. 2021 um 12:53 Uhr schrieb Nazmul Parvej <
nazmul.parvej@bol-online.com>:
> Hi There,
>
> Please see my WARNING log, I can't understand why not added host on my
> Advanced
> zone. All servers are Ubuntu 20.04 LTS
>
> Management Server:
> In Web Portal Global Settings
>
> |ca.plugin.root.auth.strictness|is set to|false
>
>
> for ssh setting below config
>
> PubkeyAcceptedKeyTypes=+ssh-dss
> HostKeyAlgorithms=+ssh-dss
> KexAlgorithms=+diffie-hellman-group1-sha1
>
>
> In Host Server:
> Host as KVM Server Installation
> ==========================
>
> apt-get install qemu-kvm cloudstack-agent
> sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
> /etc/libvirt/qemu.conf
> sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
> /etc/default/libvirtd
> echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
> echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
> echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
> echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
> echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
>
> systemctl restart libvirtd
>
> apt-get install uuid
> UUID=$(uuid)
> echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
> systemctl restart libvirtd
>
> vi /etc/ssh/sshd_config
> PubkeyAcceptedKeyTypes=+ssh-dss
> HostKeyAlgorithms=+ssh-dss
> KexAlgorithms=+diffie-hellman-group1-sha1
>
> systemctl restart ssh
> systemctl restart sshd
>
>
>
>
> Please see my log error from ACS mgmt server
>
>
>
> 021-10-27 15:59:16,063 WARN [c.c.u.n.Link]
> (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> forced to close inbound due to end of stream.
> 2021-10-27 15:59:16,959 WARN [c.c.a.d.ParamGenericValidationWorker]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
> unknown parameters for command addHost. Unknown parameters : clustertype
> 2021-10-27 15:59:30,870 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) can't setup
> agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> the KVM host: 10.10.9.51
> 2021-10-27 15:59:30,871 WARN [c.c.r.ResourceManagerImpl]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable to
> find the server resources at http://10.10.9.51
> 2021-10-27 15:59:30,872 WARN [o.a.c.a.c.a.h.AddHostCmd]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Exception:
> 2021-10-27 16:00:09,415 WARN [c.c.a.d.ParamGenericValidationWorker]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
> unknown parameters for command addHost. Unknown parameters : clustertype
> 2021-10-27 16:00:23,404 WARN [c.c.h.k.d.LibvirtServerDiscoverer]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) can't setup
> agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> the KVM host: 10.10.9.51
> 2021-10-27 16:00:23,405 WARN [c.c.r.ResourceManagerImpl]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable to
> find the server resources at http://10.10.9.51
> 2021-10-27 16:00:23,408 WARN [o.a.c.a.c.a.h.AddHostCmd]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Exception:
> 2021-10-27 16:00:27,313 WARN [c.c.u.n.Link]
> (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> forced to close inbound due to end of stream.
>
>
>
> Yours sincerely,
>
> Nazmul Parvej
>