Welcome, Guest
Username: Password: Remember me
Archived CloudStack Forums for reference purposes please direct all future inquiries to the Apache CloudStack mailing lists.

incubator.apache.org/cloudstack/mailing-lists.html

TOPIC: Unable to add KVM host on CloudStack

Unable to add KVM host on CloudStack 9 months 3 weeks ago #13043

  • anilsingh
  • anilsingh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
management-server.log

management-server.log
Hi,,
I am not able to add kvm host on cloudstack. Please find the details below

System Details:
Ubuntu 12.04 +KVM
root# uname -a
Linux anil-Samsung-Desktop-System 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Downloaded the Cloudstack4 fron hudson:
jenkins.cloudstack.org/ ---->Latest build for ubuntu

1) Installed Management server
2) Installed Database
3) Installed Agent for KVM

Login on CloudStack UI. I am able to add zone, cluster, pod and secondary storage.
But facing the issue while adding KVM host on the cloudstack.


Exception:

com.cloud.exception.DiscoveryException: Unable to add the host
at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:737)
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:544)
at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:543)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:422)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:744)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2012-12-24 17:29:31,071 WARN [cloud.api.ApiDispatcher] (catalina-exec-23:null) class com.cloud.api.ServerApiException : Unable to add the host

I have verified this:

1) ssh is installed on ubuntu system
2) below is the content from the /etc/network/interfaces


auto lo
iface lo inet loopback
face eth0 inet static
address 107.108.188.164
netmask 255.255.255.0
gateway 107.108.188.1
dns-nameservers 165.213.246.161
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off


management-server.log
Last Edit: 9 months 3 weeks ago by anilsingh. Reason: logs file
The administrator has disabled public write access.

Re: Unable to add KVM host on CloudStack 9 months 3 weeks ago #13044

  • anilsingh
  • anilsingh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Just missed out to update that I have followed the installation instruction from :http://docs.cloudstack.org/CloudStack_Documentation/Installing_CloudStack/Quick_Install_Guide

Also I want to update that while agen installation, there is error but its seems agent is getting installed.

===================================

Welcome to the Apache CloudStack (Incubating) Installer. What would you like to do?

A) Install the Agent
S) Install the Usage Monitor
U) Upgrade the CloudStack packages installed on this computer
R) Stop any running CloudStack services and remove the CloudStack packages from this computer
E) Remove the MySQL server (will not remove the MySQL databases)
Q) Quit

> A
Installing the Agent...
The following NEW packages will be installed:
cloud-agent cloud-agent-libs{a}
0 packages upgraded, 2 newly installed, 0 to remove and 481 not upgraded.
Need to get 0 B/245 kB of archives. After unpacking 367 kB will be used.
Do you want to continue? [Y/n/?] Y
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

cloud-agent-libs

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
(Reading database ... 145124 files and directories currently installed.)
Unpacking cloud-agent-libs (from .../cloud-agent-libs_4.0.1-incubating_amd64.deb) ...
dpkg: error processing /home/anil/Anil/CloudStack-non-OSS-4.0.1-9/./cloud-agent-libs_4.0.1-incubating_amd64.deb (--unpack):
trying to overwrite '/usr/share/java/cloud-plugin-hypervisor-kvm.jar', which is also in package cloud-server 1:4.0.1-incubating
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package cloud-agent.
Unpacking cloud-agent (from .../cloud-agent_4.0.1-incubating_amd64.deb) ...
Processing triggers for ureadahead ...
Errors were encountered while processing:
/home/anil/Anil/CloudStack-non-OSS-4.0.1-9/./cloud-agent-libs_4.0.1-incubating_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of cloud-agent:
cloud-agent depends on cloud-agent-libs (= 1:4.0.1-incubating); however:
Package cloud-agent-libs is not installed.
dpkg: error processing cloud-agent (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
cloud-agent

Current status: 1 broken [+1].
Done

===================

Please correct me if I am doing anything wrong here.

Thanks In Advance
The administrator has disabled public write access.
Time to create page: 0.298 seconds

Open@Citrix

Citrix supports the open source community via developer support and evangeslism. We have a number of developers and evangelists that participate actively in the open source community in Apache Cloudstack, OpenDaylight, Xen Project and XenServer. We also conduct educational activities via the Build A Cloud events held all over the world. 

Connect