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 32061DC60 for ; Sun, 30 Sep 2012 15:23:12 +0000 (UTC) Received: (qmail 8814 invoked by uid 500); 30 Sep 2012 15:23:11 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 8784 invoked by uid 500); 30 Sep 2012 15:23:11 -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 8776 invoked by uid 99); 30 Sep 2012 15:23:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2012 15:23:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmartin@basho.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2012 15:23:07 +0000 Received: by wibhj13 with SMTP id hj13so1142452wib.0 for ; Sun, 30 Sep 2012 08:22:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=fWM/lB1gfNw3GohGbKpy0WYgVhM122vRSbSAcQ08ah4=; b=NotHOMvOahSUUlAz9RoPl0WxrYYo+Tzqjfp6BpQajoHMQ/Ta5Kh30oy4HQWoZhnsap crQKISgzEuMOMYwX7t7v2EoijbHgSiDI2HGn3Ie+5h/jzzrUKLjeLH3CUt9JwZ65hl/Y kZqKup9FqXQlZ2ge+neMGPii6hiVQk2Iil+qUjCLNJvbAL5NmOucFt2y6wddijd2uM4K 7DPHmm0hjgz1e+n4RZDbRrFhSAAv3YKz61S48ZcpwAb5ainFihgcCCbwEuc41mqGN0Jn ReEGUCtoFnFHe9uQ2fcXNxRxFG9m5gKmYgzJZz8DW7U9KAy1Ry7hI58P1V2P4+m8Pd8w 98eg== Received: by 10.180.8.134 with SMTP id r6mr8827946wia.18.1349018565304; Sun, 30 Sep 2012 08:22:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.83.167 with HTTP; Sun, 30 Sep 2012 08:22:25 -0700 (PDT) In-Reply-To: References: From: James Martin Date: Sun, 30 Sep 2012 11:22:25 -0400 Message-ID: Subject: Re: devcloud and com.cloud.exception.InsufficientServerCapacityException To: cloudstack-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQn17KpvAx1Pohrp/Vzk0MBpC8KhIn7tFKcu+jPMEMUKzWjOvLCLHSHiCYeHSnGsxQ7AQm+7 X-Virus-Checked: Checked by ClamAV on apache.org Thanks, It was as Sebastien pointed out an error in my devcloud.cfg file. he storage mount point are missing a : it should be "url": "nfs://10.0.2.15:/opt/storage/secondary" Now on to another problem which I'll send a new message :) . James On Sat, Sep 29, 2012 at 1:22 PM, Kelceydamage@bbits wrote: > Hi please try this > > Disable local storage, and either specify your local drive as a shared mount point, or use NFS to mount to yourself. > > Thanks > > Local storage is not of the correct type to launch system vm, most likely cause being miss-reporting as 99% full/alert state. > > Sent from my iPhone > > On Sep 29, 2012, at 8:21 AM, James Martin wrote: > >> Hi folks, thanks to Sebastien's great help last night, we made a lot >> of progress in using marvin in my devcloud / vagrant setup (I feel >> like I'm very close to having a new way to launch a devcloud >> environment). >> >> python -m marvin.deployDataCenter -i devcloud.cfg (attached) runs >> just fine, and everything appears to be configured and running except >> for the System VMs. The problem I'm getting write now seems to be >> here: >> >> >> 012-09-29 07:52:49,132 DEBUG [allocator.impl.FirstFitAllocator] >> (consoleproxy-1:FirstFitRoutingAllocator) Looking for hosts in dc: 1 >> pod:1 cluster:1 >> 2012-09-29 07:52:49,134 DEBUG [allocator.impl.FirstFitAllocator] >> (consoleproxy-1:FirstFitRoutingAllocator) FirstFitAllocator has 1 >> hosts to check for allocation: [Host[-1-Routing]] >> 2012-09-29 07:52:49,137 DEBUG [allocator.impl.FirstFitAllocator] >> (consoleproxy-1:FirstFitRoutingAllocator) Found 1 hosts for allocation >> after prioritization: [Host[-1-Routing]] >> 2012-09-29 07:52:49,138 DEBUG [allocator.impl.FirstFitAllocator] >> (consoleproxy-1:FirstFitRoutingAllocator) Looking for speed=100Mhz, >> Ram=100 >> 2012-09-29 07:52:49,140 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) Checking if host: 1 has >> enough capacity for requested CPU: 100 and requested RAM: 104857600 , >> cpuOverprovisioningFactor: 10.0 >> 2012-09-29 07:52:49,145 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) Hosts's actual total CPU: >> 2473 and CPU after applying overprovisioning: 24730 >> 2012-09-29 07:52:49,146 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) Free CPU: 24730 , Requested >> CPU: 100 >> 2012-09-29 07:52:49,147 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) Free RAM: 803621952 , >> Requested RAM: 104857600 >> 2012-09-29 07:52:49,147 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) Host has enough CPU and RAM >> available >> 2012-09-29 07:52:49,148 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) STATS: Can alloc CPU from >> host: 1, used: 0, reserved: 0, actual total: 2473, total with >> overprovisioning: 24730; requested cpu:100,alloc_from_last_host?:false >> ,considerReservedCapacity?: true >> 2012-09-29 07:52:49,148 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:FirstFitRoutingAllocator) STATS: Can alloc MEM from >> host: 1, used: 0, reserved: 0, total: 803621952; requested mem: >> 104857600,alloc_from_last_host?:false ,considerReservedCapacity?: true >> 2012-09-29 07:52:49,149 DEBUG [allocator.impl.FirstFitAllocator] >> (consoleproxy-1:FirstFitRoutingAllocator) Found a suitable host, >> adding to list: 1 >> 2012-09-29 07:52:49,149 DEBUG [allocator.impl.FirstFitAllocator] >> (consoleproxy-1:FirstFitRoutingAllocator) Host Allocator returning 1 >> suitable hosts >> 2012-09-29 07:52:49,151 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) Checking suitable pools for volume (Id, Type): >> (2,ROOT) >> 2012-09-29 07:52:49,152 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) We need to allocate new storagepool for this >> volume >> 2012-09-29 07:52:49,152 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) Calling StoragePoolAllocators to find suitable >> pools >> 2012-09-29 07:52:49,153 DEBUG >> [storage.allocator.LocalStoragePoolAllocator] (consoleproxy-1:null) >> LocalStoragePoolAllocator trying to find storage pool to fit the vm >> 2012-09-29 07:52:49,154 DEBUG >> [storage.allocator.FirstFitStoragePoolAllocator] (consoleproxy-1:null) >> Looking for pools in dc: 1 pod:1 cluster:1 >> 2012-09-29 07:52:49,156 DEBUG >> [storage.allocator.FirstFitStoragePoolAllocator] (consoleproxy-1:null) >> FirstFitStoragePoolAllocator has 1 pools to check for allocation >> 2012-09-29 07:52:49,156 DEBUG >> [storage.allocator.AbstractStoragePoolAllocator] (consoleproxy-1:null) >> Checking if storage pool is suitable, name: PS0 ,poolId: 200 >> 2012-09-29 07:52:49,157 DEBUG >> [storage.allocator.AbstractStoragePoolAllocator] (consoleproxy-1:null) >> Is localStorageAllocationNeeded? true >> 2012-09-29 07:52:49,158 DEBUG >> [storage.allocator.AbstractStoragePoolAllocator] (consoleproxy-1:null) >> Is storage pool shared? true >> 2012-09-29 07:52:49,159 DEBUG >> [storage.allocator.AbstractStoragePoolAllocator] (consoleproxy-1:null) >> StoragePool is not of correct type, skipping this pool >> 2012-09-29 07:52:49,159 DEBUG >> [storage.allocator.FirstFitStoragePoolAllocator] (consoleproxy-1:null) >> FirstFitStoragePoolAllocator returning 0 suitable storage pools >> 2012-09-29 07:52:49,160 DEBUG >> [storage.allocator.LocalStoragePoolAllocator] (consoleproxy-1:null) >> LocalStoragePoolAllocator returning 0 suitable storage pools >> 2012-09-29 07:52:49,160 DEBUG >> [storage.allocator.LocalStoragePoolAllocator] (consoleproxy-1:null) >> Unable to find storage pool to fit the vm >> 2012-09-29 07:52:49,160 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) No suitable pools found for volume: >> Vol[2|vm=2|ROOT] under cluster: 1 >> 2012-09-29 07:52:49,161 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) No suitable pools found >> 2012-09-29 07:52:49,161 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) No suitable storagePools found under this >> Cluster: 1 >> 2012-09-29 07:52:49,162 DEBUG [cloud.deploy.FirstFitPlanner] >> (consoleproxy-1:null) Could not find suitable Deployment Destination >> for this VM under any clusters, returning. >> 2012-09-29 07:52:49,174 DEBUG [cloud.capacity.CapacityManagerImpl] >> (consoleproxy-1:null) VM state transitted from :Starting to Stopped >> with event: OperationFailedvm's original host id: null new host id: >> null host id before state transition: null >> 2012-09-29 07:52:49,177 WARN >> [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) >> Exception while trying to start console proxy >> com.cloud.exception.InsufficientServerCapacityException: Unable to >> create a deployment for VM[ConsoleProxy|v-2-TEST]Scope=interface >> com.cloud.dc.DataCenter; id=1 >> at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:734) >> at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:472) >> at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:465) >> at com.cloud.consoleproxy.ConsoleProxyManagerImpl.startProxy(ConsoleProxyManagerImpl.java:624) >> at com.cloud.consoleproxy.ConsoleProxyManagerImpl.allocCapacity(ConsoleProxyManagerImpl.java:1154) >> at com.cloud.consoleproxy.ConsoleProxyManagerImpl.expandPool(ConsoleProxyManagerImpl.java:1961) >> at com.cloud.consoleproxy.ConsoleProxyManagerImpl.expandPool(ConsoleProxyManagerImpl.java:170) >> at com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:113) >> at com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:34) >> at com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:83) >> at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:73) >> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) >> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) >> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) >> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) >> 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) >> >> >> I receive a very similar error for the Secondary Storage VM. >> >> The devcloud VM has been allocated 2GB of memory. The following disk >> is mounted: >> >> >> >> Filesystem Size Used Avail Use% Mounted on >> /dev/mapper/devcloud-root 4.2G 1.7G 2.4G 42% / >> udev 880M 4.0K 880M 1% /dev >> tmpfs 359M 336K 359M 1% /run >> none 5.0M 0 5.0M 0% /run/lock >> none 897M 0 897M 0% /run/shm >> /dev/mapper/devcloud-data 16G 3.1G 12G 21% /opt >> 10.0.2.15:/opt/storage/primary 16G 3.1G 12G 21% >> /run/sr-mount/a6cfcdd9-f266-29da-fab4-54f5445a4b5d >> >> >> the following xen pools are available: >> >> >> root@devcloud:/opt/cloudstack/apache-tomcat-6.0.32# xe sr-list >> uuid ( RO) : 44898ee2-21c7-734c-6dea-93231132eeb2 >> name-label ( RW): 44898ee2-21c7-734c-6dea-93231132eeb2 >> name-description ( RW): Cloud Stack Local EXT Storage Pool for >> 7bdfd624-7420-824c-33cf-fda064e39c17 >> host ( RO): devcloudbase >> type ( RO): file >> content-type ( RO): >> >> >> uuid ( RO) : 3e3fd3cc-1b9c-3a83-8350-eb36b2840a90 >> name-label ( RW): XenServer Tools >> name-description ( RW): XenServer Tools ISOs >> host ( RO): devcloudbase >> type ( RO): iso >> content-type ( RO): iso >> >> >> uuid ( RO) : a6cfcdd9-f266-29da-fab4-54f5445a4b5d >> name-label ( RW): 324883bc-4e5f-3ba8-b913-5e7a5205d3db >> name-description ( RW): 200 >> host ( RO): devcloudbase >> type ( RO): nfs >> content-type ( RO): user >> >> Thanks, >> >> James