incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Busy Dev <busyd...@gmail.com>
Subject Re: Still cannot add KVM host
Date Wed, 19 Sep 2012 12:15:45 GMT
Here's the output of cloud-setup-agent and the relevant portion of
agent.log (I installed the agent using the install package from Jensen --
4.0)

[root@kvmhost libvirt]# cloud-setup-agent
Welcome to the CloudStack Agent Setup:
Please input the Management Server Hostname/IP-Address:[192.168.1.8]
Please input the Zone Id:[1]
Please input the Pod Id:[1]
Please input the Cluster Id:[1]
Please choose which network used to create VM:[cloudbr0]
Starting to configure your system:
Configure Cgroup ...          [OK]
Configure SElinux ...         [OK]
Configure Network ...         [OK]
Configure Libvirt ...         [OK]
Configure Firewall ...        [OK]
Configure Nfs ...             [OK]
Configure cloudAgent ...      [OK]
CloudStack Agent setup is done!
[root@kvmhost libvirt]# service cloud-agent restart
Stopping Cloud Agent:
Starting Cloud Agent:
[root@kvmhost libvirt]# tail -f /var/log/cloud/agent/agent.log
java.lang.NullPointerException
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:562)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:57)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3243)
at com.cloud.agent.Agent.sendStartup(Agent.java:320)
at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:850)
at com.cloud.utils.nio.Task.run(Task.java:83)
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-09-19 06:45:41,986 INFO  [cloud.agent.Agent]
(AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
2012-09-19 06:45:42,027 INFO  [cloud.serializer.GsonHelper]
(AgentShutdownThread:null) Default Builder inited.
2012-09-19 06:46:18,395 INFO  [utils.component.ComponentLocator]
(main:null) Unable to find components.xml
2012-09-19 06:46:18,396 INFO  [utils.component.ComponentLocator]
(main:null) Skipping configuration using components.xml
2012-09-19 06:46:18,396 INFO  [cloud.agent.AgentShell] (main:null)
Implementation Version is 4.0.0.48.20120918191610
2012-09-19 06:46:18,397 INFO  [cloud.agent.AgentShell] (main:null)
agent.properties found at /etc/cloud/agent/agent.properties
2012-09-19 06:46:18,398 INFO  [cloud.agent.AgentShell] (main:null)
Defaulting to using properties file for storage
2012-09-19 06:46:18,399 INFO  [cloud.agent.AgentShell] (main:null)
Defaulting to the constant time backoff algorithm
2012-09-19 06:46:18,460 INFO  [cloud.agent.Agent] (main:null) id is
2012-09-19 06:46:18,563 INFO
 [resource.virtualnetwork.VirtualRoutingResource] (main:null)
VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2012-09-19 06:46:19,554 INFO  [kvm.resource.LibvirtComputingResource]
(main:null) No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.
2012-09-19 06:46:19,585 INFO  [cloud.agent.Agent] (main:null) Agent [id =
new : type = LibvirtComputingResource : zone = 1 : pod = 1 : workers = 5 :
host = 192.168.1.8 : port = 8250
2012-09-19 06:46:19,595 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to 192.168.1.8:8250
2012-09-19 06:46:19,779 INFO  [utils.nio.NioClient] (Agent-Selector:null)
SSL: Handshake done
2012-09-19 06:46:20,097 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:562)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:57)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3243)
at com.cloud.agent.Agent.sendStartup(Agent.java:320)
at com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:850)
at com.cloud.utils.nio.Task.run(Task.java:83)
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)






On Wed, Sep 19, 2012 at 2:22 AM, Kelcey Jamison-Damage <kelcey@bbits.ca>wrote:

> Have you tried running cloud-setup-agent on the host? If so what is its
> output?
>
> Are you building 3.0.2 or 4.0 source?
>
>
>
> Busy Dev <busydev6@gmail.com> wrote:
>
> >Thanks - I checked my KVM host and that directory already exists.
> >
> >
> >
> >On Wed, Sep 19, 2012 at 1:07 AM, KAWAI Hiroaki <kawai@stratosphere.co.jp
> >wrote:
> >
> >> Hi,
> >> I run into the same problem. On KVM host OS, try:
> >>
> >> mkdir /var/lib/libvirt/images/
> >>
> >> logging will be added with patch https://reviews.apache.org/r/**7153/<
> https://reviews.apache.org/r/7153/>
> >>
> >>
> >>
> >> (2012/09/19 14:00), Busy Dev wrote:
> >>
> >>> I've been able to setup my development environment and am now trying to
> >>> setup the management server.  However, when I "launch" Cloudstack, I am
> >>> unable to add a KVM host.
> >>>
> >>> The error in the log file
> >>>
> >>> 2012-09-19 00:50:48,883 INFO  [utils.component.**ComponentLocator]
> >>> (main:null) Unable to find components.xml
> >>> 2012-09-19 00:50:48,884 INFO  [utils.component.**ComponentLocator]
> >>> (main:null) Skipping configuration using components.xml
> >>> 2012-09-19 00:50:48,885 INFO  [cloud.agent.AgentShell] (main:null)
> >>> Implementation Version is 4.0.0.48.20120918191610
> >>> 2012-09-19 00:50:48,885 INFO  [cloud.agent.AgentShell] (main:null)
> >>> agent.properties found at /etc/cloud/agent/agent.**properties
> >>> 2012-09-19 00:50:48,886 INFO  [cloud.agent.AgentShell] (main:null)
> >>> Defaulting to using properties file for storage
> >>> 2012-09-19 00:50:48,888 INFO  [cloud.agent.AgentShell] (main:null)
> >>> Defaulting to the constant time backoff algorithm
> >>> 2012-09-19 00:50:48,949 INFO  [cloud.agent.Agent] (main:null) id is
> >>> 2012-09-19 00:50:49,055 INFO
> >>>   [resource.virtualnetwork.**VirtualRoutingResource] (main:null)
> >>> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> >>> 2012-09-19 00:50:50,048 INFO  [kvm.resource.**LibvirtComputingResource]
> >>> (main:null) No libvirt.vif.driver specififed. Defaults to
> BridgeVifDriver.
> >>> 2012-09-19 00:50:50,080 INFO  [cloud.agent.Agent] (main:null) Agent
> [id =
> >>> new : type = LibvirtComputingResource : zone = 1 : pod = 1 : workers =
> 5 :
> >>> host = 192.168.1.8 : port = 8250
> >>> 2012-09-19 00:50:50,093 INFO  [utils.nio.NioClient]
> (Agent-Selector:null)
> >>> Connecting to 192.168.1.8:8250
> >>> 2012-09-19 00:50:50,285 INFO  [utils.nio.NioClient]
> (Agent-Selector:null)
> >>> SSL: Handshake done
> >>> 2012-09-19 00:50:50,635 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:**562)
> >>>          at
> >>> com.cloud.hypervisor.kvm.**storage.KVMStoragePoolManager.**
> >>> createStoragePool(**KVMStoragePoolManager.java:57)
> >>>          at
> >>> com.cloud.hypervisor.kvm.**resource.**LibvirtComputingResource.**
> >>> initialize(**LibvirtComputingResource.java:**3243)
> >>>          at com.cloud.agent.Agent.**sendStartup(Agent.java:320)
> >>>          at com.cloud.agent.Agent$**ServerHandler.doTask(Agent.**
> >>> java:850)
> >>>          at com.cloud.utils.nio.Task.run(**Task.java:83)
> >>>          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)
> >>>
> >>>
> >>> Thanks for your help.
> >>>
> >>>
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message