[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799041#comment-13799041
 ] 

ASF subversion and git services commented on CLOUDSTACK-4681:
-------------------------------------------------------------

Commit 0c1800f70f2faa919ceaf92b00e9edeb79f2c15c in branch refs/heads/master 
from [~koushikd]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=0c1800f ]

CLOUDSTACK-4681: data disk with local disk offering are geting created on 
shared storage
The cluster and zone wide storage pool allocators returned shared pools even 
for volumes meant to be on local storage pool.
If the VM uses local disk then cluster and zone storage allocators should not 
handle it and return null or empty list.

Also fixed the deployment planner to avoid a cluster if
a. avoid set returned by storage pool allocators is empty OR
b. all local or shared pools in a cluster are in avoid state

Conflicts:
        
engine/storage/src/org/apache/cloudstack/storage/allocator/ClusterScopeStoragePoolAllocator.java
        
engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java


> data disk  with  local disk offering  are geting created on shared storage . 
> -----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4681
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4681
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.1
>         Environment: hypervisor:KVM
>            Reporter: prashant kumar mishra
>            Assignee: Koushik Das
>            Priority: Critical
>             Fix For: 4.2.1
>
>         Attachments: Logs_DB.rar
>
>
> Steps to reproduce
> ----------------------------
> 1-prapare a CS setup with kvm host +zone wide primary
> 2-deploy a vm
> 3-enable local storage at zone level(do not restart MS )
> 4-create a local disk offering
> 5-create a service offering with storage type local 
> 6-deploy a vm with local SO and local disk offering  
> Expected
> --------------
> 1-since local storage is not visible to MS(did not restart MS) vm deployment  
> should fail 
> Actual
> -----------
> vm root and data disk are getting created on shared storage
> My observation
> ----------------------
> 1-After MS restart root disk and data disk  are getting created on local 
> storage.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to