Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8EEB1DF01 for ; Wed, 19 Sep 2012 13:54:34 +0000 (UTC) Received: (qmail 74788 invoked by uid 500); 19 Sep 2012 13:54:34 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 74750 invoked by uid 500); 19 Sep 2012 13:54:33 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 74739 invoked by uid 99); 19 Sep 2012 13:54:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 13:54:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shadowsor@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 13:54:29 +0000 Received: by wibhm2 with SMTP id hm2so6493534wib.0 for ; Wed, 19 Sep 2012 06:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=77aFgsSy7AWbxVw6viWf7dw0tz+Q6h84jhSZ0otVmfw=; b=Pj20RItQg4WUDluwpGhSo2stTbCF9kIZlmSEdgRNLksyL57eb6RSvuwb2aDWgbU+/a nrM5IE/2pQgrWFAGW5LvUsjaJto+fz+x1bPd6s7bHnL6XWVs7cio72R/CgH9FMSaG0c5 arvTLETJ7NviqPX69Ba7tkDTF1r2CxjEfT9meilO04WTvq9BK+uJ/EO+4cb2vjI3Bgid TgBoiTZdY1x29RaZxo2MMSY+d9vc0vFbSrJbPTsmlysw04/M+0vK1cJ94hfDscmQdG5Y UHru9qqNXXw/sHq49zF00PbAg3kLYiyHj7lAdOrielEVf8PF2PsNmj4CNmIVbMslz+sg YQbg== MIME-Version: 1.0 Received: by 10.180.76.36 with SMTP id h4mr7058512wiw.13.1348062847484; Wed, 19 Sep 2012 06:54:07 -0700 (PDT) Received: by 10.216.137.211 with HTTP; Wed, 19 Sep 2012 06:54:07 -0700 (PDT) Received: by 10.216.137.211 with HTTP; Wed, 19 Sep 2012 06:54:07 -0700 (PDT) In-Reply-To: References: <7p1oj2y9ki4po1jvykqbjtgq.1348035722165@email.android.com> Date: Wed, 19 Sep 2012 07:54:07 -0600 Message-ID: Subject: Re: Still cannot add KVM host From: Marcus Sorensen To: cloudstack-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d043c096228c42904ca0e5717 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c096228c42904ca0e5717 Content-Type: text/plain; charset=ISO-8859-1 That create storage pool failure usually hits me when I have some sort of primary storage defined which doesn't work. Most recently when I set up a sharedmountpoint pool without creating the mount directory. Are you sure that all of your primary storage is available to this host ? On Sep 19, 2012 6:28 AM, "Busy Dev" wrote: > I also checked my agent.properties file and all the settings are there > (with the appropriate values). > > On Wed, Sep 19, 2012 at 8:19 AM, Busy Dev wrote: > > > I am using CentOS 6.3. > > > > I also ran into an issue with cgconfig a while back when I was trying to > > setup 3.02 and had this fix for it in /etc/cgconfig.conf: > > > > *group virt { > > cpu { > > cpu.shares = 9216; > > } > > }* > > > > > > > > > > On Wed, Sep 19, 2012 at 2:49 AM, Marcus Sorensen >wrote: > > > >> Did he say which distribution? I recently submitted a fix for cent 6.3, > it > >> wasn't setting up the cgconfig service. > >> > >> I second drumming cloud-setup-agent. If you look at the management > server > >> log you should see the exact command/arcs being sent to the host. Copy > >> that > >> and run it manually to see where it fails. > >> On Sep 19, 2012 12:23 AM, "Kelcey Jamison-Damage" > >> 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 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. > >> > >>> > >> > >>> > >> > >> > >> > > >> > > > > > --f46d043c096228c42904ca0e5717--