cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prachi Damle (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-1721) Unable to create local storage volumes
Date Mon, 08 Apr 2013 23:20:16 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Prachi Damle resolved CLOUDSTACK-1721.
--------------------------------------

    Resolution: Cannot Reproduce

Nitin,

I dont see this anymore on master after Edison's refactoring + Kelven put an ordering to the
storage allocators.

Probably you saw this earlier because allocators were not loaded in order(as defined in components.xml)
and there was some custom local storage allocator added by someone in default deployment.


Please re-test and let me know.
                
> Unable to create local storage volumes
> --------------------------------------
>
>                 Key: CLOUDSTACK-1721
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1721
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.2.0
>            Reporter: Nitin Mehta
>            Assignee: Prachi Damle
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: vmops.log
>
>
> I chose a local enable comput offering and try deploy vm and its deploying on a shared
storage instead 
> mysql> select * from vm_instance where id=10\G;
> *************************** 1. row ***************************
>                  id: 10
>                name: c991a65e-342b-4753-a31b-802201ac91c7
>                uuid: c991a65e-342b-4753-a31b-802201ac91c7
>       instance_name: i-2-10-VM
>               state: Running
>      vm_template_id: 202
>         guest_os_id: 142
> private_mac_address: 02:00:58:9e:00:08
>  private_ip_address: 10.1.1.42
>              pod_id: 1
>      data_center_id: 1
>             host_id: 1
>        last_host_id: 1
>            proxy_id: NULL
>   proxy_assign_time: NULL
>        vnc_password: edc96004be21ae86
>          ha_enabled: 0
>       limit_cpu_use: 0
>        update_count: 3
>         update_time: 2013-03-19 07:10:47
>             created: 2013-03-19 07:10:26
>             removed: NULL
>                type: User
>             vm_type: User
>          account_id: 2
>           domain_id: 1
> service_offering_id: 17
>      reservation_id: b5da6244-7d0e-4a75-a4b9-62813f75547a
>     hypervisor_type: XenServer
>    disk_offering_id: NULL
>                 cpu: NULL
>                 ram: NULL
>               owner: 2
>               speed: 256
>           host_name: c991a65e-342b-4753-a31b-802201ac91c7
>        display_name: NULL
>       desired_state: NULL
> 1 row in set (0.00 sec)
> mysql> select * from disk_offering where id=17;
> +----+-----------+--------+--------------------------------------+--------------+-----------+---------+------+-------------+-------------------+-------------+------------+------------+---------+---------------------+----------+
> | id | domain_id | name   | uuid                                 | display_text | disk_size
| type    | tags | recreatable | use_local_storage | unique_name | system_use | customized
| removed | created             | sort_key |
> +----+-----------+--------+--------------------------------------+--------------+-----------+---------+------+-------------+-------------------+-------------+------------+------------+---------+---------------------+----------+
> | 17 |      NULL | local1 | 8e5f270e-6e13-4e1c-8548-fedb19805817 | local1       |   
     0 | Service | NULL |           0 |                 1 | NULL        |          0 |   
      1 | NULL    | 2013-03-19 07:10:05 |        0 |
> +----+-----------+--------+--------------------------------------+--------------+-----------+---------+------+-------------+-------------------+-------------+------------+------------+---------+---------------------+----------+
> 1 row in set (0.00 sec)
> mysql> select * from volumes where id=10\G;
> *************************** 1. row ***************************
>                         id: 10
>                 account_id: 2
>                  domain_id: 1
>                    pool_id: 200
>               last_pool_id: NULL
>                instance_id: 10
>                  device_id: 0
>                       name: ROOT-10
>                       uuid: bd643ab0-ff3e-4df1-98b9-204c1c39df3a
>                       size: 21474836480
>                     folder: /export/home/nitin/primary
>                       path: 549f2ec8-c278-4107-a2d9-2398ec5aa51b
>                     pod_id: 1
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: ROOT
>                  pool_type: NetworkFilesystem
>           disk_offering_id: 17
>                template_id: 202
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2013-03-19 07:10:26
>                   attached: NULL
>                    updated: 2013-03-19 07:10:40
>                    removed: NULL
>                      state: Ready
>                 chain_info: NULL
>               update_count: 2
>                  disk_type: NULL
> 1 row in set (0.00 sec)
> ERROR: 
> No query specified
> mysql> select * from storage_pool \G;
> *************************** 1. row ***************************
>                  id: 200
>                name: ps
>                uuid: 2796fa19-e141-3f79-8ea8-d29bf5fdbeaf
>           pool_type: NetworkFilesystem
>                port: 2049
>      data_center_id: 1
>              pod_id: 1
>          cluster_id: 1
>     available_bytes: 3115082874880
>      capacity_bytes: 5902284816384
>        host_address: 10.147.28.7
>           user_info: NULL
>                path: /export/home/nitin/primary
>             created: 2013-03-18 04:47:12
>             removed: NULL
>         update_time: NULL
>              status: Up
> storage_provider_id: 2
>               scope: CLUSTER
> *************************** 2. row ***************************
>                  id: 201
>                name: xenserver-nitin Local Storage
>                uuid: b447205d-9ded-82f6-a26e-8d8294424c45
>           pool_type: EXT
>                port: 0
>      data_center_id: 1
>              pod_id: 1
>          cluster_id: 1
>     available_bytes: 476723257344
>      capacity_bytes: 483466199040
>        host_address: 10.147.28.14
>           user_info: NULL
>                path: ext
>             created: 2013-03-19 06:39:58
>             removed: NULL
>         update_time: NULL
>              status: Up
> storage_provider_id: 2
>               scope: HOST
> 2 rows in set (0.00 sec)
> ERROR: 
> No query specified
> 2013-03-19 12:40:26,304 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
DeploymentPlanner allocation algorithm: random
> 2013-03-19 12:40:26,304 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Trying to allocate a host and storage pools from dc:1, pod:null,cluster:null, requested cpu:
256, requested ram: 268435456
> 2013-03-19 12:40:26,304 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Is ROOT volume READY (pool already allocated)?: No
> 2013-03-19 12:40:26,304 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Searching all possible resources under this Zone: 1
> 2013-03-19 12:40:26,307 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Listing clusters in order of aggregate capacity, that have (atleast one host with) enough
CPU and RAM capacity under this Zone: 1
> 2013-03-19 12:40:26,347 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Checking resources in Cluster: 1 under Pod: 1
> 2013-03-19 12:40:26,348 DEBUG [allocator.impl.RandomAllocator] (Job-Executor-2:job-27)
Looking for hosts in dc: 1  pod:1  cluster:1
> 2013-03-19 12:40:26,354 DEBUG [allocator.impl.RandomAllocator] (Job-Executor-2:job-27)
Random Allocator found 1  hosts
> 2013-03-19 12:40:26,354 DEBUG [allocator.impl.RandomAllocator] (Job-Executor-2:job-27)
Random Host Allocator returning 1 suitable hosts
> 2013-03-19 12:40:26,357 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Checking suitable pools for volume (Id, Type): (10,ROOT)
> 2013-03-19 12:40:26,357 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
We need to allocate new storagepool for this volume
> 2013-03-19 12:40:26,361 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Calling StoragePoolAllocators to find suitable pools
> 2013-03-19 12:40:26,492 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-2:job-27)
Checking pool: 200 for volume allocation [Vol[10|vm=10|ROOT]], maxSize : 11804569632768, totalAllocatedSize
: 137615496192, askingSize : 21474836480, allocated disable threshold: 0.85
> 2013-03-19 12:40:26,495 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Trying to find a potenial host and associated storage pools from the suitable host/pool lists
for this VM
> 2013-03-19 12:40:26,495 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Checking if host: 1 can access any suitable storage pool for volume: ROOT
> 2013-03-19 12:40:26,497 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Host: 1 can access pool: 200
> 2013-03-19 12:40:26,497 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Found a potential host id: 1 name: xenserver-nitin and associated storage pools for this VM
> 2013-03-19 12:40:26,499 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Returning Deployment Destination: Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage(Volume(10|ROOT-->Pool(200))]
> 2013-03-19 12:40:26,567 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
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
> 2013-03-19 12:40:26,567 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-27)
Successfully transitioned to start state for VM[User|c991a65e-342b-4753-a31b-802201ac91c7]
reservation id = b5da6244-7d0e-4a75-a4b9-62813f75547a
> 2013-03-19 12:40:26,570 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-27)
Trying to deploy VM, vm has dcId: 1 and podId: null
> 2013-03-19 12:40:26,570 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-27)
advanceStart: DeploymentPlan is provided, using dcId:1, podId: 1, clusterId: 1, hostId: 1,
poolId: null
> 2013-03-19 12:40:26,571 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-27)
Deploy avoids pods: null, clusters: null, hosts: null
> 2013-03-19 12:40:26,573 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
DeploymentPlanner allocation algorithm: random
> 2013-03-19 12:40:26,574 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Trying to allocate a host and storage pools from dc:1, pod:1,cluster:1, requested cpu: 256,
requested ram: 268435456
> 2013-03-19 12:40:26,574 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Is ROOT volume READY (pool already allocated)?: No
> 2013-03-19 12:40:26,574 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
DeploymentPlan has host_id specified, making no checks on this host, looks like admin test:
1
> 2013-03-19 12:40:26,581 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Looking for suitable pools for this host under zone: 1, pod: 1, cluster: 1
> 2013-03-19 12:40:26,586 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Checking suitable pools for volume (Id, Type): (10,ROOT)
> 2013-03-19 12:40:26,586 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
We need to allocate new storagepool for this volume
> 2013-03-19 12:40:26,586 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Calling StoragePoolAllocators to find suitable pools
> 2013-03-19 12:40:26,748 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-2:job-27)
Checking pool: 200 for volume allocation [Vol[10|vm=10|ROOT]], maxSize : 11804569632768, totalAllocatedSize
: 137615496192, askingSize : 21474836480, allocated disable threshold: 0.85
> 2013-03-19 12:40:26,748 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Trying to find a potenial host and associated storage pools from the suitable host/pool lists
for this VM
> 2013-03-19 12:40:26,749 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Checking if host: 1 can access any suitable storage pool for volume: ROOT
> 2013-03-19 12:40:26,751 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Host: 1 can access pool: 200
> 2013-03-19 12:40:26,751 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Found a potential host id: 1 name: xenserver-nitin and associated storage pools for this VM
> 2013-03-19 12:40:26,756 DEBUG [cloud.deploy.FirstFitPlanner] (Job-Executor-2:job-27)
Returning Deployment Destination: Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage(Volume(10|ROOT-->Pool(200))]
> 2013-03-19 12:40:26,757 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-27)
Deployment found  - P0=VM[User|c991a65e-342b-4753-a31b-802201ac91c7], P0=Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(1)-Storage(Volume(10|ROOT-->Pool(200))]
> 2013-03-19 12:40:26,770 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
VM state transitted from :Starting to Starting with event: OperationRetryvm's original host
id: null new host id: 1 host id before state transition: null
> 2013-03-19 12:40:26,793 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
Hosts's actual total CPU: 5984 and CPU after applying overprovisioning: 5984
> 2013-03-19 12:40:26,793 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
We are allocating VM, increasing the used capacity of this host:1
> 2013-03-19 12:40:26,793 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
Current Used CPU: 2524 , Free CPU:3332 ,Requested CPU: 256
> 2013-03-19 12:40:26,793 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
Current Used RAM: 2550136832 , Free RAM:925857792 ,Requested RAM: 268435456
> 2013-03-19 12:40:26,793 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
CPU STATS after allocation: for host: 1, old used: 2524, old reserved: 128, actual total:
5984, total with overprovisioning: 5984; new used:2780, reserved:128; requested cpu:256,alloc_from_last:false
> 2013-03-19 12:40:26,793 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-2:job-27)
RAM STATS after allocation: for host: 1, old used: 2550136832, old reserved: 134217728, total:
3610212352; new used: 2818572288, reserved: 134217728; requested mem: 268435456,alloc_from_last:false
> 2013-03-19 12:40:26,795 DEBUG [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-2:job-27)
VM is being created in podId: 1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message