Re: cloudstack 4.6 Unable to add the host
在 2015/11/29 19:39, Erik Weber 写道: yum update nss yes , when I "yum update" the system, The host can add to the cloudstack. Thank you all !
Re: cloudstack 4.6 Unable to add the host
yum update nss -- Erik Den søndag 29. november 2015 skrev lixq følgende: > hi every one: > I have configure cloudstack 4.6 on centos 6.5 A (manage console and nfs) > and centos 6.5 B (kvm), but when I add the compute node , report error > "Unable to add the host" > > I was fllow > http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.6/qig.html > config it . > > Thanks a lot !!! > > There have fllow error message in file > /var/log/cloudstack/agent/agent.log . > > 2015-11-29 05:29:50,617 ERROR [utils.nio.NioConnection] (main:null) Unable > to initialize the threads. > java.io.IOException: Connection closed with -1 on reading size. > at com.cloud.utils.nio.Link.doHandshake(Link.java:513) > at com.cloud.utils.nio.NioClient.init(NioClient.java:80) > at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88) > at com.cloud.agent.Agent.start(Agent.java:227) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399) > at > com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351) > at com.cloud.agent.AgentShell.start(AgentShell.java:461) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) > 2015-11-29 05:29:50,620 INFO [utils.exception.CSExceptionErrorCode] > (main:null) Could not find exception: > com.cloud.utils.exception.NioConnectionException in error code list for > exceptions > 2015-11-29 05:29:50,620 ERROR [cloud.agent.AgentShell] (main:null) Unable > to start agent: > com.cloud.utils.exception.CloudRuntimeException: Unable to start the > connection! > at com.cloud.agent.Agent.start(Agent.java:229) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399) > at > com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367) > at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351) > at com.cloud.agent.AgentShell.start(AgentShell.java:461) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) > Caused by: com.cloud.utils.exception.NioConnectionException: Connection > closed with -1 on reading size. > at com.cloud.utils.nio.NioConnection.start(NioConnection.java:94) > at com.cloud.agent.Agent.start(Agent.java:227) > ... 9 more > Caused by: java.io.IOException: Connection closed with -1 on reading size. > at com.cloud.utils.nio.Link.doHandshake(Link.java:513) > at com.cloud.utils.nio.NioClient.init(NioClient.java:80) > at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88) > ... 10 more > 2015-11-29 05:29:50,625 INFO [cloud.agent.Agent] > (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill > 2015-11-29 05:34:50,195 INFO [cloud.agent.AgentShell] (main:null) Agent > started > 2015-11-29 05:34:50,196 INFO [cloud.agent.AgentShell] (main:null) > Implementation Version is 4.6.0 > 2015-11-29 05:34:50,198 INFO [cloud.agent.AgentShell] (main:null) > agent.properties found at /etc/cloudstack/agent/agent.properties > 2015-11-29 05:34:50,202 INFO [cloud.agent.AgentShell] (main:null) > Defaulting to using properties file for storage > 2015-11-29 05:34:50,208 INFO [cloud.agent.AgentShell] (main:null) > Defaulting to the constant time backoff algorithm > 2015-11-29 05:34:50,223 INFO [cloud.utils.LogUtils] (main:null) log4j > configuration found at /etc/cloudstack/agent/log4j-cloud.xml > 2015-11-29 05:34:50,236 INFO [cloud.agent.AgentShell] (main:null) > Preferring IPv4 address family for agent connection > 2015-11-29 05:34:50,288 INFO [cloud.agent.Agent] (main:null) id is > 2015-11-29 05:34:50,318 INFO [kvm.resource.LibvirtConnection] (main:null) > No existing libvirtd connection found. Opening a new one > > > 2015-11-29 05:34:50,633 INFO [org.reflections.Reflections] (main:null) > Reflections took 70 ms to scan 1 urls, producing 7 keys and 10 values > 2015-11-29 05:34:50,749 INFO [kvm.resource.LibvirtComputingResource] > (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver. > 2015-11-29 05:34:50,770 INFO [cloud.agent.Agent] (main:null) Agent [id = > new : type = LibvirtComputingResource : zone = 1 : pod = 1 : workers = 5 : > host = 123.1.177.65 : port = 8250 > 2015-11-29 05:34:50,773 INFO [utils.nio.NioClient] (main:null) Connecting > to 123.1.177.65:8250 > 2015-11-
Re: cloudstack 4.6 Unable to add the host
Hi, In global settings there is a 'host' setting that should contain the mgt server ip. The KVM agent should get this ip in agent.properties during setup. The agent will connect to this ip on tcp/8250. Be sure this port is open and reachable (test using with telnet). Also, from my experience you need to run java7 on both mgt and hypervisor. Finally, when adding be sure the agent state is stopped. It should then be added without problems. Your logs show a connection issue from agent to mgt server on port 8250. Please double check this is reachable. Regards, Remi Sent from my iPhone > On 29 Nov 2015, at 06:29, Alexander Couzens wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi lixq, > > I think this is a connection or dns problem. > Do you checked the firewall and ensure you neither have a connection or > dns problem between your nodes? > > Try to ping the nodes each other using their hostnames. > Also check the hostname and on what ip it maps itself. > e.g. > ping cloudstack-a from itself should *NOT* show an ip starting with 127. > like 127.0.1.1. > > Best, > lynxis > > On Sun, 29 Nov 2015 11:06:04 +0800 > lixq wrote: > >> hi every one: >> I have configure cloudstack 4.6 on centos 6.5 A (manage console and >> nfs) and centos 6.5 B (kvm), but when I add the compute node , >> report error "Unable to add the host" >> >> I was fllow >> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.6/qig.html >> >> config it . >> >> Thanks a lot !!! > - -- > Alexander Couzens > > mail: lyn...@fe80.eu > jabber: lyn...@fe80.eu > mobile: +4915123277221 > gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604 > -BEGIN PGP SIGNATURE- > Version: GnuPG v2 > > iQIcBAEBCAAGBQJWWo0iAAoJEMKenaag34YEDEoP/1Q8g3U8Q/BEzk4ovryWdhwQ > EL49Hw7uENkihuvfCyeg8uAaF5IkKq3Ew5CNUBdPIbj9mhzU8yllFxSZ4E4HdNGR > EoVcpmNaQfbWe8HxHR/hoPrnGhOFafqHMSd0DMYD/yU+100lmjhaltrMH6lpb4D/ > b4lKFcNjYCiRTJp8EAeKKaoXDecOqaXM1rsmnpVoNjJD9EZv8/YOVLsnxGr8/BT0 > 6dOmLDMyyIQFgzAD258hRQGQJSOFW/pu8evmfi4Zd6kSLel8D8s5dSqG1ZczVhv0 > KapEnn3R9Cz2RS9rDq17Z8+7/09QzCpN4fD7SGmO/ybJ0gBMfGzfUe8ztzCayfBg > JdQUbWbbzxn5xKMp1+feHbctFQtpzQsPl4JJFKGtv1MD3Svg8ChH1ECqBDs2ssZm > qDBwO+nUffWj9ryTDH2HjAlW6a7fg58KbYrW33aRMzadZpeFwXqpKcDK5OhBMEwC > QoEAjPyR4VVcYmW326Srs13WxvjJGdE5KPkHEZugZflv0Q3/3b7F+F9Ns0DFdRDe > 415v8vEeBaPdTq31yASl1osekcQQZj4ITetSR2dojjSJ/6VCXJ4R4BklZygWsuKM > SvSv9Fyp52eaBuLZJyXDGJCRjrFdFuf2HmPYyG5vMK7GOoJssnYCMAwgq8+N1GeL > Ysc8skHqUJKUwapUURPq > =yfo/ > -END PGP SIGNATURE-
Re: cloudstack 4.6 Unable to add the host
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi lixq, I think this is a connection or dns problem. Do you checked the firewall and ensure you neither have a connection or dns problem between your nodes? Try to ping the nodes each other using their hostnames. Also check the hostname and on what ip it maps itself. e.g. ping cloudstack-a from itself should *NOT* show an ip starting with 127. like 127.0.1.1. Best, lynxis On Sun, 29 Nov 2015 11:06:04 +0800 lixq wrote: > hi every one: > I have configure cloudstack 4.6 on centos 6.5 A (manage console and > nfs) and centos 6.5 B (kvm), but when I add the compute node , > report error "Unable to add the host" > > I was fllow > http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.6/qig.html > > config it . > > Thanks a lot !!! - -- Alexander Couzens mail: lyn...@fe80.eu jabber: lyn...@fe80.eu mobile: +4915123277221 gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQIcBAEBCAAGBQJWWo0iAAoJEMKenaag34YEDEoP/1Q8g3U8Q/BEzk4ovryWdhwQ EL49Hw7uENkihuvfCyeg8uAaF5IkKq3Ew5CNUBdPIbj9mhzU8yllFxSZ4E4HdNGR EoVcpmNaQfbWe8HxHR/hoPrnGhOFafqHMSd0DMYD/yU+100lmjhaltrMH6lpb4D/ b4lKFcNjYCiRTJp8EAeKKaoXDecOqaXM1rsmnpVoNjJD9EZv8/YOVLsnxGr8/BT0 6dOmLDMyyIQFgzAD258hRQGQJSOFW/pu8evmfi4Zd6kSLel8D8s5dSqG1ZczVhv0 KapEnn3R9Cz2RS9rDq17Z8+7/09QzCpN4fD7SGmO/ybJ0gBMfGzfUe8ztzCayfBg JdQUbWbbzxn5xKMp1+feHbctFQtpzQsPl4JJFKGtv1MD3Svg8ChH1ECqBDs2ssZm qDBwO+nUffWj9ryTDH2HjAlW6a7fg58KbYrW33aRMzadZpeFwXqpKcDK5OhBMEwC QoEAjPyR4VVcYmW326Srs13WxvjJGdE5KPkHEZugZflv0Q3/3b7F+F9Ns0DFdRDe 415v8vEeBaPdTq31yASl1osekcQQZj4ITetSR2dojjSJ/6VCXJ4R4BklZygWsuKM SvSv9Fyp52eaBuLZJyXDGJCRjrFdFuf2HmPYyG5vMK7GOoJssnYCMAwgq8+N1GeL Ysc8skHqUJKUwapUURPq =yfo/ -END PGP SIGNATURE-
cloudstack 4.6 Unable to add the host
hi every one: I have configure cloudstack 4.6 on centos 6.5 A (manage console and nfs) and centos 6.5 B (kvm), but when I add the compute node , report error "Unable to add the host" I was fllow http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.6/qig.html config it . Thanks a lot !!! There have fllow error message in file /var/log/cloudstack/agent/agent.log . 2015-11-29 05:29:50,617 ERROR [utils.nio.NioConnection] (main:null) Unable to initialize the threads. java.io.IOException: Connection closed with -1 on reading size. at com.cloud.utils.nio.Link.doHandshake(Link.java:513) at com.cloud.utils.nio.NioClient.init(NioClient.java:80) at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88) at com.cloud.agent.Agent.start(Agent.java:227) at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399) at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367) at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351) at com.cloud.agent.AgentShell.start(AgentShell.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) 2015-11-29 05:29:50,620 INFO [utils.exception.CSExceptionErrorCode] (main:null) Could not find exception: com.cloud.utils.exception.NioConnectionException in error code list for exceptions 2015-11-29 05:29:50,620 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: com.cloud.utils.exception.CloudRuntimeException: Unable to start the connection! at com.cloud.agent.Agent.start(Agent.java:229) at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399) at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367) at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351) at com.cloud.agent.AgentShell.start(AgentShell.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) Caused by: com.cloud.utils.exception.NioConnectionException: Connection closed with -1 on reading size. at com.cloud.utils.nio.NioConnection.start(NioConnection.java:94) at com.cloud.agent.Agent.start(Agent.java:227) ... 9 more Caused by: java.io.IOException: Connection closed with -1 on reading size. at com.cloud.utils.nio.Link.doHandshake(Link.java:513) at com.cloud.utils.nio.NioClient.init(NioClient.java:80) at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88) ... 10 more 2015-11-29 05:29:50,625 INFO [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill 2015-11-29 05:34:50,195 INFO [cloud.agent.AgentShell] (main:null) Agent started 2015-11-29 05:34:50,196 INFO [cloud.agent.AgentShell] (main:null) Implementation Version is 4.6.0 2015-11-29 05:34:50,198 INFO [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties 2015-11-29 05:34:50,202 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage 2015-11-29 05:34:50,208 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm 2015-11-29 05:34:50,223 INFO [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml 2015-11-29 05:34:50,236 INFO [cloud.agent.AgentShell] (main:null) Preferring IPv4 address family for agent connection 2015-11-29 05:34:50,288 INFO [cloud.agent.Agent] (main:null) id is 2015-11-29 05:34:50,318 INFO [kvm.resource.LibvirtConnection] (main:null) No existing libvirtd connection found. Opening a new one 2015-11-29 05:34:50,633 INFO [org.reflections.Reflections] (main:null) Reflections took 70 ms to scan 1 urls, producing 7 keys and 10 values 2015-11-29 05:34:50,749 INFO [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver. 2015-11-29 05:34:50,770 INFO [cloud.agent.Agent] (main:null) Agent [id = new : type = LibvirtComputingResource : zone = 1 : pod = 1 : workers = 5 : host = 123.1.177.65 : port = 8250 2015-11-29 05:34:50,773 INFO [utils.nio.NioClient] (main:null) Connecting to 123.1.177.65:8250 2015-11-29 05:35:50,902 ERROR [utils.nio.NioConnection] (main:null) Unable to initialize the threads. java.io.IOException: Connection closed with -1 on reading size. at com.cloud.utils.nio.Link.doHandshake(Link.java:513)