You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "e.angieri@libero.it" <e....@libero.it> on 2014/01/23 18:47:21 UTC

XML error: missing pool source name element - Unable to add host

Hi to all.I'm trying to intall cloudstack on Ubuntu 12.04 LTS. I follow the official installation guide https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/index.html .I have this situation:service cloudstack-management startservice cloudstack-management status * CloudStack-specific Tomcat servlet engine is running with pid 4705service cloudstack-agent startservice cloudstack-agent status * cloud-agent is running

The agent.log is:
2014-01-23 18:21:58,871 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2014-01-23 18:21:58,872 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.1.1
2014-01-23 18:21:58,873 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
2014-01-23 18:21:58,874 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
2014-01-23 18:21:58,875 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
2014-01-23 18:21:58,921 INFO  [cloud.agent.Agent] (main:null) id is 
2014-01-23 18:21:58,927 ERROR [cloud.resource.ServerResourceBase] (main:null) Nics are not configured!
2014-01-23 18:21:58,934 INFO  [cloud.resource.ServerResourceBase] (main:null) Designating private to be nic cloudbr0
2014-01-23 18:21:58,940 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2014-01-23 18:21:59,422 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.
2014-01-23 18:21:59,442 INFO  [cloud.agent.Agent] (main:null) Agent [id = new : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
2014-01-23 18:21:59,451 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
2014-01-23 18:21:59,634 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
2014-01-23 18:21:59,807 ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) org.libvirt.LibvirtException: XML error: missing pool source name element
2014-01-23 18:21:59,809 WARN  [utils.nio.Task] (Agent-Handler-1:null) Caught the following exception but pushing on
java.lang.NullPointerException
    at com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:540)
    at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:111)
    at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:104)
    at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3562)
    at com.cloud.agent.Agent.sendStartup(Agent.java:320)
    at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:871)
    at com.cloud.utils.nio.Task.run(Task.java:83)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
I don't know what is the problem. Can you help me??
Also if i try to add a host in UI interface the management-server.log say:
2014-01-23 18:44:17,141 INFO  [cloud.resource.ResourceManagerImpl] (catalina-exec-11:null) Trying to add a new host at http://10.0.0.50 in data center 1
2014-01-23 18:44:17,303 WARN  [kvm.discoverer.KvmServerDiscoverer] (catalina-exec-11:null)  can't setup agent, due to java.io.IOException: There was a problem while connecting to 10.0.0.50:22 - There was a problem while connecting to 10.0.0.50:22
2014-01-23 18:44:17,303 WARN  [cloud.resource.ResourceManagerImpl] (catalina-exec-11:null) Unable to find the server resources at http://10.0.0.50
2014-01-23 18:44:17,304 INFO  [utils.exception.CSExceptionErrorCode] (catalina-exec-11:null) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions
2014-01-23 18:44:17,304 WARN  [admin.host.AddHostCmd] (catalina-exec-11:null) Exception: 
com.cloud.exception.DiscoveryException: Unable to add the host
    at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:867)
    at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:619)
    at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
    at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
    at com.cloud.api.ApiServer.queueCommand(ApiServer.java:505)
    at com.cloud.api.ApiServer.handleRequest(ApiServer.java:355)
    at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:302)
    at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    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:2282)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
2014-01-23 18:44:17,305 INFO  [cloud.api.ApiServer] (catalina-exec-11:null) Unable to add the host
2014-01-23 18:44:17,306 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===END===  127.0.0.1 -- POST 
My network configuration was: (/etc/network/interfaces):
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

# Public network
auto cloudbr0
iface cloudbr0 inet static
    address 10.0.0.50
    netmask 255.255.0.0
    gateway 10.0.0.1
    dns-nameservers 10.0.0.1
    bridge_ports eth0
    bridge_fd 5
    bridge_stp off
    bridge_maxwait 1

# Private network
auto cloudbr1
iface cloudbr1 inet manual
    bridge_ports none
    bridge_fd 5
    bridge_stp off
    bridge_maxwait 1
The management-server and the agent was boot in the same host with Ubuntu Kvm.Please can you help me?
RegardsEmiliano

 

Re: XML error: missing pool source name element - Unable to add host

Posted by Daan Hoogland <da...@gmail.com>.
On Thu, Jan 23, 2014 at 6:47 PM, e.angieri@libero.it
<e....@libero.it> wrote:
> The management-server and the agent was boot in the same host with Ubuntu Kvm.Please can you help me?

Emiliano, Do you mean you tried to add the host that the management
server was running on?

also i noticed

. I follow the official installation guide
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/index.html
whereas
2014-01-23 18:21:58,872 INFO  [cloud.agent.AgentShell] (main:null)
Implementation Version is 4.1.1
I am not sure if the issue you are having is related but are you
installing a 4.1.1 according to the 4.0.2 documentation?

regards,
Daan