Welcome, Guest
Username: Password: Remember me
This forum is dedicated to discussions around storage and networking in cloud computing.

TOPIC: Unable to launch Xen user instances on local storage.

Unable to launch Xen user instances on local storage. 1 year 4 months ago #11323

  • azilber
  • azilber's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Have a CS 3.0.2 setup with XenServer 6.0.2. Xen is setup with a pile of local storage.

system.vm.use.local.storage is set to true
use.local.storage is also set to true

xen host reports:
[root@localhost ~]# xe sr-param-list uuid=ea4a0dd2-edb1-a543-1f97-5c9fb571ce25
uuid ( RO)                    : ea4a0dd2-edb1-a543-1f97-5c9fb571ce25
              name-label ( RW): Local Storage
        name-description ( RW): Cloud Stack Local LVM Storage Pool for 87ac8782-8d20-49a9-b2a2-8c6be9226f9d
                    host ( RO): cloudstack1
      allowed-operations (SRO): forget; VDI.create; VDI.snapshot; plug; update; destroy; VDI.destroy; scan; VDI.clone; VDI.resize; unplug
      current-operations (SRO):
                    VDIs (SRO): 19e2eff9-dcc7-416d-834e-62850d6777fc; 5fea83c7-0e61-49b1-a531-5096263efe5b; 0cd0d69d-9342-4229-8b3c-80365078bc55; 4b8044e8-cb0f-46e9-92d0-5ee5a357160e; bac3f037-5fa1-42a9-b42b-c6584a3e3d6c
                    PBDs (SRO): 6b7e8415-6ceb-b1e1-2dd2-c0770d01a8c9
      virtual-allocation ( RO): 4894752768
    physical-utilisation ( RO): 5465178112
           physical-size ( RO): 991051120640
                    type ( RO): lvm
            content-type ( RO): user
                  shared ( RW): false
           introduced-by ( RO): <not in database>
            other-config (MRW): i18n-original-value-name_label: Local storage; i18n-key: local-storage
               sm-config (MRO): allocation: thick; use_vhd: true; devserial: scsi-36001e4f01790b6001766dac04a4b7cc7
                   blobs ( RO):
     local-cache-enabled ( RO): false
                    tags (SRW): xenstorage1

The system VM's are running fine on local storage. But attempting to launch anything off a user template gives me:
Unable to create a deployment for VM[User|i-2-6-VM]

Here's the log:
2012-06-15 00:26:23,127 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-24:null) submit async job-49, details: AsyncJobVO {id:49, userId: 2, accountId: 2, sessionKey: null, instanceType: VirtualMachine, instanceId: 6, cmd: com.cloud.api.commands.DeployVMCmd, cmdOriginator: null, cmdInfo: {"sessionkey":"r0CzrlZ9AMooKp/RbK3njJ5zjzs\u003d","ctxUserId":"2","serviceOfferingId":"ece9cf99-b636-41ec-a0f6-d8bdb75457c3","zoneId":"3a749892-fca0-45e2-a609-e2cf344d40f0","templateId":"c6ec89ac-0436-49d4-9cbb-41c183b6610e","response":"json","id":"6","hypervisor":"XenServer","name":"dfly","_":"1339691182681","ctxAccountId":"2","group":"default","ctxStartEventId":"222","displayname":"dfly"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 107158699232, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2012-06-15 00:26:23,130 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-7:job-49) Executing com.cloud.api.commands.DeployVMCmd for job-49
2012-06-15 00:26:23,206 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49) VM state transitted from :Stopped to Starting with event: StartRequestedvm's original host id: null new host id: null host id before state transition: null
2012-06-15 00:26:23,207 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-7:job-49) Successfully transitioned to start state for VM[User|i-2-6-VM] reservation id = 5f77cca6-52dc-4677-98e5-2cc906df728d
2012-06-15 00:26:23,261 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-7:job-49) Trying to deploy VM, vm has dcId: 3 and podId: null
2012-06-15 00:26:23,261 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-7:job-49) Deploy avoids pods: null, clusters: null, hosts: null
2012-06-15 00:26:23,264 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) DeploymentPlanner allocation algorithm: random
2012-06-15 00:26:23,264 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Trying to allocate a host and storage pools from dc:3, pod:null,cluster:null, requested cpu: 500, requested ram: 536870912
2012-06-15 00:26:23,264 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Is ROOT volume READY (pool already allocated)?: No
2012-06-15 00:26:23,264 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Searching all possible resources under this Zone: 3
2012-06-15 00:26:23,266 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Listing clusters in order of aggregate capacity, that have (atleast one host with) enough CPU and RAM capacity under this Zone: 3
2012-06-15 00:26:23,267 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) CPUOverprovisioningFactor considered: 1.0
2012-06-15 00:26:23,292 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Checking resources in Cluster: 2 under Pod: 3
2012-06-15 00:26:23,292 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Calling HostAllocators to find suitable hosts
2012-06-15 00:26:23,292 DEBUG [allocator.impl.FirstFitAllocator] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Looking for hosts in dc: 3  pod:3  cluster:2
2012-06-15 00:26:23,297 DEBUG [allocator.impl.FirstFitAllocator] (Job-Executor-7:job-49 FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to check for allocation: [Host[-1-Routing]]
2012-06-15 00:26:23,300 DEBUG [allocator.impl.FirstFitAllocator] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Found 1 hosts for allocation after prioritization: [Host[-1-Routing]]
2012-06-15 00:26:23,301 DEBUG [allocator.impl.FirstFitAllocator] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Looking for speed=500Mhz, Ram=512
2012-06-15 00:26:23,303 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Checking if host: 1 has enough capacity for requested CPU: 500 and requested RAM: 536870912 , cpuOverprovisioningFactor: 1.0
2012-06-15 00:26:23,307 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Hosts's actual total CPU: 14896 and CPU after applying overprovisioning: 14896
2012-06-15 00:26:23,307 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Free CPU: 13896 , Requested CPU: 500
2012-06-15 00:26:23,307 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Free RAM: 12395975680 , Requested RAM: 536870912
2012-06-15 00:26:23,307 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Host has enough CPU and RAM available
2012-06-15 00:26:23,307 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) STATS: Can alloc CPU from host: 1, used: 1000, reserved: 0, actual total: 14896, total with overprovisioning: 14896; requested cpu:500,alooa_from_last_host?:false ,considerReservedCapacity?: true
2012-06-15 00:26:23,307 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49 FirstFitRoutingAllocator) STATS: Can alloc MEM from host: 1, used: 1342177280, reserved: 0, total: 13738152960; requested mem: 536870912,alooa_from_last_host?:false ,considerReservedCapacity?: true
2012-06-15 00:26:23,307 DEBUG [allocator.impl.FirstFitAllocator] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Found a suitable host, adding to list: 1
2012-06-15 00:26:23,307 DEBUG [allocator.impl.FirstFitAllocator] (Job-Executor-7:job-49 FirstFitRoutingAllocator) Host Allocator returning 1 suitable hosts
2012-06-15 00:26:23,309 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Checking suitable pools for volume (Id, Type): (8,ROOT)
2012-06-15 00:26:23,309 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) We need to allocate new storagepool for this volume
2012-06-15 00:26:23,309 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Calling StoragePoolAllocators to find suitable pools
2012-06-15 00:26:23,311 DEBUG [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-7:job-49) Looking for pools in dc: 3  pod:3  cluster:2
2012-06-15 00:26:23,312 DEBUG [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-7:job-49) FirstFitStoragePoolAllocator has 1 pools to check for allocation
2012-06-15 00:26:23,312 DEBUG [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-7:job-49) Checking if storage pool is suitable, name: cloudstack1 Local Storage ,poolId: 200
2012-06-15 00:26:23,312 DEBUG [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-7:job-49) Is localStorageAllocationNeeded? false
2012-06-15 00:26:23,312 DEBUG [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-7:job-49) Is storage pool shared? false
2012-06-15 00:26:23,312 DEBUG [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-7:job-49) StoragePool is not of correct type, skipping this pool
2012-06-15 00:26:23,312 DEBUG [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-7:job-49) FirstFitStoragePoolAllocator returning 0 suitable storage pools
2012-06-15 00:26:23,312 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) No suitable pools found for volume: Vol[8|vm=6|ROOT] under cluster: 2
2012-06-15 00:26:23,312 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) No suitable pools found
2012-06-15 00:26:23,312 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) No suitable storagePools found under this Cluster: 2
2012-06-15 00:26:23,312 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-7:job-49) Could not find suitable Deployment Destination for this VM under any clusters, returning.
2012-06-15 00:26:23,435 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49) 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-06-15 00:26:23,653 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-7:job-49) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null
2012-06-15 00:26:24,036 INFO  [api.commands.DeployVMCmd] (Job-Executor-7:job-49) com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[User|i-2-6-VM]Scope=interface com.cloud.dc.DataCenter; id=3
2012-06-15 00:26:24,037 WARN  [cloud.api.ApiDispatcher] (Job-Executor-7:job-49) class com.cloud.api.ServerApiException : Unable to create a deployment for VM[User|i-2-6-VM]
2012-06-15 00:26:24,037 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-7:job-49) Complete async job-49, jobStatus: 2, resultCode: 530, result: com.cloud.api.response.ExceptionResponse@749c878d


Any thoughts on why it would work with the system VM's but NOT with a user template?
The administrator has disabled public write access.

Re: Unable to launch Xen user instances on local storage. 1 year 4 months ago #11337

  • gemiller
  • gemiller's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 90
  • Thank you received: 15
  • Karma: 4
You have to create a new service offering for VM's you wish to provision using local storage. When you create that service offering, set the Storage Type to "Local". Then, try creating a VM using that service offering.
The administrator has disabled public write access.
The following user(s) said Thank You: pvaladez

Re: Unable to launch Xen user instances on local storage. 1 year 4 months ago #11338

  • azilber
  • azilber's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi,

Looks like I missed that. Under 'System VM Type', I have 'Domain Router', 'Console proxy', and 'Secondary Storage VM'. Do I choose one of these or do I need to create a new entry in the db for primary storage? The Admin guide doesn't go into much detail on adding primary storage as a service offering...

Also, I note in CloudStack 3.0 install guide, there's a mention of:
If you do not provision shared primary storage, you must set the global configuration parameter system.vm.local.storage.required to true, or else you will not be able to start VMs.

I inserted that value into the configuration table since it did not exist, and the instance almost launched.. but there was a uuid error, so maybe that value is no longer supported?

thanks!
gemiller wrote:
You have to create a new service offering for VM's you wish to provision using local storage. When you create that service offering, set the Storage Type to "Local". Then, try creating a VM using that service offering.
Last Edit: 1 year 4 months ago by azilber.
The administrator has disabled public write access.

Re: Unable to launch Xen user instances on local storage. 8 months 1 week ago #13094

  • pvaladez
  • pvaladez's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Thanks! That really needs to be added in the documentation. Or better yet it should just modify the service offerings to use local storage when you choose to use local storage during the Add Zone wizard. I'm not even sure why the wizard even asks if you want to use local storage since it doesn't change the global variables or the service offerings needed for local storage.
The administrator has disabled public write access.
Time to create page: 0.349 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