cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3289) StorageSubsystem: cannot add image store of a different provider in a different zone
Date Wed, 24 Jul 2013 00:02:48 GMT

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

Min Chen commented on CLOUDSTACK-3289:
--------------------------------------

This is the assumption we have made in our FS (https://cwiki.apache.org/confluence/display/CLOUDSTACK/Storage+Backup+Object+Store+Plugin+Framework)
for 4.2 release:

NOTE that we have following assumptions:

   1. you can add multiple image stores from the same provider, but we prevent you from adding
multiple image
    stores from different providers.
    2. For NFS image store providers, it is always zone-wide. And For S3/Swift, it is always
region-wide.

This should be relaxed post-4.2 to allow different image store providers cross zones.
                
> StorageSubsystem: cannot add image store of a different provider in a different zone
> ------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3289
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3289
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>            Reporter: Prasanna Santhanam
>            Assignee: Min Chen
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> The storage code right now restricts usage of multiple image store providers in the same
zone. But it restricts this even when the image store may be in a different zone/region.
> From StorageManagerImpl.java:
>         // check if we have already image stores from other different providers,
>         // we currently are not supporting image stores from different
>         // providers co-existing
>         List<ImageStoreVO> imageStores = _imageStoreDao.listImageStores();
>         for (ImageStoreVO store : imageStores) {
>             if (!store.getProviderName().equalsIgnoreCase(providerName)) {
>                 throw new InvalidParameterValueException("You can only add new image
stores from the same provider " + store.getProviderName()
>                         + " already added");
>             }
>         }
> search criteria lists all add images stores:
> @Override
>     public List<ImageStoreVO> listImageStores() {
>         SearchCriteria<ImageStoreVO> sc = createSearchCriteria();
>         sc.addAnd("role", SearchCriteria.Op.EQ, DataStoreRole.Image);
>         return listBy(sc);
>     }

--
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