cloudstack-issues mailing list archives

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

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

Prasanna Santhanam updated CLOUDSTACK-3289:
-------------------------------------------

    Fix Version/s:     (was: 4.2.0)
                   Future
    
> 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
>            Priority: Critical
>             Fix For: Future
>
>
> 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